-
Notifications
You must be signed in to change notification settings - Fork 648
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
Add git cliff toml to support generation of changelog #2697
Changes from 1 commit
670d534
d8cafd4
4b53323
16ee689
6706aed
3b6c79d
87c12dd
a875571
1813f59
4569ff0
aabaed7
8490b30
2353229
140d251
d90488e
13403c9
0c028ac
3ba101c
0a30c21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,41 @@ are the most critical to review. | |
|
||
closes: #XXXX | ||
|
||
|
||
### Commit Message / Changelog entry | ||
|
||
```bash | ||
type: commit message | ||
``` | ||
|
||
see the [guidelines](../CONTRIBUTING.md#commit-messages) for commit messages. (view raw markdown for examples) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe move this into the comment section? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was intended to be short version with a prompt to look at the raw markdown (it might not be obvious if you don't know where to look). Do you think it's not necessary to indicate that there is more details in comments? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was just thinking this would show on every pr description, but it is only relevant to the pr opener and thus it might make sense to make it a comment in the description so it isn't viewable by the reviewers. But I have no preference, we can always change it later There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it might provide some value, but like you said we can always remove it in the future if it just ends up being perceived as bloat! |
||
|
||
|
||
<!-- | ||
Example commit messages: | ||
|
||
fix: skip emission of unpopulated memo field in ics20 | ||
deps: updating sdk to v0.46.4 | ||
chore: removed unused variables | ||
e2e: adding e2e upgrade test for ibc-go/v6 | ||
docs: ics27 v6 documentation updates | ||
feat: add semantic version utilities for e2e tests | ||
feat(api)!: this is an api breaking feature | ||
fix(statemachine)!: this is a statemachine breaking fix | ||
--> | ||
|
||
--- | ||
|
||
Before we can merge this PR, please make sure that all the following items have been | ||
checked off. If any of the checklist items are not applicable, please leave them but | ||
write a little note why. | ||
|
||
- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting)) | ||
- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting)). | ||
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. | ||
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/main/docs/docs/building-modules/10-structure.md). | ||
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing) | ||
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`) | ||
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing). | ||
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`). | ||
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code). | ||
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md` | ||
- [ ] Re-reviewed `Files changed` in the Github PR explorer | ||
- [ ] Review `Codecov Report` in the comment section below once CI passes | ||
- [ ] Provide a [commit message](../CONTRIBUTING.md#commit-messages) to be used for the changelog entry in the PR description for review. | ||
- [ ] Re-reviewed `Files changed` in the Github PR explorer. | ||
- [ ] Review `Codecov Report` in the comment section below once CI passes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,8 @@ All PRs require an approval from at least one CODEOWNER before merge. PRs which | |
|
||
Commit messages should be [conventional](https://www.conventionalcommits.org/en/v1.0.0/). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do all the commits in the PR need to follow this convention or the one that matters is the commit message that is entered when squashing the PR? Because in that case, we can have more relaxed rules for the commits while you're working on the PR, and then be careful when squashing the PR, which is something that we have control of. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes you're right it's only the final squashed commit that matters. |
||
|
||
If opening a PR, include the proposed commit message in the PR description. | ||
|
||
The commit message type should be one of: | ||
|
||
* `feat` / `feature` for feature work. | ||
|
@@ -100,10 +102,12 @@ The commit message type should be one of: | |
* `deps` / `build` for changes to dependencies. | ||
* `chore` / `misc` / `nit` for any miscellaneous changes that don't fit into another category. | ||
|
||
**Note**: If any change breaking, the following format must be used: | ||
**Note**: If any change is breaking, the following format must be used: | ||
* `type` + `(api)!` for api breaking changes, e.g. `fix(api)!: api breaking fix` | ||
colin-axner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* `type` + `(statemachine)!` for state machine breaking changes, e.g. `fix(statemachine)!: state machine breaking fix` | ||
colin-axner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
**`api` breaking changes take precedence over `statemachine` breaking changes.** | ||
|
||
### Updating Documentation | ||
|
||
If you open a PR on ibc-go, it is mandatory to update the relevant documentation in /docs. | ||
|
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.
cc @colin-axner @charleenfei @damiannolan @crodriguezvega
I updated the PR template to include a new section where contributors will include the proposed commit message / changelog entry. (can thumbs up if you're happy, and leave a comment if you have any suggestions / concerns! )