ci(github): optimize workflow triggers for draft PRs#215
Conversation
…ehavior - Added `ready_for_review` to pull request event types in multiple workflows. - Enabled `cancel-in-progress` for the concurrency group in `docs.yaml`. - Added condition to exclude draft pull requests from the build job in `docs.yaml`.
- Updated code cleanup settings to optimize imports and rearrange in multiple languages. - Added several formatting rules for C# and XML, including brace and expression body styles. - Enabled additional settings for keeping consistent code style and formatting arrangement.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #215 +/- ##
=======================================
Coverage 90.92% 90.92%
=======================================
Files 102 102
Lines 2227 2227
Branches 252 252
=======================================
Hits 2025 2025
Misses 109 109
Partials 93 93 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
- Refined conditional logic to handle non-pull-request events correctly. - Ensured draft PR exclusion remains intact for the build job.
|



🚀 Pull Request
📋 Summary
This PR optimizes GitHub Actions workflows to avoid unnecessary CI runs on draft pull requests. The changes update workflow triggers to only execute when PRs are ready for review and improve concurrency handling.
Key changes:
ready_for_reviewtype✅ Checklist
🧪 Related Issues or PRs
N/A - Internal workflow optimization
💬 Notes for Reviewers
This PR improves CI efficiency by:
The JetBrains settings changes are primarily whitespace/formatting adjustments to the code cleanup profile.