Skip to content

bug(ci): feat-minor-bump-gate reads frozen webhook title instead of live PR title #3240

Description

@OneStepAt4time

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

  1. Open a PR with feat(security): title
  2. Gate runs on the feat prefix
  3. Rename title to fix(security):
  4. Gate re-runs (e.g., after amend + force-push)
  5. 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;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions