microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
main

Branches

Tags

268Branches29Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Commit

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 Copilot
Changed files1Full changed-file index
Branches100Branch list truncated
Tags8Containing tags