Skip to content

ci: trigger PR title check upon edit#5749

Merged
jouho merged 6 commits intoaws:mainfrom
jouho:pr-title-check
Feb 19, 2026
Merged

ci: trigger PR title check upon edit#5749
jouho merged 6 commits intoaws:mainfrom
jouho:pr-title-check

Conversation

@jouho
Copy link
Copy Markdown
Contributor

@jouho jouho commented Feb 18, 2026

Goal

Make the PR title check trigger upon editing PR title

Why

The PR title check doesn't re-run when the title is edited, since edited isn't a default pull_request activity type. Re-running the workflow doesn't help either as it replays the original event payload with the old title.

How

Split the validate-pr-title job out of ci_linting.yml into a new dedicated workflow (ci_pr_title.yml). The new workflow triggers on pull_request with activity types [opened, synchronize, reopened, edited]. The edited type ensures the check re-runs whenever the PR title (or body/base branch) is modified, so the validation always references the latest title.

This is split into a separate workflow to avoid re-triggering all the other linting jobs (cppcheck, clang-format, etc.) on title edits.

Callouts

Testing

Confirmed by changing the title of this PR

Related

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Feb 18, 2026
@jouho jouho changed the title bug: trigger PR title check upon edit ci: trigger PR title check upon edit Feb 18, 2026
@jouho jouho changed the title ci: trigger PR title check upon edit bug: trigger PR title check upon edit Feb 18, 2026
@jouho jouho changed the title bug: trigger PR title check upon edit ci: trigger PR title check upon edit Feb 18, 2026
@jouho jouho requested review from dougch and maddeleine February 18, 2026 20:44
@jouho jouho marked this pull request as ready for review February 18, 2026 21:15
Copy link
Copy Markdown
Contributor

@dougch dougch left a comment

Choose a reason for hiding this comment

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

Reasonable- thanks for splitting this out.

Copy link
Copy Markdown
Contributor

@maddeleine maddeleine left a comment

Choose a reason for hiding this comment

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

If you're adding a new workflow, I believe that you have to add it to required checks for it to actually block a PR? Maybe @dougch knows?

@jouho jouho enabled auto-merge February 19, 2026 18:14
@jouho jouho added this pull request to the merge queue Feb 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 19, 2026
@jouho jouho added this pull request to the merge queue Feb 19, 2026
@jouho jouho removed this pull request from the merge queue due to a manual request Feb 19, 2026
@jouho
Copy link
Copy Markdown
Contributor Author

jouho commented Feb 19, 2026

This change gets stuck at merge queue because it expects reports back from the workflow, but currently isn't being triggered upon merge_group trigger. I made a change so it triggers upon merge_group trigger and skips the validation. We skip the validation in merge queue because merge_group payload does not include PR title information and will likely fail the check.

merge_group event payload: https://docs.github.com/en/webhooks/webhook-events-and-payloads#merge_group

There isn't a good way to test this change other than queuing this change to see its effect

@jouho jouho requested review from dougch and maddeleine February 19, 2026 21:18
@jouho jouho added this pull request to the merge queue Feb 19, 2026
Merged via the queue into aws:main with commit f9f9282 Feb 19, 2026
54 checks passed
@jouho jouho deleted the pr-title-check branch February 19, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants