Repository navigation
ci: run the pull request title check without cancelling it, and skip it for an edit of the description - #2067
Conversation
…it for an edit of the description The check ran for every edit of a pull request, and since redhat-developer#1973 a newer run cancelled the one in progress: a push followed by an edit of the description left a cancelled run on the commit, which GitHub counts as a failed check. The check now has no concurrency group, so no run is cancelled, and it is skipped for an edit that doesn't change the title. Fixes redhat-developer#2066
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2067 +/- ##
=========================================
Coverage 49.91% 49.91%
=========================================
Files 813 813
Lines 33396 33396
Branches 6872 5207 -1665
=========================================
Hits 16668 16668
Misses 14138 14138
Partials 2590 2590 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
Action not completed
|
|
@coderabbitai review |
Action not completed
|
|
@coderabbitai review |
Action performed
|
Fixes #2066.
The Conventional Commits PR Check ran for every edit of a pull request, its description included, and since #1973 a newer run cancelled the one in progress. A push followed within seconds by an edit of the description left a cancelled run of
mainon the commit, which GitHub counts as a failed check: the pull request showed a red cross and the merge stateUNSTABLE, while the other run of the same check passed (#2049, #2053, #2052).cancel-in-progress: falsewould not be enough: a run that waits in the group is still cancelled when a newer one joins it. The check takes a few seconds.github.event.changes.title). A skipped run doesn't count as a failure.Pushes and title edits run the check as before. The other workflows keep the cancellation of #1973, where it saves runners.
Test:
actionlintpasses. This pull request runs the changed workflow: the check ran and passed when it was opened, and this edit of its description, which changes no title, skips it.