-
Notifications
You must be signed in to change notification settings - Fork 0
Create auto-update-changelog workflow #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
marians
wants to merge
12
commits into
main
Choose a base branch
from
add-changlog-updater
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
aad77c9
Create auto-update-changlog.yaml
marians 3e241a3
Set token
marians 4d0e92e
Merge branch 'main' into add-changlog-updater
marians 8c84c2d
Fix file name typo
marians a8b814a
Merge branch 'add-changlog-updater' of https://github.com/giantswarm/…
marians 01d7d02
Declare required secrets
marians 446a603
Appease yamllint
marians 51a6259
Add commenting
marians 0b13c57
Allow tools
marians 1d37c1d
Use haiku, allow more turns
marians 695d786
Use NodeJS v24
marians b3c1ec8
Update Node.js version in workflow to 20
marians File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Auto-update changelog | ||
|
|
||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| ANTHROPIC_API_KEY: | ||
| required: true | ||
| TAYLORBOT_GITHUB_ACTION: | ||
| required: true | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| report: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write # To push commits | ||
| pull-requests: write # To comment in PR | ||
| steps: | ||
| - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| fetch-depth: 0 # We need the full history to compare changes | ||
| persist-credentials: false | ||
|
|
||
| - name: Update changelog | ||
| uses: anthropics/claude-code-action@70e16deb18402428bd09e08d1ec3662a872e3c72 # v1.0.41 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| github_token: ${{ secrets.TAYLORBOT_GITHUB_ACTION }} | ||
| prompt: | | ||
| If a CHANGELOG.md file exists in the repository root, check if the current pull | ||
| request updates it. | ||
|
|
||
| If CHANGELOG.md exists but is not updated in this PR, update it with information | ||
| about the changes in this branch compared to the default branch. | ||
|
|
||
| Normally, dependency updates fall under the `### Changed` category. In some cases, | ||
| if they are security-related, they might fall under the `### Fixed` category. Check | ||
| the pull request title and description for hints. | ||
|
|
||
| Comment into the PR to inform the author about your updating of the changelog. | ||
| claude_args: > | ||
| --max-turns 10 | ||
| --model claude-haiku-4-5-20251101 | ||
| --allowedTools Bash | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a hint for
AddedorRemovedblocks?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to try first with a simple prompt. After all the keepachangelog format is well-documented.