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
| - [#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)) |
7c4172e to
3625fef
Compare
Fixes #814
Test Plan
release_notes.mdChecklist