-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add auto release and commit config
- Loading branch information
Showing
8 changed files
with
212 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
{ | ||
"output": "CHANGELOG.md", | ||
"sortCommits": "date-desc", | ||
"commitLint": false | ||
} |
This file contains 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,81 @@ | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
categories: | ||
- title: 'Features' | ||
labels: | ||
- 'type: feature' | ||
|
||
- title: 'Breaking Changes' | ||
labels: | ||
- 'type: breaking' | ||
|
||
- title: 'Documentation' | ||
labels: | ||
- 'type: docs' | ||
|
||
- title: 'Bug Fixes' | ||
labels: | ||
- 'type: fix' | ||
|
||
- title: 'Patches' | ||
labels: | ||
- 'type: chore' | ||
- 'type: tests' | ||
- 'type: patch' | ||
|
||
- title: 'Miscellaneous' | ||
labels: | ||
- 'type: misc' | ||
|
||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' | ||
|
||
version-resolver: | ||
major: | ||
labels: | ||
- 'type: breaking' | ||
minor: | ||
labels: | ||
- 'type: feature' | ||
|
||
patch: | ||
labels: | ||
- 'type: fix' | ||
- 'type: chore' | ||
- 'type: docs' | ||
- 'type: bug' | ||
- 'type: testing' | ||
default: patch | ||
|
||
exclude-labels: | ||
- 'release: skip changelog' | ||
|
||
template: | | ||
## Changes | ||
$CHANGES | ||
autolabeler: | ||
- label: 'type: chore' | ||
title: | ||
- /chore/i | ||
- /refactor/i | ||
|
||
- label: 'type: fix' | ||
title: | ||
- /fix/i | ||
- /hotfix/i | ||
- /bugfix/i | ||
- /patch/i | ||
|
||
- label: 'type: feature' | ||
title: | ||
- /feat/i | ||
- /feature/i | ||
- /enhancement/i | ||
- /new/i | ||
|
||
- label: 'type: docs' | ||
title: | ||
- /doc/i | ||
- /docs/i |
This file contains 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,20 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
- alpha | ||
- chore/changelog | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "main" | ||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
config-name: release_drafter.yml | ||
disable-autolabeler: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Add files here to ignore them from prettier formatting | ||
/dist | ||
/coverage | ||
/.nx/cache | ||
/.nx/cache | ||
auto-changelog-template.hbs |
This file contains 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 |
---|---|---|
@@ -1,10 +0,0 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
- Initial release | ||
This file contains 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 @@ | ||
{{#each releases}} | ||
{{#if href}} | ||
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}} | ||
{{else}} | ||
## {{title}}{{#if tag}} - {{isoDate}}{{/if}} | ||
{{/if}} | ||
|
||
{{#if merges}} | ||
### Community Contributions | ||
{{#commit-list merges heading='#### Breaking Changes' message='.*BREAKING.*'}} | ||
- {{message}} [`{{id}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list merges heading='#### Bug Fix' message='^fix.*$' exclude='.*BREAKING.*'}} | ||
- {{message}} [`{{id}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list merges heading='#### Patches' message='^chore|tests|patch|test.*$' exclude='.*BREAKING.*'}} | ||
- {{message}} [`{{id}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list merges heading='#### Documentation' message='^docs|GITBOOK.*$' exclude='.*BREAKING.*'}} | ||
- {{message}} [`{{id}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list merges heading='#### Miscellaneous' message='.*' exclude='(^docs|GITBOOK|chore|tests|patch|test|fix.*)|(.*BREAKING.*)'}} | ||
- {{message}} [`{{id}}`]({{href}}) | ||
{{/commit-list}} | ||
{{/if}} | ||
|
||
### Team Contributions | ||
{{#commit-list commits heading='#### Breaking Changes' message='.*BREAKING.*'}} | ||
- {{message}} [`{{shorthash}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list commits heading='#### Bug Fix' message='^fix.*$' exclude='.*BREAKING.*'}} | ||
- {{message}} [`{{shorthash}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list commits heading='#### Patches' message='^chore|tests|patch|test.*$' exclude='.*BREAKING.*'}} | ||
- {{message}} [`{{shorthash}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list commits heading='#### Documentation' message='^docs|GITBOOK.*$' exclude='.*BREAKING.*'}} | ||
- {{message}} [`{{shorthash}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{#commit-list commits heading='#### Miscellaneous' message='.*' exclude='(^docs|GITBOOK|chore|tests|patch|test|fix.*)|(.*BREAKING.*)'}} | ||
- {{message}} [`{{shorthash}}`]({{href}}) | ||
{{/commit-list}} | ||
|
||
{{/each}} |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.