diff --git a/danger/helpers.rb b/danger/helpers.rb index 5edc6e3..da59dac 100644 --- a/danger/helpers.rb +++ b/danger/helpers.rb @@ -96,7 +96,7 @@ end # Example: `[Chore][#123] My commit` def issue_tags_pattern - /^(\[(#\d+|Chore)\])+ (?=\w)/ + /^(\[(#\d+|Chore|Style)\])+ (?=\w)/ end # Whether a string starts with an appropriate ticket tag. diff --git a/danger/instant-checks.rb b/danger/instant-checks.rb index 1b9af2a..67e78d2 100644 --- a/danger/instant-checks.rb +++ b/danger/instant-checks.rb @@ -24,7 +24,7 @@ mr_title_payload = githost.mr_title_payload unless has_valid_issue_tags(mr_title_payload) warn( "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." ) end