Skip to content

ci: optimize semantic pr title workflow (@d1rshan)#7888

Open
d1rshan wants to merge 1 commit intomonkeytypegame:masterfrom
d1rshan:ci/optimize-semantic-pr-workflow
Open

ci: optimize semantic pr title workflow (@d1rshan)#7888
d1rshan wants to merge 1 commit intomonkeytypegame:masterfrom
d1rshan:ci/optimize-semantic-pr-workflow

Conversation

@d1rshan
Copy link
Copy Markdown
Contributor

@d1rshan d1rshan commented May 1, 2026

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

  • switches the workflow runner from ubuntu-latest to ubuntu-slim, since this job only validates PR metadata and posts a comment
  • adds concurrency so older in-progress runs for the same PR are canceled when a newer one starts
  • skips edited events unless the PR title actually changed
  • avoids rewriting the sticky error comment when the content is unchanged

These changes keep the workflow behavior the same for contributors while making the workflow more efficient.

Copilot AI review requested due to automatic review settings May 1, 2026 14:34
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label May 1, 2026
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedvite@​8.0.5991008298100

View full report

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.edited runs when the PR title didn’t change.
  • Avoid rewriting the sticky error comment when its content is unchanged.

Comment thread .github/workflows/semantic-pr-title.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants