Repository navigation
ci: post sticky comment on invalid PR title - #405
Merged
Merged
Conversation
Explain a failed title check in the pull request, like redstar071.dev. The comment goes away once the title is valid.
|
Note The title starts with
|
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the whole PR, which adds one new workflow file.
Semantic Pull Requestsworkflow: runs onpull_request_target(opened,edited,synchronize) with no checkout,permissions: {}at the top and onlycontents: read,pull-requests: writeandstatuses: writeon the job.- Title lint:
amannn/action-semantic-pull-requestv6.1.2 rejects a subject that starts with an uppercase letter. - Sticky comment:
marocchino/sticky-pull-request-commentv2.9.4 posts the error under the headerpr-title-lint-errorand deletes it once the title is valid. - Pins: both action SHAs match their
v6.1.2andv2.9.4tags. - Expressions:
error_messageonly goes throughwith:, never a shell, so there is no script injection.error_message != nulltreats an unset output as null, which is what the action's README relies on.
One optional note, not blocking. error_message repeats the raw PR title inside the triple-backtick fence. A title that contains a fence can close it early, so the rest of the title renders as markdown in a comment from the bot. The effect is cosmetic. Nobody needs to change this before merge.
claude-sonnet-5-5 | 𝕏
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.

🔗 Linked issue
None.
🧭 Context
A failed title check only shows a red status. Contributors do not see the reason unless they open the run. The same sticky comment already works in redstar071.dev.
📚 Description
Adds the
Semantic Pull Requestsworkflow. It checks the PR title against Conventional Commits and posts a sticky comment when the title is invalid. The comment is removed once the title is valid.

Confidence Score: 5/5
The PR appears safe to merge.Reviews (2) · Last reviewed commit: "ci: format semantic pull request workflo..." · Reviewed by Greptile