-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23936 - For auth release for now (#1789)
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}') |