From 6de2d6a0477c3cd2a674a99476d812f63ceddbf5 Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Sat, 21 Dec 2024 07:58:40 -0800 Subject: [PATCH] Update constants.py --- githooks/constants.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/githooks/constants.py b/githooks/constants.py index 388de3d..8612272 100644 --- a/githooks/constants.py +++ b/githooks/constants.py @@ -33,13 +33,13 @@ class TrunkBranch: # Label to tag mapping LABEL_TO_TAG = { - CommitLabel.BUG_CLOSE: set([CommitTag.BUGFIX]), - CommitLabel.BUG_PARTIAL: set([CommitTag.BUGFIX]), - CommitLabel.BUG_RELATED: set([CommitTag.BUGFIX, CommitTag.FEATURE]), - CommitLabel.IMPACT_DOC: set([CommitTag.SECURITY, CommitTag.TASK]), - CommitLabel.IMPACT_SECURITY: set([CommitTag.SECURITY]), + CommitLabel.BUG_CLOSE: {CommitTag.BUGFIX}, + CommitLabel.BUG_PARTIAL: {CommitTag.BUGFIX}, + CommitLabel.BUG_RELATED: {CommitTag.BUGFIX, CommitTag.FEATURE}, + CommitLabel.IMPACT_DOC: {CommitTag.SECURITY, CommitTag.TASK}, + CommitLabel.IMPACT_SECURITY: {CommitTag.SECURITY}, CommitLabel.IMPACT_UPGRADE: set(), - CommitLabel.IMPLEMENTS: set([CommitTag.FEATURE, CommitTag.TASK]), + CommitLabel.IMPLEMENTS: {CommitTag.FEATURE, CommitTag.TASK}, } # Tags that apply to all labels