Repository navigation
fix(seer): Find repos by their URL path - #130314
Merged
Merged
Conversation
This was referenced Nov 6, 2026
joseph-sentry
force-pushed
the
joey--seer-repo-lookup-by-url-path
branch
from
November 9, 2026 18:13
529ba59 to
c9909ee
Compare
GitLab has 2 formats for repo slugs: - display format: `My Group / App` - url format: `my-group/app` we were previously requiring the agent to search by display format, but the url format is also valid, so we now have our search look through both formats by checking Repository URLs.
joseph-sentry
force-pushed
the
joey--seer-repo-lookup-by-url-path
branch
from
November 9, 2026 19:40
c9909ee to
e0e3e45
Compare
Contributor
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit e0e3e45. Configure here.
billyvg
approved these changes
Nov 12, 2026
| """Find a repository by its name or its URL path. They're the same except on GitLab, where the | ||
| name is a display name ("My Group / App") and the path is "my-group/app".""" | ||
| candidates = Repository.objects.filter( | ||
| Q(name=repo_full_name) | Q(url__iendswith=f"/{repo_full_name}"), |
Member
There was a problem hiding this comment.
is this gonna be a problem if an org has both github + gitlab with the same names?
Contributor
Author
There was a problem hiding this comment.
i'm gonna handle this in a follow-up
but yeah right now it uses the lowest ID repo in our DB
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.
GitLab has 2 formats for repo slugs:
My Group / Appmy-group/appwe were previously requiring the agent to search by display format, but
the url format is also valid, so we now have our search look through both
formats by checking Repository URLs.