feat(api): Add the ability to include commit authors and PR references to default-changelog-notes#1938
feat(api): Add the ability to include commit authors and PR references to default-changelog-notes#1938jamszh wants to merge 21 commits into
Conversation
…- address feedback
|
This would be very nice to have! Another related thought, maybe a list of excluded authors? For example, I wouldn't want myself listed by every single commit I do. |
chingor13
left a comment
There was a problem hiding this comment.
Sorry for the late review, but this is looking great!
One question -- is this opt-in? IMO, all the new features should not change existing behavior.
| type: options.changelogType || 'default', | ||
| github: options.github, | ||
| changelogSections: options.changelogSections, | ||
| commitPartial, |
There was a problem hiding this comment.
This feature is entirely opt-in.
commitPartial already existed as as optional argument prior to this PR.
It was just never used.
So now we provide a real value if commitPartialPath (newly added as part of this PR) is specified in the manifest file.
Yep. |
Yeah I can see this being annoying. I was thinking we could also remove the Alternatively, I wonder if it is possible to supress the notifications for these Github mentions created by |
|
What is the current state of this PR? Thanks for your work! |
I have updated the PR again. It should be ready for another review from @chingor13. |
chingor13
left a comment
There was a problem hiding this comment.
This looks so close. I think we will want to pass the template string in the config, rather than making an extra GitHub API request to fetch the template from a file on the repository. The template contents should be small enough (generally a one-liner)
The example template I used is quite big. Though i'm not too sure how others will use it Are you saying we should have the contents of the 'commit-partial.hbs' file as part of the config? |
|
Would love to see this merged. Thanks for your work! |
|
This would be amazing. Anything I can do to help push it over the edge? |
|
This would be amazing! |
|
@chingor13 what’s holding this up? |
|
I've resolved the conflicts. This PR has some overlap with #2628. Both introduce a way of attaching an author to a release note, however the solution provided by this PR is slightly more customisable (requires providing a Regardless, I've ensured that the functionality introduced in #2628 is preserved. Both are opt-in. I've re-tested - everything seems to be good. Here is the PR with generated release notes with the update changes in this branch. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Context:
Fixes #1716 🦕
This PR is a follow-up to #1717
We can probably close it as my PR is based off it.
Changes:
commitPartialattribute fromBaseStrategyOptionscommitPartialPathto the manifest config and friends.release-please-commit-partial.hbsfile.commitPartialPathis provided)TESTING
I have done testing on this dummy repo.
https://github.com/jamszh/test-release-please
You can provide a path to a custom
commit-partial.hbsfile like this one../build/src/bin/release-please.js release-pr --token $GITHUB_TOKEN --repo-url jamszh/test-release-please --target-branch main --commit-partial-path .release-please-commit-partial.hbsHere is an example auto-release PR generated by the command above.
For testing, the $GITHUB_TOKEN is a fine grain token with access to the test-release-please repo. I used these permissions.
