Skip to content

ci: support stacked PRs in docs update cron job#3779

Merged
ComputelessComputer merged 1 commit intomainfrom
devin/1770627265-docs-cron-stacked-prs
Feb 9, 2026
Merged

ci: support stacked PRs in docs update cron job#3779
ComputelessComputer merged 1 commit intomainfrom
devin/1770627265-docs-cron-stacked-prs

Conversation

@devin-ai-integration
Copy link
Contributor

ci: support stacked PRs in docs update cron job

Summary

Updates the devin_update_docs cron workflow so that when an open docs update PR already exists from a previous run, the next Devin session is instructed to stack its PR on top of the existing one (branching from it and targeting it as base) instead of creating a separate PR against main.

A new "Find existing docs update PR" step uses gh pr list to search for open PRs authored by app/devin-ai-integration whose title matches docs.*update|update.*docs and branch starts with devin/. If found, the branch name and PR number are passed into the Devin prompt via Jinja2 template variables.

Also closed two outdated docs update PRs (#3674, #3615) that were stale from previous cron runs.

Review & Testing Checklist for Human

  • Verify the jq filter logic: sort_by(.number) | last // empty — confirm this correctly picks the most recent PR and that // empty produces an empty string (not "null") when no match
  • Verify the bash condition if [ -n "$DOCS_PR" ] && [ "$DOCS_PR" != "null" ] handles both the empty-string and JSON-null cases correctly
  • Check the title regex docs.*update|update.*docs — consider whether it's too broad (could match unrelated PRs) or too narrow (could miss legitimate docs cron PRs). May want to filter by tag docs_update instead if the Devin API tags PRs
  • Confirm that Devin reliably follows the stacked PR instructions (checkout existing branch → create new branch from it → set base branch). This is prompt-based and not mechanically enforced
  • Consider triggering a manual workflow_dispatch run to test end-to-end with and without an existing open PR

Notes

Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
@netlify
Copy link

netlify bot commented Feb 9, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 239ed82
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6989a1465649f8000860efe7

@netlify
Copy link

netlify bot commented Feb 9, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 239ed82
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6989a14697cc820008a4376d

@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 that start with 'DevinAI' or '@devin'.
  • 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

@ComputelessComputer ComputelessComputer merged commit d475ed9 into main Feb 9, 2026
13 of 14 checks passed
@ComputelessComputer ComputelessComputer deleted the devin/1770627265-docs-cron-stacked-prs branch February 9, 2026 09:02
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