Skip to content

Add GitHub Action to auto-assign Devin PRs to requesting users#927

Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1770891202-auto-assign-devin-prs
Open

Add GitHub Action to auto-assign Devin PRs to requesting users#927
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1770891202-auto-assign-devin-prs

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 12, 2026

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: @username
  • Requested 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

  • Regex coverage: Verify the regex handles all "Requested by" formats that Devin PRs actually use — spot-check a few recent Devin PR descriptions to confirm. Usernames with hyphens (e.g. @some-user) are supported, but other special characters are not.
  • Permissions: Confirm that the GITHUB_TOKEN with pull-requests: write and issues: write is sufficient for addAssignees in this repo (private repos may have different default token scopes).
  • Test plan: After merging, have Devin open a new PR and verify the assignee is automatically set. There is no way to test this workflow before it's live.

Notes

  • This workflow is being added to elementary-internal, elementary, and dbt-data-reliability via separate PRs with identical content.
  • No error handling around the addAssignees API call — if the user can't be assigned (e.g., not a collaborator), the workflow will fail visibly but won't block the PR.
  • Link to Devin run: https://app.devin.ai/sessions/b9c4ec80086244d9a0e2f2c440b2363e
  • Requested by: @haritamar

Summary by CodeRabbit

  • Chores
    • Implemented automated pull request assignment functionality that extracts and assigns reviewers based on requester information included in pull request descriptions.

Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
@devin-ai-integration
Copy link
Contributor 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

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

👋 @devin-ai-integration[bot]
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in the elementary repository.

@coderabbitai
Copy link

coderabbitai bot commented Feb 12, 2026

📝 Walkthrough

Walkthrough

A 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

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/assign-devin-prs.yml
New workflow that triggers on PR opened events, extracts username from PR body "Requested by" field, and auto-assigns PR to that user when actor is devin-ai-integration bot.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A workflow hops into the light,
Devin's PRs now get assigned right,
Parse the body, find the name,
GitHub API does the same,
Automation's quite a delight!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding a GitHub Action workflow to auto-assign Devin PRs to requesting users, which matches the primary objective of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch devin/1770891202-auto-assign-devin-prs

No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

@haritamar haritamar self-assigned this Feb 12, 2026
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