This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 99d5157583 Filter out for issues vs other links while generating
provider issue content (#39894)
99d5157583 is described below
commit 99d5157583255b09aaeade8a4bb4a384ce430ef1
Author: Amogh Desai <[email protected]>
AuthorDate: Tue May 28 17:05:33 2024 +0530
Filter out for issues vs other links while generating provider issue
content (#39894)
---
.../src/airflow_breeze/commands/release_management_commands.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
index e49c33bfcb..8b3e32fccb 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -2091,6 +2091,13 @@ def generate_issue_content_providers(
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}"