Skip to content

Conversation

@cedriclecoz
Copy link

@cedriclecoz cedriclecoz commented Dec 12, 2025

Add automatic URL enrichment to PutScopes function to fetch missing htmlUrl and cloneUrl fields from GitHub API when only fullName is provided. This ensures gitextractor has the required URLs for cloning repositories.

  • Fetch repo details from GitHub API when URLs are missing
  • Populate htmlUrl and cloneUrl from API response
  • Add graceful error handling for inaccessible repos

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

What does this PR do?

  • Fetch repo details from GitHub API when URLs are missing
  • Populate htmlUrl and cloneUrl from API response
  • Add graceful error handling for inaccessible repos

Does this close any open issues?

Closes #8640

Add automatic URL enrichment to PutScopes function to fetch missing
htmlUrl and cloneUrl fields from GitHub API when only fullName is provided.
This ensures gitextractor has the required URLs for cloning repositories.

- Fetch repo details from GitHub API when URLs are missing
- Populate htmlUrl and cloneUrl from API response
- Add graceful error handling for inaccessible repos
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug labels Dec 12, 2025
@cedriclecoz cedriclecoz changed the title fix: auto-enrich missing URL fields in GitHub scopes fix(github): auto-enrich missing URL fields in GitHub scopes Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][GitExtractor] GitExtractor fails with "Invalid Git URL" when using GitHub App authentication

1 participant