Cancel CI runs when PR is merged (#2383)
- Add ready_for_review and closed event types to pull_request trigger
- Update concurrency group to use PR number for proper cancellation
- Add condition to skip draft PRs and closed events
- When a PR is merged, the closed event triggers cancellation of
in-progress runs
https://claude.ai/code/session_0131m7Y5ac6ztV6iPCiW6zMU
#skip-bb
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2383">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Update CI to cancel in-progress runs when a PR is merged and use per-PR
concurrency for accurate cancellation. Draft PRs now run; only closed
events are skipped.
- **Refactors**
- Listen to closed in the pull_request trigger.
- Use PR number in the concurrency group for proper cancellation.
- Add a job condition to skip closed events only.
<sup>Written for commit fe1d8903f8730bbf6ed93dbdfc8a9f0b804b9912.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by:
Claude <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论