Skip to content

Commit

Permalink
Update main.py (Azure#25858)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigCat20196 authored Aug 25, 2022
1 parent 9d7a1fa commit f9d2bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/auto_release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def create_pr_proc(self):
self.pr_number = res_create.number

def zero_version_policy(self):
if self.next_version == '0.0.0':
if re.match(re.compile('0\.0\.0'), self.next_version):
api_request = GhApi(owner='Azure', repo='sdk-release-request', token=self.bot_token)
issue_number = int(self.issue_link.split('/')[-1])
api_request.issues.add_labels(issue_number=issue_number, labels=['base-branch-attention'])
Expand Down

0 comments on commit f9d2bc0

Please sign in to comment.