Skip to content

ci(review): wire the Greptile second-opinion summon behind a label - #147

Merged
scttbnsn merged 2 commits into
dev/v0.9from
ci/greptile-second-opinion
Aug 18, 2026
Merged

scttbnsn merged 2 commits into
dev/v0.9from
ci/greptile-second-opinion

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add .github/workflows/greptile.yml, a thin caller into the organization's reusable greptile-summon.yml, that fires only when a PR gets the second-opinion label — passing pr_number and head_sha.
  • Create the second-opinion label (#5319E7, "Summon Greptile for a second-opinion review").
  • Document greptile.json in AGENTS.md: it pins Greptile to skipReview: AUTOMATIC so it never auto-reviews, and is the on-demand second-opinion reviewer summoned by this label (policy in codeswhat-ops standards/review.md).
  • Add an Unreleased ### Added CHANGELOG entry for the label-gated workflow.

This also covers item 4 of #139 (the AGENTS.md sentence on greptile.json).

Fixes #134

Test plan

  • actionlint .github/workflows/greptile.yml — clean
  • zizmor .github/workflows/greptile.yml — no findings
  • lefthook pre-commit / commit-msg / pre-push hooks all passed locally (goreleaser-snapshot, go-lint, qlty, go-test, govulncheck, go-fuzz, actionlint, zizmor, web, clean-tree)

✨ Added

  • Added a label-triggered .github/workflows/greptile.yml.
  • Runs the pinned Greptile reusable workflow when second-opinion is applied.
  • Passes the pull request number and head SHA.
  • Grants the summon job pull-request write permission.
  • Documented greptile.json and on-demand Greptile reviews in AGENTS.md.

⚠️ Concerns

  • Verify that the second-opinion label exists.
  • Verify that greptile.json contains {"skipReview":"AUTOMATIC"}.
  • Verify that the Unreleased changelog entry exists.
  • Verify that workflow-level permissions are empty and job-level permissions are limited to pull-request write access.
  • Verify that the workflow uses the organization’s pinned greptile-summon.yml reusable workflow.
  • Verify that label reapplication can trigger another review after new commits.

- ci(review): add .github/workflows/greptile.yml, a thin caller into
  CodesWhat/.github's reusable greptile-summon.yml, gated on the
  second-opinion PR label
- docs: explain greptile.json in AGENTS.md
- chore(changelog): note the label-gated Greptile second-opinion workflow

Fixes: #134
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deployment failed for project getportwing with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f18f9cb4-5640-4370-9e5a-ccbc8ca501fa

📥 Commits

Reviewing files that changed from the base of the PR and between ed4cab5 and 7b7f5f2.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (2)
  • .github/workflows/greptile.yml
  • AGENTS.md

Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Adds a GitHub Actions workflow that listens for labeled pull request events. When the second-opinion label is applied, it invokes the pinned Greptile reusable workflow with pull request metadata and pull-requests: write permission. Updates AGENTS.md to document the automatic-review disablement and label-triggered Greptile workflow.

Possibly related PRs

Merge Risk: ⚪ Minimal · up to 7b7f5

This change adds a label-gated workflow and related documentation; no actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The workflow matches the label trigger, empty default permissions, pull-request write scope, pinned reusable workflow, PR number, and head SHA requirements; the PR also states label and config requirements are met.
Out of Scope Changes check ✅ Passed The workflow and AGENTS.md update directly support the Greptile second-opinion workflow and its documented operation.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/greptile-second-opinion

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.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@scttbnsn
scttbnsn merged commit 041250e into dev/v0.9 Aug 18, 2026
24 of 26 checks passed
@scttbnsn
scttbnsn deleted the ci/greptile-second-opinion branch August 19, 2026 17:35
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