-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(publish): inline git-cliff release notes (drop changelog-update workflow) #3
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
Merged
Merged
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # git-cliff configuration: https://git-cliff.org/docs/configuration | ||
| # | ||
| # Generates GitHub release notes from Conventional Commits since the | ||
| # previous tag. Used by `publish.yml` to write `NOTES.md` and pass it | ||
| # to `gh release create --notes-file`. The repo enforces Conventional | ||
| # Commits in PR titles (`feat`, `fix`, `chore`, `docs`); anything that | ||
| # slips through unconventional is filtered out below. | ||
|
|
||
| [changelog] | ||
| header = "" | ||
| body = """ | ||
| {% if version %}\ | ||
| {% else %}\ | ||
| ## Unreleased | ||
| {% endif %}\ | ||
| {% for group, commits in commits | group_by(attribute="group") %} | ||
| ### {{ group | split(pat=":") | last }} | ||
| {% for commit in commits %} | ||
| - {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | split(pat="\n") | first | trim }}\ | ||
| {% endfor %} | ||
| {% endfor %}\n | ||
| """ | ||
| footer = "" | ||
| trim = true | ||
| postprocessors = [ | ||
| { pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/stella/tooling/pull/${1}))" }, | ||
| ] | ||
|
|
||
| [git] | ||
| conventional_commits = true | ||
| filter_unconventional = true | ||
| split_commits = false | ||
| filter_commits = false | ||
| tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+(-rc\\.[0-9]+)?$" | ||
| sort_commits = "newest" | ||
|
|
||
| # Order matters twice over: | ||
| # - First matching parser wins (so put more specific patterns first, | ||
| # e.g. `chore(deps)` before `chore`). | ||
| # - Rendered section order follows the lexicographic order of `group`. | ||
| # The two-digit `NN:` prefix pins the order (00 → 99); the body | ||
| # template above strips everything before the colon, so the prefix | ||
| # never reaches the rendered markdown — keeps GitHub release notes, | ||
| # stll.app/changelog, and any other downstream renderer clean. Two | ||
| # digits leave headroom for new sections without breaking sort | ||
| # (single-digit `10` would otherwise sort before `2`). | ||
| commit_parsers = [ | ||
| { message = "^feat", group = "00:🚀 Features" }, | ||
| { message = "^fix", group = "01:🐛 Bug Fixes" }, | ||
| { message = "^perf", group = "02:⚡ Performance" }, | ||
| { message = "^refactor", group = "03:♻️ Refactor" }, | ||
| { message = "^docs", group = "04:📚 Documentation" }, | ||
| { message = "^test", group = "05:🧪 Tests" }, | ||
| { message = "^chore\\(deps[^)]*\\)", group = "06:📦 Dependencies" }, | ||
| { message = "^chore\\(release\\)", skip = true }, | ||
| { message = "^chore", group = "07:⚙️ Miscellaneous" }, | ||
| { message = "^style", skip = true }, | ||
| { message = "^ci", skip = true }, | ||
| { message = "^build", skip = true }, | ||
| { message = "^revert", group = "08:⏪ Reverts" }, | ||
| ] | ||
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.
Uh oh!
There was an error while loading. Please reload this page.