Skip to content

ci: accept URL-format issue references in Gate: Issue linked#565

Merged
EffortlessSteven merged 3 commits intomainfrom
fix/ci-issue-link-url-format
Apr 16, 2026
Merged

ci: accept URL-format issue references in Gate: Issue linked#565
EffortlessSteven merged 3 commits intomainfrom
fix/ci-issue-link-url-format

Conversation

@EffortlessSteven
Copy link
Copy Markdown
Member

@EffortlessSteven EffortlessSteven commented Apr 16, 2026

Closes #565

Fixes the 'Gate: Issue linked' CI check to accept both 'Fixes #N' and 'Fixes: https://github.com/.../issues/N' formats. Both are valid GitHub issue references.

Both parse_suppression and parse_suppression_in_comments return Option<Suppression>
but were missing #[must_use]. Callers who ignore the return value silently drop
suppressions, causing rules to fire incorrectly.

Fixes: #307
The check previously only matched 'Fixes #N' but not 'Fixes: https://.../issues/N'.
Both formats are valid GitHub issue references; support both.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 16, 2026

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 37 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 37 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 74174595-fb50-479b-a854-0f6036289213

📥 Commits

Reviewing files that changed from the base of the PR and between e38e907 and 283803b.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • crates/diffguard-domain/src/suppression.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ci-issue-link-url-format

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e833fd10b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
exit 0
fi
if grep -qiE '(closes|fixes|resolves)\s+#[0-9]+' /tmp/pr-body.txt; then
if grep -qiE '(closes|fixes|resolves)(\s+#[0-9]+|\s+https?://[^/]+/[^/]+/issues/[0-9]+)' /tmp/pr-body.txt; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Match full GitHub issue URL format in CI gate

The new grep pattern still rejects standard GitHub issue links, so the “Issue linked” gate will fail for PR bodies like Fixes: https://github.com/<owner>/<repo>/issues/123. At this line, the URL branch only allows one path segment before /issues (/[^/]+/issues/...), but real GitHub issue URLs require two (/<owner>/<repo>/issues/...), and the pattern also requires whitespace immediately after fixes|closes|resolves, which excludes the documented Fixes: ... form from the commit message.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds #[must_use] attributes to the parse_suppression and parse_suppression_in_comments functions in the suppression domain logic to ensure their return values are handled. I have no feedback to provide.

@EffortlessSteven EffortlessSteven merged commit e3e741c into main Apr 16, 2026
10 checks passed
@EffortlessSteven EffortlessSteven deleted the fix/ci-issue-link-url-format branch April 16, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant