-
Notifications
You must be signed in to change notification settings - Fork 1
add automated changelog generation #235
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
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
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,66 @@ | ||
| name-template: 'v$RESOLVED_VERSION' | ||
| tag-template: 'v$RESOLVED_VERSION' | ||
| template: | | ||
| ## What's Changed | ||
|
|
||
| $CHANGES | ||
|
|
||
| **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION | ||
|
|
||
| categories: | ||
| - title: 'Added' | ||
| labels: | ||
| - 'changelog:added' | ||
| - title: 'Changed' | ||
| labels: | ||
| - 'changelog:changed' | ||
| - title: 'Fixed' | ||
| labels: | ||
| - 'changelog:fixed' | ||
| - title: 'Removed' | ||
| labels: | ||
| - 'changelog:removed' | ||
| - title: 'Security' | ||
| labels: | ||
| - 'changelog:security' | ||
|
|
||
| exclude-labels: | ||
| - 'changelog:skip' | ||
|
|
||
| change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
| change-title-escapes: '\<*_&' | ||
|
|
||
| version-resolver: | ||
| major: | ||
| labels: | ||
| - 'changelog:breaking' | ||
| minor: | ||
| labels: | ||
| - 'changelog:added' | ||
| patch: | ||
| labels: | ||
| - 'changelog:fixed' | ||
| - 'changelog:changed' | ||
| default: patch | ||
|
|
||
| autolabeler: | ||
| - label: 'changelog:fixed' | ||
| title: | ||
| - '/fix/i' | ||
| - '/bug/i' | ||
| - label: 'changelog:added' | ||
| title: | ||
| - '/add/i' | ||
| - '/feat/i' | ||
| - '/new/i' | ||
| - label: 'changelog:changed' | ||
| title: | ||
| - '/update/i' | ||
| - '/improve/i' | ||
| - '/enhance/i' | ||
| - '/bump/i' | ||
| - label: 'changelog:skip' | ||
| title: | ||
| - '/^chore/i' | ||
| - '/^ci/i' | ||
| - '/^docs/i' |
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
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,25 @@ | ||
| name: Release Drafter | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, labeled, unlabeled] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update_release_draft: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: release-drafter/release-drafter@v6 | ||
| with: | ||
| config-name: release-drafter.yml | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,36 @@ | ||
| name: Update Changelog | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update-changelog: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Update CHANGELOG.md | ||
| uses: stefanzweifel/changelog-updater-action@v1 | ||
| with: | ||
| latest-version: ${{ github.event.release.tag_name }} | ||
| release-notes: ${{ github.event.release.body }} | ||
|
|
||
| - name: Create Pull Request | ||
| uses: peter-evans/create-pull-request@v6 | ||
| with: | ||
| commit-message: "docs: update CHANGELOG.md for ${{ github.event.release.tag_name }}" | ||
| title: "docs: update CHANGELOG.md for ${{ github.event.release.tag_name }}" | ||
| body: | | ||
| This PR updates the CHANGELOG.md with release notes for ${{ github.event.release.tag_name }}. | ||
|
|
||
| Auto-generated by the Update Changelog workflow. | ||
| branch: "changelog/update-${{ github.event.release.tag_name }}" | ||
| labels: "changelog:skip" |
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,15 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to ZXporter will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ## Historical Releases | ||
|
|
||
| For releases prior to automated changelog generation, please see the | ||
| [GitHub Releases](https://github.com/devzero-inc/zxporter/releases) page. | ||
|
|
||
| [Unreleased]: https://github.com/devzero-inc/zxporter/compare/v0.0.51...HEAD | ||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: devzero-inc/zxporter
Length of output: 46
Replace the non-existent v0.0.51 tag reference with a valid version tag.
The comparison URL on line 15 references
v0.0.51, but this tag does not exist in the repository. The link will be invalid, breaking documentation for users. Update the URL to reference an actual tagged release or remove the link until a valid comparison point is available.🧰 Tools
🪛 LanguageTool
[style] ~12-~12: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...] ## Historical Releases For releases prior to automated changelog generation, please ...
(EN_WORDINESS_PREMIUM_PRIOR_TO)
🤖 Prompt for AI Agents