ci(pr-title): reduce API calls and check out current revision - #9823
ci(pr-title): reduce API calls and check out current revision#9823BridgeAR wants to merge 2 commits into
Conversation
The pull request base SHA can predate the workflow revision, so helpers introduced with a workflow change are missing at runtime.
Pushes cannot change title-derived labels, and non-public title types cannot fail internal-only validation. Skip those lookups while retaining changed-file validation for public title types.
Overall package sizeSelf size: 8.2 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 441.72 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4e6549a1d5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| (github.event.action == 'opened' || | ||
| github.event.action == 'reopened' || | ||
| (github.event.action == 'edited' && github.event.changes.title != null)) |
There was a problem hiding this comment.
Reconcile labels on synchronize replacements
When an opened or title-edited run is still executing and a commit is pushed, the per-PR cancel-in-progress setting cancels that run and replaces it with a synchronize run. This condition skips label synchronization for the replacement, so a new PR can remain without its required semver label, or an edited title can retain stale labels, until another qualifying event occurs. Include synchronize as a reconciliation fallback or otherwise ensure canceled runs cannot lose the label update.
AGENTS.md reference: AGENTS.md:L366-L370
Useful? React with 👍 / 👎.
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 4e6549a | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-08-14 21:49:35 Comparing candidate commit 4e6549a in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2284 metrics, 8 unstable metrics.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9823 +/- ##
=======================================
Coverage 98.53% 98.53%
=======================================
Files 975 975
Lines 144148 144148
Branches 12430 12477 +47
=======================================
Hits 142031 142031
Misses 2117 2117 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Push events cannot change title-derived labels, so they now retain changed-file validation without enumerating repository labels. Non-public title types skip changed-file pagination because they cannot fail internal-only validation.
Pull request base SHAs can predate the workflow revision. Checking out
github.shakeeps the workflow and its changelog helpers on the same revision instead of failing when a helper was added later.