generated from dymensionxyz/rollapp
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Add auto update changelog workflow (#61)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
883653a
commit ed9c6da
Showing
2 changed files
with
52 additions
and
61 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,44 @@ | ||
# This workflow will add a changelog to the repository when a new commit is pushed to the main branch. | ||
# E.g., manually edit the commit message to align with conventional commit messages, such as: | ||
# feat(database): add new indexing capabilities | ||
# This update introduces advanced indexing options for handling complex queries more efficiently. | ||
|
||
name: Changelog Update | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
update_changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install conventional-changelog-cli | ||
run: npm install -g conventional-changelog-cli | ||
|
||
- name: Generate changelog diff | ||
run: | | ||
git fetch origin main:main | ||
conventional-changelog -p angular -i CHANGELOG.md -s -r 0 > changelog_diff.md | ||
echo "::set-output name=changelog::$(cat changelog_diff.md)" | ||
- name: Commit and push changelog update | ||
run: | | ||
git config user.name 'github-actions' | ||
git config user.email '[email protected]' | ||
git add CHANGELOG.md | ||
git commit -m "Update CHANGELOG.md" | ||
git push origin HEAD:refs/heads/${{ github.head_ref }} |
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,71 +1,18 @@ | ||
<!-- | ||
Guiding Principles: | ||
# (2024-04-25) | ||
|
||
Changelogs are for humans, not machines. | ||
There should be an entry for every single version. | ||
The same types of changes should be grouped. | ||
Versions and sections should be linkable. | ||
The latest version comes first. | ||
The release date of each version is displayed. | ||
Mention whether you follow Semantic Versioning. | ||
Usage: | ||
Change log entries are to be added to the Unreleased section under the | ||
appropriate stanza (see below). Each entry should ideally include a tag and | ||
the GitHub issue reference in the following format: | ||
* (<tag>) \#<issue-number> message | ||
Tag must include `sql` if having any changes relate to schema | ||
The issue numbers will later be link-ified during the release process, | ||
so you do not have to worry about including a link manually, but you can if you wish. | ||
Types of changes (Stanzas): | ||
"Features" for new features. | ||
"Improvements" for changes in existing functionality. | ||
"Deprecated" for soon-to-be removed features. | ||
"Bug Fixes" for any bug fixes. | ||
"Client Breaking" for breaking CLI commands and REST routes used by end-users. | ||
"API Breaking" for breaking exported APIs used by developers building on SDK. | ||
"State Machine Breaking" for any changes that result in a different AppState | ||
given same genesisState and txList. | ||
If any PR belong to multiple types of change, reference it into all types with only ticket id, no need description (convention) | ||
Ref: https://keepachangelog.com/en/1.0.0/ | ||
--> | ||
|
||
<!-- | ||
Templates for Unreleased: | ||
## Unreleased | ||
### Features | ||
### Improvements | ||
|
||
### Bug Fixes | ||
|
||
### Client Breaking | ||
* **app:** Fixed bech32 on account keeper to not be hardcoded ([#54](https://github.com/dymensionxyz/rollapp-wasm/issues/54)) ([883653a](https://github.com/dymensionxyz/rollapp-wasm/commit/883653af7053450af80719e1cfd93e8309ba7a7d)) | ||
* merge conflict ([#13](https://github.com/dymensionxyz/rollapp-wasm/issues/13)) ([2cc8431](https://github.com/dymensionxyz/rollapp-wasm/commit/2cc8431a3dc57a60efece2a485c7298c08d22ecb)) | ||
|
||
### API Breaking | ||
|
||
### State Machine Breaking | ||
--> | ||
|
||
# Changelog | ||
|
||
## Unreleased | ||
### Features | ||
|
||
### Improvements | ||
* add hub genesis module ([#43](https://github.com/dymensionxyz/rollapp-wasm/issues/43)) ([73b3ceb](https://github.com/dymensionxyz/rollapp-wasm/commit/73b3cebef6c159494f0a4074ef5edb804b82bf0c)) | ||
* Add wasm module for rollapp-wasm ([#10](https://github.com/dymensionxyz/rollapp-wasm/issues/10)) ([9829d4a](https://github.com/dymensionxyz/rollapp-wasm/commit/9829d4a10b9f7928c98151b7295b20f0d54a8ad0)) | ||
* **be:** integrate block explorer Json-RPC server ([#41](https://github.com/dymensionxyz/rollapp-wasm/issues/41)) ([51fd3e3](https://github.com/dymensionxyz/rollapp-wasm/commit/51fd3e36a0404d68325c64f79f65a15afc3be82a)) | ||
* **ci:** add auto update changelog workflow ([25a3ec8](https://github.com/dymensionxyz/rollapp-wasm/commit/25a3ec87506915de2330203bf48c340f3625d983)) | ||
|
||
- (deps) [#42](https://github.com/dymensionxyz/rollapp-wasm/issues/42) Bumps `block-explorer-rpc-cosmos v1.0.2` & `wasm-block-explorer-rpc-cosmos v1.0.2` | ||
- (deps) [#45](https://github.com/dymensionxyz/rollapp-wasm/issues/45) Bumps `block-explorer-rpc-cosmos v1.0.3` & `wasm-block-explorer-rpc-cosmos v1.0.3` | ||
|
||
### API Breaking | ||
|
||
- (deps) [#49](https://github.com/dymensionxyz/rollapp-wasm/issues/49) Bumps `block-explorer-rpc-cosmos v1.1.1` & `wasm-block-explorer-rpc-cosmos v1.1.1` |