-
Notifications
You must be signed in to change notification settings - Fork 209
Add GitHub Action to auto-assign Devin PRs to requesting users #2113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add GitHub Action to auto-assign Devin PRs to requesting users #2113
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 GitHub Actions workflow is introduced to automatically assign pull requests opened by the Devin AI integration bot. The workflow extracts a requesting user from the PR body using regex pattern matching and assigns that user to the PR, with logging for both successful and failed assignment attempts. 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. 🎉 🧹 Recent nitpick comments
Comment |
Summary
Adds a GitHub Actions workflow that automatically assigns Devin-created PRs to the user who requested the Devin session. When Devin opens a PR, the workflow parses the "Requested by" field from the PR description and assigns the PR to that GitHub user.
Handles two formats Devin uses:
Requested by: @usernameRequested by: Full Name (@username)Review & Testing Checklist for Human
issues: writeto calladdAssignees. Verify this works with the org's GitHub Actions permission settings (Settings > Actions > General > Workflow permissions).addAssigneescall will throw. Consider whether a try/catch with a warning log is needed.Test plan: After merging, trigger a new Devin session that creates a PR on this repo. Verify the workflow runs (check the Actions tab) and the PR gets assigned to the requesting user. Also verify it does not run on non-Devin PRs.
Notes
elementary-internal,elementary, anddbt-data-reliabilityin parallel PRs.Summary by CodeRabbit