Add GitHub Action to auto-assign Devin PRs to requesting users#927
Add GitHub Action to auto-assign Devin PRs to requesting users#927devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
Conversation
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
👋 @devin-ai-integration[bot] |
📝 WalkthroughWalkthroughA new GitHub Actions workflow is introduced that automatically assigns pull requests opened by the devin-ai-integration bot to a user specified in the PR body's "Requested by" pattern, using the GitHub API for assignment and logging the result. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
Add GitHub Action to auto-assign Devin PRs to requesting users
Summary
Adds a lightweight GitHub Actions workflow that triggers when a PR is opened by
devin-ai-integration[bot]. It parses the "Requested by" field from the PR description and assigns the PR to that GitHub user.Supports both formats Devin uses:
Requested by: @usernameRequested by: Full Name (@username)If no requesting user is found in the body, it logs a message and does nothing.
Review & Testing Checklist for Human
@some-user) are supported, but other special characters are not.GITHUB_TOKENwithpull-requests: writeandissues: writeis sufficient foraddAssigneesin this repo (private repos may have different default token scopes).Notes
elementary-internal,elementary, anddbt-data-reliabilityvia separate PRs with identical content.addAssigneesAPI call — if the user can't be assigned (e.g., not a collaborator), the workflow will fail visibly but won't block the PR.Summary by CodeRabbit