Repository navigation
Fix GitDagBundle source link for SSH repos with .git in the name - #76949
Merged
ephraimbuddy merged 2 commits intoNov 18, 2026
Merged
Conversation
The SSH-to-https conversion behind the bundle's view URL removed ".git" anywhere in the repository path, so the source link of a repository such as org/org.github.io pointed to org/orghub.io, which does not exist.
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
harshthakur3
force-pushed
the
fix-git-bundle-view-url-ssh
branch
from
November 11, 2026 20:06
34ab55d to
6fd5a3d
Compare
Contributor
Author
|
Hey @ephraimbuddy, could you please take a look at this PR and review the changes when you get a chance? Thanks! |
ephraimbuddy
approved these changes
Nov 18, 2026
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes: #76948
GitDagBundle.view_url_template()converts an SSHrepo_urlsuch asgit@github.com:org/repo.gitinto the https URL Airflow links to for a Dag's source: the Code tab, the Dag version details and the Dag bundles page in the UI, andbundle_urlin the REST API. The conversion removed.gitwithstr.replace, which drops it anywhere in the repository path instead of only as the suffix, so a repository whose name contains.gitgot a link to a repository that does not exist:repo_urlgit@github.com:apache/airflow.github.io.githttps://github.com/apache/airflowhub.io/tree/{version}https://github.com/apache/airflow.github.io/tree/{version}It now strips only a trailing
.git, the wayview_url_template()already treats HTTPS URLs. SSH URLs whose only.gitis the suffix get the same link as before, and HTTPS URLs do not go through this conversion. Cloning is unaffected because it usesrepo_urlas given; only the link was wrong, and it has been wrong since the first git provider release.The new
test_view_urlcase fails onmainwith theairflowhub.iolink and passes with this change.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines