CondeNast / conventional-pull-request-action

Lint pull requests with the conventional commit spec, for a clean and conventional commit history
Apache License 2.0
14 stars 9 forks source link

feat: echo the found PR title #16

Closed crccheck closed 2 years ago

crccheck commented 2 years ago

While running this action, I'd like feedback to confirm that the PR title the action is running matches what I expect. This is especially important when I edit a title and re-run the action; I want to sanity check the action and I want to be able to know what the PR title was in the action history.

Verifying the change

I wrote a bad PR title and CI reported:

Run ./
Found PR title: lolbad title 
Error: PR title: subject may not be empty
Error: PR title: type may not be empty
Error: PULL REQUEST: PR title does not conform to the conventional commit spec

Behold: the second line shows the the PR title. And as a bonus, makes it easy to act on the error.

Review Checklist

PR titles must follow the type: description format. See Conventional Commits for a summary and examples.

Please complete these steps before requesting code review: