Bug: feat-minor-bump-gate workflow reads stale title
Description
The feat-minor-bump-gate GitHub Actions workflow reads pr.title from the frozen webhook payload instead of fetching the live PR title via the GitHub API. When a PR title is renamed (e.g., feat(security): to fix(security):), the gate still evaluates the old frozen title and fails/succeeds based on stale data.
Reproduction
- Open a PR with
feat(security): title
- Gate runs on the
feat prefix
- Rename title to
fix(security):
- Gate re-runs (e.g., after amend + force-push)
- Gate still sees the original
feat(security): title from the webhook payload
Expected behavior
The gate should fetch the current PR title from the GitHub API, not use the webhook payload's frozen snapshot.
Impact
Suggested fix
Replace pr.title usage with an API call to fetch the live PR title:
const livePr = await github.rest.pulls.get({ owner, repo, pull_number });
const title = livePr.data.title;
Bug:
feat-minor-bump-gateworkflow reads stale titleDescription
The
feat-minor-bump-gateGitHub Actions workflow readspr.titlefrom the frozen webhook payload instead of fetching the live PR title via the GitHub API. When a PR title is renamed (e.g.,feat(security):tofix(security):), the gate still evaluates the old frozen title and fails/succeeds based on stale data.Reproduction
feat(security):titlefeatprefixfix(security):feat(security):title from the webhook payloadExpected behavior
The gate should fetch the current PR title from the GitHub API, not use the webhook payload's frozen snapshot.
Impact
Suggested fix
Replace
pr.titleusage with an API call to fetch the live PR title: