ci: optimize semantic pr title workflow (@d1rshan)#7888
Open
d1rshan wants to merge 1 commit intomonkeytypegame:masterfrom
Open
ci: optimize semantic pr title workflow (@d1rshan)#7888d1rshan wants to merge 1 commit intomonkeytypegame:masterfrom
d1rshan wants to merge 1 commit intomonkeytypegame:masterfrom
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.
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.
Description
This PR improves the semantic PR title workflow by reducing unnecessary runs and comment updates without changing the title validation rules themselves.
The workflow currently runs for all PR edits, even when only the description changes, and it may keep older in-progress runs alive when a newer event for the same PR has already started. It can also attempt to rewrite the sticky error comment even when the message has not changed.
Changes
ubuntu-latesttoubuntu-slim, since this job only validates PR metadata and posts a commenteditedevents unless the PR title actually changedThese changes keep the workflow behavior the same for contributors while making the workflow more efficient.