Skip to content

Commit

Permalink
23936 - For auth release for now (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Oct 21, 2024
1 parent 7cfdc3c commit d86e3a4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions releases/release_to_zenhub_auth.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# TODO - remove when SBC connect takes over auth releases again.
from dotenv import load_dotenv
from util import add_issues_to_release, create_release, get_issue_id, get_issues_from_repo, get_workspace_release_for_report

load_dotenv()

auth_release_issue_ids, release_names = get_issues_from_repo('sbc-auth', latest_release_only=True)
target_release_name = f'Auth Release - {release_names[0]}'
release_id = get_workspace_release_for_report(target_release_name)
if release_id is None:
release_id = create_release(target_release_name)
print(f'Zenhub release created id: {release_id} - {target_release_name}')
else:
print(f'Zenhub release found id: {release_id} - {target_release_name}')
for issue in auth_release_issue_ids:
issue_id = get_issue_id(issue)
add_issues_to_release(issue_id, release_id)
print(f'Adding issue {issue} - {issue_id} to Zenhub release {release_id}')

0 comments on commit d86e3a4

Please sign in to comment.