ci: request review from the Devin session creator on Devin PRs - #84
Merged
Conversation
Co-Authored-By: brandon <brandon@flightcontrol.dev>
Contributor
Author
🤖 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:
|
Ravion Module Publish PlanDry run only. No Ravion API mutations were made. No publish changes are required. All versions already exist with identical config. |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Request review from the session creator | ||
| uses: actions/github-script@v7 |
There was a problem hiding this comment.
Mutable write-enabled action reference
The workflow loads actions/github-script through the mutable v7 tag while granting pull-request write permission, leaving repository state exposed to unintended code when that upstream tag changes; pin the action to a full commit SHA. How this was verified: The referenced action receives the workflow's pull-requests: write permission.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/devin-pr-reviewer.yml
Line: 16
Comment:
**Mutable write-enabled action reference**
The workflow loads `actions/github-script` through the mutable `v7` tag while granting pull-request write permission, leaving repository state exposed to unintended code when that upstream tag changes; pin the action to a full commit SHA. **How this was verified:** The referenced action receives the workflow's `pull-requests: write` permission.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
flybayer
approved these changes
Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This repo has no
CODEOWNERS, so Devin PRs were opened with no reviewer at all (e.g. #83) and had to be assigned by hand. This adds a workflow that, on every PR opened bydevin-ai-integration[bot], parses theRequested by: @userline Devin appends to the body and requests review from that user:It reads the requester from the body rather than hardcoding a name, so PRs from anyone's session get routed to that person. Missing line or a failed request (e.g. reviewer lacks repo access) is a
core.warning, never a red check.Identical workflow added to
flightcontrolhq/flightcontrol(flightcontrolhq/flightcontrol#6761), where CODEOWNERS only covered a handful of paths.Link to Devin session: https://app.devin.ai/sessions/675bb21ebaa044e9b4291ca96ac271ca
Requested by: @flybayer
Greptile Summary
Adds automation for routing Devin-authored pull requests to their session creator.
Confidence Score: 4/5
The PR appears safe to merge, with a non-blocking supply-chain hardening opportunity in the new workflow.
The reviewer-routing logic is scoped to Devin-authored pull requests and handles expected failures without breaking CI, while the mutable action reference unnecessarily leaves write-enabled execution dependent on an upstream tag.
Files Needing Attention: .github/workflows/devin-pr-reviewer.yml
Security Review
The new write-enabled workflow references
actions/github-scriptby a mutable major-version tag; pinning it to a full commit SHA would constrain execution to reviewed action code.Important Files Changed
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "ci: request review from the Devin sessio..." | Re-trigger Greptile