Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add branch URL generation for code references #1490

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Conversation

Ubisoft-potato
Copy link
Collaborator

@Ubisoft-potato Ubisoft-potato commented Jan 30, 2025

Description

Added support for generating branch URLs in code references to enable direct navigation to repository branches in GitHub, GitLab, and Bitbucket web interfaces.

Changes

  • Added new generateBranchURL function to generate repository-specific branch URLs
  • Updated GetCodeReference method to include branch URL in response
  • Updated ListCodeReferences method to include branch URL for each code reference
  • Branch URL formats supported:
    • GitHub: https://github.com/{owner}/{repo}/tree/{branch}
    • GitLab: https://gitlab.com/{owner}/{repo}/-/tree/{branch}
    • Bitbucket: https://bitbucket.org/{owner}/{repo}/src/{branch}

@Ubisoft-potato Ubisoft-potato marked this pull request as ready for review January 30, 2025 07:24
Copy link
Member

@cre8ivejp cre8ivejp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cre8ivejp cre8ivejp merged commit 0206276 into main Jan 30, 2025
18 checks passed
@cre8ivejp cre8ivejp deleted the chore-code-ref branch January 30, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants