From 978afec64aea773c8d6e5f98e4b552f4e63420de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Enr=C3=ADquez?= Date: Thu, 22 Dec 2022 16:50:39 +0100 Subject: [PATCH] [Chore] Allow Style tags --- danger/helpers.rb | 2 +- danger/instant-checks.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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