issues
search
thehanimo
/
pr-title-checker
An action to automatically check if pull request titles conform to Contribution Guidelines
MIT License
106
stars
36
forks
source link
Add message customization
#10
Closed
thehanimo
closed
2 years ago
thehanimo
commented
2 years ago
Original PR: #9
New
Adds the ability to optionally customize the success and failure messages.
Adds the ability to optionally add a notice upon failure (for printing out the guidelines).
Removes "title needs formatting" label if PR has an ignore label applied
Backwards compatible, defaults to current messages if the new config section isn't found
Fixes
removeLabel had an unreferenced variable usage in the error handling
adds a missing
await
when invoking
addLabel
no longer prints out success message when there's a failure
Refactored
pulled failure handling out of
addLabel
and into a new function called
titleCheckFailed
Original PR: #9
New
Fixes
await
when invokingaddLabel
Refactored
addLabel
and into a new function calledtitleCheckFailed