-
Notifications
You must be signed in to change notification settings - Fork 118
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
ci: Check if valid title is used in PR #989
Conversation
What are the tradeoffs of generating release notes after PRs are merged vs before they're merged? It might be nice to review the generated release notes as part of the pull request. |
It generates release notes based on PR title after merging, if we do it before, then we will have merge conflicts anyway. Also please check file startsWith("feat") -> replaceFirst("feat", "New feature".markdownBold())
startsWith("fix") -> replaceFirst("fix", "Fix".markdownBold())
startsWith("docs") -> replaceFirst("docs", "Documentation".markdownBold())
startsWith("refactor") -> replaceFirst("refactor", "Refactor".markdownBold())
startsWith("ci") -> replaceFirst("ci", "CI changes".markdownBold())
startsWith("test") -> replaceFirst("test", "Tests update".markdownBold())
startsWith("perf") -> replaceFirst("perf", "Performance upgrade".markdownBold()) |
that makes sense! I'm looking into creating a Flank app and then adding the token from that. |
There's some way to get a bot account from a GitHub App and have the access token associated with the app. I think we'll need to figure this out. We're trying to move away from user accounts/personal access tokens. There are security and API rate limit concerns with using user accounts for repo automation. It might make sense to fork flank into a new org, experiment there, and then we'll bring back the learnings to the production Flank repo. |
I created https://github.com/apps/flank but am not sure where the token is. 🤔 |
Maybe here is the answer ? Edit: And helper page |
I'm super excited for the conventional commits automatic release notes generation. Thanks for helping me think through a few different possibilities. If we generate the release notes after every commit, that'll add a lot of noise in the git history of the project. After reflecting, I think the best way to generate release notes is directly before a release. This matches the angular convention where this practice originated from. https://github.com/angular/angular/commits/master/CHANGELOG.md This also resolves the problem of having to provide a highly privileged token that interfaces with a protected branch. What do you think? |
Ok I will split this PR into 2 separate.
Is it ok? |
Sounds good! |
2ea5a14
to
d3eee6a
Compare
b085ee2
to
7c4172e
Compare
release_notes.md
Outdated
@@ -3,6 +3,7 @@ | |||
- [#987](https://github.com/Flank/flank/pull/987) Flank Error Monitoring readme addition ([sloox](https://github.com/Sloox)) | |||
- [#990](https://github.com/Flank/flank/pull/990) Fix: exclusion of @Suppress test. ([piotradamczyk5](https://github.com/piotradamczyk5)) | |||
- [#988](https://github.com/Flank/flank/pull/988) Add versions description command for ios and android. ([adamfilipow92](https://github.com/adamfilipow92)) | |||
- [#948](https://github.com/Flank/flank/pull/948) CI changes: Check if valid title is used in PR. ([piotradamczyk5](https://github.com/piotradamczyk5)) |
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.
Maybe its should be
#989
?
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.
thanks 👍
7c4172e
to
3625fef
Compare
Fixes #814
Test Plan
release_notes.md
Checklist