[Chore] Allow Style tags

This commit is contained in:
Adrián Enríquez 2022-12-22 16:50:39 +01:00
parent 0886062500
commit 978afec64a
No known key found for this signature in database
GPG Key ID: 1D2A049F5866F977
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ end
# Example: `[Chore][#123] My commit` # Example: `[Chore][#123] My commit`
def issue_tags_pattern def issue_tags_pattern
/^(\[(#\d+|Chore)\])+ (?=\w)/ /^(\[(#\d+|Chore|Style)\])+ (?=\w)/
end end
# Whether a string starts with an appropriate ticket tag. # Whether a string starts with an appropriate ticket tag.

View File

@ -24,7 +24,7 @@ mr_title_payload = githost.mr_title_payload
unless has_valid_issue_tags(mr_title_payload) unless has_valid_issue_tags(mr_title_payload)
warn( warn(
"Inappropriate title for PR.\n"\ "Inappropriate title for PR.\n"\
"Should start from issue ID (e.g. `[#123]`) or `[Chore]` tag.\n"\ "Should start from issue ID (e.g. `[#123]`), `[Chore]` or `[Style]` tag.\n"\
"Note: please use `[Chore]` also for tickets tracked internally on YouTrack." "Note: please use `[Chore]` also for tickets tracked internally on YouTrack."
) )
end end