mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-15 04:15:18 +00:00
Update pr_agent/tools/ticket_pr_compliance_check.py
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
This commit is contained in:
parent
3a52122677
commit
d45a892fd2
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ def extract_ticket_links_from_pr_description(pr_description, repo_path):
|
||||||
github_tickets.add(f'https://github.com/{owner}/{repo}/issues/{issue_number}')
|
github_tickets.add(f'https://github.com/{owner}/{repo}/issues/{issue_number}')
|
||||||
else: # #123 format
|
else: # #123 format
|
||||||
issue_number = match[5][1:] # remove #
|
issue_number = match[5][1:] # remove #
|
||||||
if issue_number.isdigit() and len(issue_number) < 5:
|
if issue_number.isdigit() and len(issue_number) < 5 and repo_path:
|
||||||
github_tickets.add(f'https://github.com/{repo_path}/issues/{issue_number}')
|
github_tickets.add(f'https://github.com/{repo_path}/issues/{issue_number}')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
get_logger().error(f"Error extracting tickets error= {e}",
|
get_logger().error(f"Error extracting tickets error= {e}",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue