revert: restore .github/workflows/pr-review-mention.yml#236
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
There was a problem hiding this comment.
Pull request overview
Restores the previously deleted pr-review-mention.yml GitHub Actions workflow that triggers an automated PR review flow when the bot is mentioned in comments/review comments or when donpetry-bot is requested as a reviewer.
Changes:
- Re-adds
.github/workflows/pr-review-mention.ymlworkflow. - Adds logic to (a) detect mention/review-request triggers, (b) check actor trust, (c) comment an acknowledgement, and (d) dispatch an event to
petry-projects/.github-private.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| github.event.requested_reviewer.login == 'donpetry-bot' && | ||
| github.event.pull_request.head.repo.full_name == github.repository) || | ||
| (github.event_name != 'pull_request' && | ||
| contains(github.event.comment.body, '@petry-review-bot') && |
| permissions: | ||
| pull-requests: write |
| - name: Post acknowledgement comment | ||
| if: steps.trust.outputs.trusted == 'true' | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GH_PAT_WORKFLOWS }} | ||
| PR_URL: ${{ steps.pr.outputs.pr_url }} | ||
| run: | | ||
| if [ "${{ github.event_name }}" = "pull_request" ]; then | ||
| ACTOR="${{ github.event.sender.login }}" | ||
| MSG="@${ACTOR} assigned me as reviewer — starting a fresh review now. Results will appear in a few minutes." | ||
| else | ||
| ACTOR="${{ github.event.comment.user.login }}" | ||
| MSG="@${ACTOR} I'm on it — starting a fresh review now. Results will appear in a few minutes." | ||
| fi | ||
| gh pr comment "$PR_URL" --body "$(printf '<!-- pr-review-agent mention-ack -->\n%s' "${MSG}")" |
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
revert: restore pr-review-mention.yml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>



Restores the accidentally deleted
pr-review-mention.ymlworkflow.This reverts change #1 from the erroneous deprecation commit.