Skip to content

Commit

Permalink
feat: prevent backport issue from creating gui issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <[email protected]>
  • Loading branch information
Yu-Jack committed May 29, 2024
1 parent 4c9eb65 commit 1bba19e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def __init__(self):
def isMatched(self, request):
matched = False

if "backport" in request['issue']['title']:
return False
# We can't expect the labels order from Github Webhook request.
# It might be ["require-ui/small", "area/ui"] or ["area/ui", "require-ui/small"]
# So we need to consider those two cases.
Expand All @@ -21,6 +23,8 @@ def isMatched(self, request):
return False
if CREATE_GUI_ISSUE_LABEL in label['name']:
matched = True



return matched

Expand Down

0 comments on commit 1bba19e

Please sign in to comment.