Commit a38a657
authored
fix(workflows): scan only commit subjects for breaking change detection (#1157)
## Summary
Fixes false-positive breaking change detection in the pre-release
version computation that caused the pre-release version to jump to 4.x
instead of 3.x.
## Problem
The breaking change detection in `release-prerelease-pr.yml` scanned
both commit subjects and bodies (`--format='%s%n%b'`). Dependabot
commits embed upstream changelogs in their bodies as HTML. Commit
`2290dc0` (`chore(deps): bump the github-actions group...`) included the
`actions/create-github-app-token` v3.0.0 changelog, which contains:
```
fix!: require NODE_USE_ENV_PROXY for proxy support
```
The `fix!:` from the **upstream** repo matched the breaking change regex
at a line boundary in the body, triggering `HAS_BREAKING > 0` and
bumping the pre-release major version to 4.
## Fix
Changed `git log --format='%s%n%b'` to `git log --format='%s'` so the
grep only scans commit **subjects**. Per the Conventional Commits spec,
breaking change indicators (`!:` suffix or `BREAKING CHANGE:` footer)
belong in the subject line, making body scanning unnecessary.
## Validation
- YAML lint: 43/43 workflow files pass
🔧 - Generated by Copilot1 parent 0eee5b6 commit a38a657
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments