Skip to content

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

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

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

Conversation

@d1rshan
Copy link
Copy Markdown
Contributor

@d1rshan d1rshan commented May 1, 2026

Optimizes the semantic PR title check workflow

  • Add concurrency group: Cancels any in-progress run when a newer one is triggered on the same PR, avoiding redundant runs when a title is edited multiple times in quick succession.

  • Switch to ubuntu-slim runner: This workflow only does lightweight title linting, so a full ubuntu-latest VM is overkill. ubuntu-slim is a GitHub-hosted single-CPU container runner optimized for short automation tasks like this, and is faster to spin up.

  • Skip job on non-title edits: Added a condition to skip the job when a PR is edited but the title wasn't changed (e.g. body edits, label changes). Now the workflow would re-run on any edit event unnecessarily.

  • Add skip_unchanged: true to comment step: Avoids a redundant API call to update the sticky error comment if its content hasn't changed since the last run.

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
@d1rshan d1rshan marked this pull request as draft May 6, 2026 14:00
@github-actions github-actions Bot removed the waiting for review Pull requests that require a review before continuing label May 6, 2026
@d1rshan d1rshan marked this pull request as ready for review May 13, 2026 06:33
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label May 13, 2026
@d1rshan d1rshan changed the title ci: optimize semantic pr title workflow (@d1rshan) ci: optimize semantic PR title check workflow (@d1rshan) May 13, 2026
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