Skip to content

fix: pin pr-review-mention reusable to d3d768d SHA#268

Merged
don-petry merged 5 commits into
mainfrom
claude/issue-267-20260513-1233
May 13, 2026
Merged

fix: pin pr-review-mention reusable to d3d768d SHA#268
don-petry merged 5 commits into
mainfrom
claude/issue-267-20260513-1233

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

  • Pin standards/workflows/pr-review-mention.yml to SHA d3d768dabb7f28cc63283cdfe48630da53700e50 (latest main)
  • Add a fanout reminder to the template's AGENTS comment block

Root cause: The v1 lightweight tag pointed to commit 0cb4bba1 which predates pr-review-mention-reusable.yml, causing a parse-time workflow was not found error in every caller repo.

Tag operations already applied (out-of-band):

  • v1 force-moved → d3d768d (unblocks production immediately)
  • v2 cut at d3d768d

Fanout PRs (all draft):

Note: .github/workflows/pr-review-mention.yml in this repo already uses a local ./ ref and does not need updating.

Closes #267

Generated with Claude Code

The @v1 tag in petry-projects/.github pointed to commit 0cb4bba which
predates the existence of pr-review-mention-reusable.yml, causing a
parse-time "workflow was not found" error in all caller repos.

Pin the uses: line in the standards template to the correct SHA
(d3d768d, the latest main commit containing the reusable) and add a
fanout reminder so the template and callers stay in sync going forward.

The v1 tag has been force-moved to d3d768d and a new v2 tag cut at
the same SHA to unblock production immediately.

Closes #267

Co-authored-by: Don Petry <don-petry@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Warning

Rate limit exceeded

@don-petry has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 41 minutes before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ 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: b2bc7840-7af8-4905-9a3e-593b5d1ef527

📥 Commits

Reviewing files that changed from the base of the PR and between b799623 and 705273d.

📒 Files selected for processing (1)
  • standards/workflows/pr-review-mention.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-267-20260513-1233

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
Contributor

@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 updates the pr-review-mention.yml workflow to pin a specific commit SHA and adds documentation regarding the update process. Feedback indicates that pinning internal reusable workflows to a SHA violates the organization's Action Pinning Policy, which requires using version tags like @v1 or @main. It is recommended to use the @v2 tag instead and to update the documentation to refer to versions or tags rather than SHAs to ensure consistency with established standards.

Comment thread standards/workflows/pr-review-mention.yml Outdated
Comment thread standards/workflows/pr-review-mention.yml Outdated
@don-petry don-petry marked this pull request as ready for review May 13, 2026 16:17
@don-petry don-petry requested a review from a team as a code owner May 13, 2026 16:17
Copilot AI review requested due to automatic review settings May 13, 2026 16:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins the pr-review-mention-reusable.yml reference in the template caller stub to a specific SHA (d3d768d) to resolve a stale v1 tag that pointed to a commit predating the reusable workflow file, and adds a maintenance note to the AGENTS comment block.

Changes:

  • Replace @v1 ref with @d3d768dabb7f28cc63283cdfe48630da53700e50 # main SHA pin
  • Add fanout reminder to the template's instructional comment block

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@don-petry don-petry enabled auto-merge (squash) May 13, 2026 16:38
@don-petry
Copy link
Copy Markdown
Contributor Author

@donpetry-bot

@don-petry
Copy link
Copy Markdown
Contributor Author

@don-petry I'm on it — starting a fresh review now. Results will appear in a few minutes.

@donpetry-bot
Copy link
Copy Markdown
Contributor

donpetry-bot commented May 13, 2026

Superseded by automated re-review at 82af6400b900ef57439c26fce5c70042aa7fb2eb — click to expand prior review.

Review — fix requested (cycle 1/3)

The automated review identified the following issues. Please address each one:

Findings to fix

[Findings would be inserted here]

Additional tasks

  1. Resolve all unresolved review thread comments from other reviewers
  2. Ensure all CI checks pass after your changes
  3. Rebase on the target branch if behind
  4. Do NOT modify files unrelated to the findings above

The review cascade will automatically re-review after new commits are pushed.

donpetry-bot
donpetry-bot previously approved these changes May 13, 2026
Copy link
Copy Markdown
Contributor

@donpetry-bot donpetry-bot left a comment

Choose a reason for hiding this comment

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

Automated review — APPROVED ✓

Risk: MEDIUM
Reviewed commit: 82af6400b900ef57439c26fce5c70042aa7fb2eb
Cascade: triage → deep (triage: haiku 4.5 → deep: sonnet 4.6 + duck: o4-mini → audit: opus 4.7)

Summary

The PR correctly fixes a broken @v1 tag by pinning to the full commit SHA (d3d768d). The triage-flagged tension between SHA pinning and the @v2 tag recommendation dissolves on close reading: the linked issue (#267), authored by the org owner, explicitly mandates the SHA pin form and states it matches ci-standards.md action-pinning policy. Gemini's suggestion to use @v2 instead appears to be a false positive — mutable tags are exactly what caused the original breakage, and the issue was written with full awareness that @v2 exists at the same SHA. All CI gates pass (CodeQL success, SonarQube 0 issues).

Findings

  • INFO: Gemini flagged SHA pinning as violating the org's Action Pinning Policy and recommended @v2 instead. However, the authoritative issue #267 (authored by org owner don-petry) explicitly specifies this exact SHA pin form and states it 'matches ci-standards.md action-pinning policy'. The v2 tag exists at the same SHA but is mutable — using it would recreate the same drift problem that caused this incident. SHA pin is the correct, immutable form here.
  • INFO: Issue #267 Scope lists 5 files across 4 repos. This PR covers only the standards template (1 of 5 files). Fanout PRs for TalkTerm (#173) and bmad-bgreat-suite (#147) are noted as open drafts in the PR description; google-app-scripts was also mentioned. These are intentionally separate PRs per the issue's Execution Order — this PR is scoped correctly.
  • INFO: All required CI checks passed: CodeQL (success), SonarQube Quality Gate (0 new issues, 0 security hotspots), CodeRabbit (rate-limited, no findings recorded). No failures blocking merge on technical grounds — block is purely REVIEW_REQUIRED from org-leads team.
  • MINOR: The added comment says 'When publishing a new SHA of this reusable' — slightly ambiguous. It could mean 'when the reusable file changes and a new pinnable commit exists'. Consider 'When updating this reusable (new SHA on main)' for clarity, but this is cosmetic and not a blocker.

Reviewed by the PR-review cascade (triage: haiku 4.5 → deep: sonnet 4.6 + duck: o4-mini → audit: opus 4.7). Reply if you need a human review.

coderabbitai[bot]
coderabbitai Bot previously approved these changes May 13, 2026
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@donpetry-bot donpetry-bot left a comment

Choose a reason for hiding this comment

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

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: 705273df88128ddbc7b6e7a7d393b326fb95aecc
Review mode: triage-approved (single reviewer)

Summary

Triage already cleared this PR as low-risk; this is a confirmation pass. The change is a tightly-scoped 3-line update to standards/workflows/pr-review-mention.yml: bumps uses: from @v1 (broken — pointed to a commit predating the reusable file) to @v2, and adds a fanout-reminder comment to the AGENTS header block. All CI gates pass.

Linked issue analysis

Issue #267 (authored by org owner) specifies that v1 is force-moved to d3d768d AND a new v2 tag is cut at the same SHA. The issue's "Pin form in YAML" section recommended an explicit SHA pin, but Gemini reviewer flagged that the file's own header comment block and the org's internal-ref policy prescribe tag pinning (@v1/@v2) for org-internal reusables. The author correctly pivoted to @v2, which the issue itself confirms resolves to the same d3d768d SHA. This PR scope is the standards template only — fanout PRs for TalkTerm (#173), bmad-bgreat-suite (#147), and google-app-scripts (#272) are intentionally tracked separately per the issue's Execution Order.

Findings

  • INFO: PR body still references the SHA-pin form ("Pin standards/workflows/pr-review-mention.yml to SHA d3d768d...") which is now stale after the @v2 pivot. Cosmetic only — doc drift in the PR description, not in code. Consider editing the PR body if it will be used as the squash-commit message.
  • INFO: The Step-5 fanout reminder added at line 16–17 matches the wording suggested by issue #267 closely ("When publishing a new version of this reusable, also update this template and open a fanout PR across all caller repos."). Good preventive measure against future template/caller drift.
  • INFO: The author's deviation from the issue's literal SHA-pin form is a defensible judgment call: the file header at lines 8–9 explicitly documents tag-bump (@v1@v2) as the expected upgrade path for this caller stub. Gemini's review independently flagged the SHA form as inconsistent with that documented convention. Tag mutability risk (the original root cause) is mitigated here because @v2 is a freshly cut tag at a known-good SHA, not a long-lived rolling tag.

CI status

All required checks green: CodeQL success, SonarCloud Quality Gate passed (0 new issues, 0 security hotspots), Lint, ShellCheck, AgentShield, Agent Security Scan, Claude Code — all SUCCESS. CodeRabbit was rate-limited (no findings recorded, not a failure). Merge state is BLOCKED solely on REVIEW_REQUIRED.


Reviewed automatically by the PR-review agent (single-reviewer mode: opus 4.7). Reply if you need a human review.

@don-petry don-petry merged commit 575df99 into main May 13, 2026
21 checks passed
@don-petry don-petry deleted the claude/issue-267-20260513-1233 branch May 13, 2026 18:01
@donpetry-bot
Copy link
Copy Markdown
Contributor

Automated review — human attention needed

This PR has been through 3 automated review cycles (cap: 3) without converging on an approval-and-merge state. Further automated review has been paused to avoid infinite loops.

Please take a look manually, or close this PR if it's no longer needed. Once a human review resolves the situation, remove the needs-human-review label and the cascade can be re-engaged on the next push.

Posted by the donpetry-bot PR-review cascade.

@donpetry-bot donpetry-bot requested a review from a team May 13, 2026 18:02
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.

Fix org-wide failure of pr-review-mention reusable workflow caller (stale v1 tag)

3 participants