diff --git a/edx_repo_tools/find_dependencies/find_dependencies.py b/edx_repo_tools/find_dependencies/find_dependencies.py index 04dd64f2..3148ae4a 100644 --- a/edx_repo_tools/find_dependencies/find_dependencies.py +++ b/edx_repo_tools/find_dependencies/find_dependencies.py @@ -245,6 +245,8 @@ def repo_url_from_tgz(tgz_path: str) -> Optional[str]: r"(?i)^Project-URL: Source.*,\s*(.*)$", r"(?i)^Home-page: (.*)$", r"(?i)^Project-URL: Home.*,\s*(.*)$", + # If they point to GitHub issues, that's their repo. + r"(?i)^Project-URL: [^,]+,\s*(https?://github.com/[^/]+/[^/]+)/issues/?$", # If we can't find a URL marked as home, then use any GitHub repo URL. r"(?i)^Project-URL: [^,]+,\s*(https?://github.com/[^/]+/[^/]+)$", ]