ci: optimize semantic PR title check workflow (@d1rshan)#7888
Open
d1rshan wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Optimizes the “Semantic PR Title” GitHub Actions workflow to reduce redundant executions and unnecessary sticky-comment updates, while keeping the title validation rules unchanged.
Changes:
- Add concurrency to cancel older in-progress runs for the same PR.
- Skip
pull_request_target.editedruns when the PR title didn’t change. - Avoid rewriting the sticky error comment when its content is unchanged.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optimizes the pr title check workflow by doing these 3 things:
skip job on non-title edits: (now the check runs for any event ie such as pr body edit)
add concurrency group: (cancels any in-progress run when a newer one is triggered on the same pr)
add
skip_unchanged: trueto comment step: (avoids a redundant api call to update the sticky error comment if its content hasn't changed since the last run)