ci: add Devin review workflow for blog article PRs#3870
ci: add Devin review workflow for blog article PRs#3870devin-ai-integration[bot] wants to merge 3 commits intomainfrom
Conversation
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hyprnote canceled.
|
🤖 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:
|
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
| - name: Get changed files | ||
| id: changed-files | ||
| run: | | ||
| FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'apps/web/content/articles/*.mdx' | tr '\n' ' ') |
There was a problem hiding this comment.
The glob pattern apps/web/content/articles/*.mdx only matches .mdx files directly in the articles directory, not in subdirectories. This is inconsistent with the path trigger on line 8 which uses ** to match files at any depth. If articles exist in subdirectories (e.g., apps/web/content/articles/2026/post.mdx), the workflow will trigger but won't detect any changed files.
FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'apps/web/content/articles/**/*.mdx' | tr '\n' ' ')| FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'apps/web/content/articles/*.mdx' | tr '\n' ' ') | |
| FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD -- 'apps/web/content/articles/**/*.mdx' | tr '\n' ' ') |
Spotted by Graphite Agent
Is this helpful? React 👍 or 👎 to let us know.
Summary
Adds a new GitHub Actions workflow (
blog-devin-review.yml) that automatically triggers a Devin session to review blog article PRs. When a PR from ablog/**branch touches files inapps/web/content/articles/, Devin will review the article content and leave inline PR comments with suggestions.The workflow:
mainfromblog/**branches (same pattern asblog-grammar-check.yml).mdxarticle files.github/actions/devincomposite action to create a Devin sessionReview & Testing Checklist for Human
fastrepl/hyprnote.blog/**branch will spin up a Devin session. Confirm this is acceptable, or consider adding a label-based gate (e.g., only trigger when areviewlabel is added) if you want reviews only on demand.blog/**branch with an article change → verify the workflow triggers → verify Devin creates a session and leaves review comments on the PR.Notes
DEVIN_API_KEYsecret is already configured (used bydevin_triage_issues.yaml,devin_update_docs.yaml, etc.)