Skip to content

Commit

Permalink
feat: add one more guard condition in action sync milestone
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <[email protected]>
  • Loading branch information
Yu-Jack committed Aug 7, 2024
1 parent f508147 commit 181960a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github-bot/harvester_github_bot/action_sync_milestone.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class ActionSyncMilestone(Action):
def __init__(self):
pass
def isMatched(self, actionRequest):
if actionRequest.event_type not in ['issue']:
return False
if actionRequest.action not in ['opened', 'milestoned', 'demilestoned']:
return False
return True
Expand Down

0 comments on commit 181960a

Please sign in to comment.