Skip to content

feat: add PR comment when user needs to add another reviewer - #6

Merged
morancj merged 1 commit into
mainfrom
devin/1769693169-add-reviewer-comment
Jan 29, 2026
Merged

morancj merged 1 commit into
mainfrom
devin/1769693169-add-reviewer-comment

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

This PR modifies the ai-gatekeeper workflow to post a comment on the PR when a user needs to add another reviewer. Previously, the workflow would only fail silently with an exit code. Now it will:

  1. Post a comment notifying the requester when they try to self-approve their own AI-generated PR
  2. Post a comment when the requester's handle couldn't be identified and fewer than 2 approvals exist

The comments use heredoc syntax to handle the multiline body with @ mentions.

Review & Testing Checklist for Human

  • Verify the heredoc syntax $(cat <<EOF ... EOF) works correctly in GitHub Actions runtime environment
  • Check that the indentation in the heredoc doesn't cause unwanted whitespace in the rendered comment
  • Test by creating a Devin-authored PR and having the requester approve it - verify the comment is posted correctly with the @mention

Notes

The YAML syntax has been validated locally, but the actual runtime behavior requires testing with a real PR scenario.

Link to Devin run: https://app.devin.ai/sessions/09d3bd0054e4462b8758cf93846fb36f
Requested by: @morancj

Co-Authored-By: team-engineering-notifications-accounts@dourolabs.xyz <team-engineering-notifications-accounts@dourolabs.xyz>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@morancj morancj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Amazing, great work bot

@devin-ai-integration

Copy link
Copy Markdown
Author

Thanks! Let me know if you'd like any changes to the PR.

@pyth-ops
pyth-ops self-requested a review January 29, 2026 14:47
@morancj
morancj merged commit 0709cf1 into main Jan 29, 2026
3 of 4 checks passed
@morancj
morancj deleted the devin/1769693169-add-reviewer-comment branch January 29, 2026 14:49
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.

2 participants