-
Notifications
You must be signed in to change notification settings - Fork 27
chore: add skill to run through release process (Claude Code) #677
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
Open
ttypic
wants to merge
1
commit into
main
Choose a base branch
from
release-skill
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.
+64
−1
Open
Changes from all commits
Commits
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,52 @@ | ||
| --- | ||
| description: "Create a release branch, bump version, and update CHANGELOG. Usage: /release patch|minor|major" | ||
| allowed-tools: Bash, Read, Edit, Write | ||
| --- | ||
|
|
||
| Read the current version from `pyproject.toml` (the `version` property). | ||
|
|
||
| The bump type is: $ARGUMENTS | ||
|
|
||
| Compute the new version by incrementing the appropriate component of the current version: | ||
| - `patch` — increment the third number, keep major and minor (e.g. 1.7.0 → 1.7.1) | ||
| - `minor` — increment the second number, reset patch to 0 (e.g. 1.7.0 → 1.8.0) | ||
| - `major` — increment the first number, reset minor and patch to 0 (e.g. 1.7.0 → 2.0.0) | ||
|
|
||
| Then perform these steps in order: | ||
|
|
||
| 1. Run `git checkout -b release/NEW_VERSION` | ||
| 2. Replace `OLD_VERSION` with `NEW_VERSION` in all of the following files: | ||
| - `pyproject.toml` — the `version` property | ||
| - `ably/__init__.py` — lib_version value | ||
| 3.Run `uv sync` to update `uv.lock` file | ||
| 4. Commit all files together with message: `chore: bump version to NEW_VERSION` | ||
| 3. Fetch merged PRs since the last release tag using: | ||
| ``` | ||
| gh pr list --state merged --base main --json number,title,mergedAt --limit 200 | ||
| ``` | ||
| Then get the date of the last release tag with: | ||
| ``` | ||
| git log vOLD_VERSION --format="%aI" -1 | ||
| ``` | ||
| Filter the PRs to only those merged after that tag date. Format each as: | ||
| ``` | ||
| - Short, one sentence summary from PR title and description [#NUMBER](https://github.com/ably/ably-java/pull/NUMBER) | ||
| ``` | ||
| If the tag doesn't exist or there are no merged PRs, use a single `-` placeholder bullet instead. | ||
|
|
||
| 4. In `CHANGELOG.md`, insert the following block immediately after the `# Change Log` heading (and its trailing blank line), before the first existing `## [` version entry: | ||
|
|
||
| ``` | ||
| ## [NEW_VERSION](https://github.com/ably/ably-java/tree/vNEW_VERSION) | ||
|
|
||
| [Full Changelog](https://github.com/ably/ably-java/compare/vOLD_VERSION...vNEW_VERSION) | ||
|
|
||
| ### What's Changed | ||
|
|
||
| BULLETS_FROM_STEP_3 | ||
|
|
||
| ``` | ||
|
|
||
| 5. Commit `CHANGELOG.md` with message: `docs: update CHANGELOG for NEW_VERSION release` | ||
|
|
||
| After completing all steps, show the user a summary of what was done. If PRs were found, list them. If the placeholder `-` was used instead, remind them to fill in the `### What's Changed` bullet points in `CHANGELOG.md` before merging. | ||
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
Oops, something went wrong.
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.
I think commands are deprecated and you're supposed to create them as skills now?