Skip to content

fix(issue): make dependency search local-first#38350

Open
mcepl wants to merge 1 commit into
go-gitea:mainfrom
openSUSE-Python:dependent_PR
Open

fix(issue): make dependency search local-first#38350
mcepl wants to merge 1 commit into
go-gitea:mainfrom
openSUSE-Python:dependent_PR

Conversation

@mcepl

@mcepl mcepl commented Jul 6, 2026

Copy link
Copy Markdown

Avoid broad instance-wide dependency suggestions on large installations by keeping normal dependency picker queries scoped to the current repository. Add exact reference resolution for same-instance issue and pull dependencies so users can still add cross-repository dependencies explicitly with refs like #123, !123, owner/repo#123, or owner/repo!123.

The resolver preserves existing permission checks, cross-repository dependency settings, type filtering, and self-dependency protection. It also lets the existing dependency add endpoint accept typed refs directly, so dependency submission does not require a dropdown suggestion to exist.

Add integration coverage for exact dependency lookup, permission denial, disabled cross-repo dependencies, and adding a cross-repo PR dependency by typed ref.

Assisted-by: OpenCode:github-copilot/gpt-5.5

Avoid broad instance-wide dependency suggestions on large installations
by keeping normal dependency picker queries scoped to the current
repository. Add exact reference resolution for same-instance issue and
pull dependencies so users can still add cross-repository dependencies
explicitly with refs like go-gitea#123, !123, owner/repo#123, or owner/repo!123.

The resolver preserves existing permission checks, cross-repository
dependency settings, type filtering, and self-dependency protection. It
also lets the existing dependency add endpoint accept typed refs
directly, so dependency submission does not require a dropdown
suggestion to exist.

Add integration coverage for exact dependency lookup, permission denial,
disabled cross-repo dependencies, and adding a cross-repo PR dependency
by typed ref.

Assisted-by: OpenCode:github-copilot/gpt-5.5
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants