Skip to content

fix(ci): check PR body for linked issue on non-default branches - #43964

Open
major wants to merge 1 commit into
anomalyco:v2from
major:fix-pr-standards
Open

fix(ci): check PR body for linked issue on non-default branches#43964
major wants to merge 1 commit into
anomalyco:v2from
major:fix-pr-standards

Conversation

@major

@major major commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #43963

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The check-standards job in .github/workflows/pr-standards.yml previously checked for linked issues exclusively via GraphQL pullRequest.closingIssuesReferences.totalCount.
Because GitHub only recognizes closing keywords on PRs targeting the repository's default branch (dev), PRs targeting v2 always return 0 and trigger false-positive needs:issue warnings.

This PR adds a fallback that inspects the PR description for closing keywords (such as Closes #<number> or Fixes #<number>).
This matches the parsing logic in check-compliance and allows PRs targeting v2 and other non-default branches to pass validation.

How did you verify your code works?

  • Verified regex patterns against PR body formats containing closing keywords.
  • Confirmed compatibility with existing check-compliance checks in pr-standards.yml.

Screenshots / recordings

N/A (CI workflow fix)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

- fall back to parsing PR description for issue references in pr-standards

- prevent false-positive needs:issue labels on PRs targeting v2

Signed-off-by: Major Hayden <major@mhtx.net>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

This appears to be a previous attempt to fix the same problem. You should check whether PR #38408 was closed/merged and why a new PR is needed, or if this is a duplicate that should be closed in favor of the existing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant