Skip to content

Conversation

@begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented Jun 5, 2025

In the recent Rill-managed Git refactors, we started storing Git remotes with the .git suffix instead of without it. This change did not account for all the different cases where we process Github URLs and Git remotes.

This has lead to issues where Git pushes become ineffective because the Github webhooks don't correctly match to the repository's associated project(s).

This PR attempts to completely standardize on generic Git remotes with the .git suffix instead of Github web URLs. To ensure completeness, I have audited and changed almost every occurrence of the term GithubURL to GitRemote (and related spellings like githubURL and github_url). I hope we now consistently process Git remotes with the .git suffix everywhere.

For backward compatibility with old CLIs, this PR also maps any incoming GitRemote argument to apply a .git suffix if not already present.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@begelundmuller begelundmuller self-assigned this Jun 5, 2025
@begelundmuller begelundmuller merged commit a0b2de5 into main Jun 6, 2025
10 of 12 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/fix-github-url-remote branch June 6, 2025 11:42
begelundmuller added a commit that referenced this pull request Jun 6, 2025
* Fix inconsistent `.git` suffix in Git remotes

* Minor UI fixes

* Ensure normalized remotes have .git

* Repeat migration 0070

* Fix the fix

* Comment

* Self review

---------

Co-authored-by: Aditya Hegde <adityahegderocks@gmail.com>
grahamplata pushed a commit that referenced this pull request Jun 13, 2025
* Fix inconsistent `.git` suffix in Git remotes

* Minor UI fixes

* Ensure normalized remotes have .git

* Repeat migration 0070

* Fix the fix

* Comment

* Self review

---------

Co-authored-by: Aditya Hegde <adityahegderocks@gmail.com>
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.

3 participants