Repository navigation
meta: automatically mark unfinished PRs as draft - #18197
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe GitHub Actions workflow (.github/workflows/stale.yml) adds Changes
Sequence Diagram(s)sequenceDiagram
participant Workflow as "GitHub Workflow"
participant DraftAction as "Draft Unfinished PRs Action"
participant ChecksAPI as "GitHub Checks API"
participant StaleAction as "actions/stale"
Workflow->>DraftAction: run "Draft unfinished PRs" step
DraftAction->>ChecksAPI: read checks for open PRs (requires checks: read)
ChecksAPI-->>DraftAction: return check statuses
DraftAction->>Workflow: mark PRs as draft/unfinished (via GH API)
Workflow->>StaleAction: run "Mark stale ..." steps (existing stale logic)
StaleAction->>Workflow: label/close stale issues & PRs
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)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…/sequelize into ephys/draft-unfinished-prs.yml
* main: (200 commits) meta: update actions/upload-artifact action to v7.0.1 (sequelize#18212) meta: update sequelize AUTHORS (sequelize#18208) feat(cli): add migration generate, run, status & undo (sequelize#18193) feat(core): Drop the ability to specify the dialect as a string (sequelize#18204) feat: update some dialect adapters (sequelize#18189) feat(postgres): replace pg-hstore with inline hstore parser (sequelize#18151) feat(core): add `sql.random`, improve `Order` typing (sequelize#18203) meta: use Sequelize Bot for drafting PRs (sequelize#18201) meta: automatically mark unfinished PRs as draft (sequelize#18197) meta: update dependency @oclif/test to v4.1.18 (sequelize#18198) fix(core): replace @typeparam with @template in JSDoc (sequelize#18094) feat(core): Add support for UUID v7 (sequelize#17832) meta: update sequelize AUTHORS (sequelize#18190) meta: update dependency @oclif/plugin-help to ^6.2.43 (sequelize#18195) meta: update dependency esbuild to v0.28.0 (sequelize#18192) meta: update dependency @oclif/plugin-help to ^6.2.42 (sequelize#18191) meta: update dependency @oclif/core to ^4.10.5 (sequelize#18187) meta: update sequelize AUTHORS (sequelize#18158) feat: add Node 24 support, drop Node 18 (sequelize#18185) feat(core): add support for readonly attribute arrays (sequelize#18186) ...
Pull Request Checklist
Description of Changes
This PR adds a new action to the stale workflow that automatically marks as draft all PRs that are not finished: https://github.com/sequelize/draft-unfinished-prs/
Here is a demo run on this repo: https://github.com/sequelize/sequelize/actions/runs/24003949292/job/70004450175
The broader goal is to close dead pull requests following these steps & warnings:
only-draft-proption to only process draft pull requests actions/stale#1314 (waiting for that PR to be merged), along with a warningList of Breaking Changes
Summary by CodeRabbit