Repository navigation
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.
Github PR support #1555
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
base: trunk
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Github PR support #1555
Changes from 1 commit
80867f615b063ec4ac2a6ef00943849c1506c16f8805b9a9085365518a6129f973d7c0692b720a3f2aaddfb8f1aecfe5a8f79aa89b44eaf18641b300126ede5bdbdfa3b574e761beed3b13549806d216bc929552File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…gration git-bug webui gains --repo PATH (repeatable) and --root DIR (scan for <org>/<repo> siblings). Each extra repo is registered in the existing MultiRepoCache with name "<org>/<repo>". The cwd repo still serves as the default, and is de-duplicated from the scan so lockfile contention is avoided. Request routing: a new X-Repo-Name HTTP header is parsed by a mux middleware into the request context; the Repository resolver falls back to that when no ref is supplied, letting every existing GraphQL query (which writes `repository { ... }`) scope automatically. This avoids touching ~12 .graphql files and their generated siblings. WebUI: * Apollo setContext sets X-Repo-Name from a mutable module-level var that RepoContextBinder updates from the URL (/r/:repoName/*). * New /r/:repoName/* route mounts the usual list/detail/new pages with the header bound. Slashes in repo names are URL-encoded. * Single-repo routes stay intact. Root "/" adapts: multi-repo mode shows a ReposLanding page listing registered repos with counts; single-repo mode shows the bug list as before. * Header grows a "Repositories" link and a RepoPicker dropdown (hidden in single-repo mode). * Multi-repo forces --read-only in v1 — auth middleware uses a single identity and authoring across N repos needs per-repo identity selection, deferred. Bleve resilience: openBleveIndex now detects stale-but-incompatible indexes (bleve.Open fails and index_meta.json is present) and wipes the path before bleve.New. This covers the migration case where the existing on-disk store is from an older bleve version (e.g. moltdb or upsidedown) and the new version treats the "store" path as a directory only. The rebuild is automatic on first access; git refs (source of truth) are untouched. Verified against 149 midnightntwrk+shieldedtech repos: all register cleanly after the new tolerant open path; X-Repo-Name routing returns the expected bugs for a probed repo (example-bboard → 417 PRs). Signed-off-by: Giles Cope <gilescope@gmail.com>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.