Skip to content

Commit

Permalink
Filter out for issues vs other links while generating provider issue …
Browse files Browse the repository at this point in the history
…content (apache#39894)
  • Loading branch information
amoghrajesh authored and fdemiane committed Jun 6, 2024
1 parent f03ca0b commit 1528a1b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,13 @@ class ProviderPRInfo(NamedTuple):
int(issue_match.group(1)) for issue_match in ISSUE_MATCH_IN_BODY.finditer(body)
}
for linked_issue_number in linked_issue_numbers:
try:
_ = repo.get_issue(linked_issue_number)
except UnknownObjectException:
progress.console.print(
f"Failed to retrieve linked issue #{linked_issue_number}: is not a issue,"
f"likely a discussion is linked."
)
progress.console.print(
f"Retrieving Linked issue PR#{linked_issue_number}: "
f"https://github.com/apache/airflow/issues/{linked_issue_number}"
Expand Down

0 comments on commit 1528a1b

Please sign in to comment.