Commit df43731
authored
feat: add require-pr-numbers flag for changelog generation (#181)
* feat: add require-pr-numbers flag for changelog generation
Add --requirePrNumbers flag to filter out direct commits without PR numbers from
changelogs. This helps maintain changelog quality for projects using strict PR-based
workflows.
Changes:
- Add require-pr-numbers input to update-release-changelog and create-release-pr actions
- Make --requirePrNumbers flag conditional based on input (defaults to false)
- Add merge logic to sync changelog branch with release branch updates
Requires @metamask/[email protected] with --requirePrNumbers support.
* fix: address Copilot review comments
- Replace eval with direct command execution for security
- Add platform-specific logic to create-platform-release-pr.sh
(extension uses yarn, mobile uses npx with pinned version)
- Clarify documentation that require_pr_numbers is ignored for mobile
- Add detailed comment explaining merge logic rationale in
update-release-changelog.sh (intentionally different from
create-platform-release-pr.sh)
* chore: update @metamask/auto-changelog to ^5.3.0
Update to use the published version with --requirePrNumbers support.
* fix: address additional Copilot review comments
- Fix typo: 'heckout_or_create_branch' -> 'checkout_or_create_branch'
- Improve merge conflict handling: reset to HEAD (pre-merge state)
instead of release branch to preserve existing changelog content
- Add clearer logging for merge conflict scenario
Note: Code duplication suggestion skipped (nitpick, over-engineering)
* refactor: streamline changelog generation logic
- Consolidate changelog generation for both extension and mobile platforms to use yarn auto-changelog.
- Remove redundant merge logic in update-release-changelog.sh to simplify the process.
- Ensure consistent handling of the --requirePrNumbers flag across scripts for improved clarity and functionality.
* fix: correct variable name and fix package.json formatting
- Fix bug: ${new_version} -> ${VERSION} in update-release-changelog.sh
- Add trailing newline to package.json for Prettier compliance
* docs: remove platform-specific limitation from require_pr_numbers
Standardize changelog generation for both platforms. The require-pr-numbers
flag can now be used for both extension and mobile, though it's currently
only enabled for extension.
* refactor: always use --requirePrNumbers flag
Remove conditional require-pr-numbers parameter and always apply
the --requirePrNumbers flag to filter out direct commits.
This simplifies the code as both extension and mobile teams have
agreed to use this behavior by default.1 parent 265e8b3 commit df43731
File tree
4 files changed
+21
-14
lines changed- .github/scripts
4 files changed
+21
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
352 | 357 | | |
353 | 358 | | |
354 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
212 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
946 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
957 | | - | |
| 957 | + | |
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | | - | |
| 1017 | + | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| |||
0 commit comments