Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #812 from Ximinhan/master
Browse files Browse the repository at this point in the history
fix jira value in pr
  • Loading branch information
locriandev committed Aug 3, 2023
2 parents 3a698e6 + 21a1561 commit c93b58e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doozerlib/cli/images_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,9 @@ def search_issues(query):
open_issues = search_issues(query)

if open_issues:
print(f'A JIRA issue is already open for {pr.html_url}: {open_issues[0]}')
print(f'A JIRA issue is already open for {pr.html_url}: {open_issues[0].key}')
existing_issues[distgit_key] = open_issues[0]
connect_issue_with_pr(pr, open_issues[0].id)
connect_issue_with_pr(pr, open_issues[0].key)
continue

description = f'''
Expand Down Expand Up @@ -744,8 +744,8 @@ def search_issues(query):
fields
)
new_issues[distgit_key] = issue
print(f'A JIRA issue has been opened for {pr.html_url}: {issue}')
connect_issue_with_pr(pr, issue.id)
print(f'A JIRA issue has been opened for {pr.html_url}: {issue.key}')
connect_issue_with_pr(pr, issue.key)
else:
new_issues[distgit_key] = 'NEW!'
print(f'Would have created JIRA issue for {distgit_key} / {pr.html_url}:\n{fields}\n')
Expand Down

0 comments on commit c93b58e

Please sign in to comment.