Repository navigation
Allow cross-repository Java team-memory jobs on the bridge - #71
Merged
Changyong Gong (chagong) merged 1 commit intoNov 26, 2026
Merged
Conversation
Allow enrolled non-pilot team-memory coordinators (such as microsoft/vscode-java-pack on protected main) to submit manual PR and reconciled push-range jobs for enrolled public cross-repository sources on their verified protected default branch (including main and develop) under the coordinator's shared wiki reservation, while keeping microsoft/IssueLens strictly same-repository and main-only. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Expanding cross-repository wiki-write authorization requires human confirmation of enrollment and coordinated rollout, with live validation of OIDC admission, public branch-protection reads, and shared durable reservations beyond mocked tests.
No open issues 🎉
What changed in this PR
Extends IssueLens’s automation bridge so enrolled public Java tooling repositories can submit team-memory jobs through Java Pack’s shared wiki coordinator, while preserving IssueLens pilot isolation.
Changes:
- Adds cross-repository source validation for enrollment, public visibility, default branch, and branch protection.
- Keeps jobs and shared wiki reservations bound to the authenticated coordinator, including worker validation.
- Expands admission and rejection test coverage, the example allowlist, and rollout documentation.
| File | Description |
|---|---|
tests/test_automation_bridge.py |
Adds coverage for cross-repository admission, isolation, branch checks, shared locking, and worker validation. |
docs/guide.md |
Documents enrollment rules, shared reservations, and rollout steps. |
automation_bridge/repository_allowlist.example.json |
Expands the example to include all nine repository IDs. |
automation_bridge/function_app.py |
Passes request metadata into ingress branch-protection validation. |
automation_bridge/bridge.py |
Validates cross-repository sources while preserving coordinator ownership and pilot isolation. |
.github/copilot-instructions.md |
Documents cross-repository boundaries and shared wiki coordination. |
Review effort: Balanced
Changyong Gong (chagong)
deleted the
chagong-allow-cross-repo-java-team-memory
branch
November 26, 2026 05:27
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.
Summary
Enable cross-repository
team-memoryreconciliation inautomation_bridge/so the enrolled Java tooling repositories (microsoft/vscode-java-debug,microsoft/java-debug,microsoft/vscode-java-test,microsoft/vscode-gradle,microsoft/build-server-for-gradle,microsoft/vscode-java-dependency, andmicrosoft/vscode-maven) can dispatch intomicrosoft/vscode-java-pack's shared wiki coordinator on protectedmain.Changes
microsoft/IssueLens(PILOT_REPOSITORY/pilot_repository_id) remains strictly same-repository andmain-only, and external coordinators can never claimmicrosoft/IssueLensorpilot_repository_idas ateam-memorysource.automation_bridge/bridge.py,automation_bridge/function_app.py):.github/workflows/team-memory-coordinator.ymlon protectedmain, requirecoordinator_repositoryandrequired_wiki_repositoryto match the authenticated coordinator repository and keep the durable lock targetrepo-<coordinator_id>-wiki(for examplerepo-104967329-wiki) so same-repository and cross-repository wiki updates serialize under one reservation.metadata["repository"]/metadata["repository_id"]to identify either the coordinator itself or another non-pilot repository inISSUELENS_BRIDGE_REPOSITORY_ALLOWLISTwith a validatedbase_ref(such asmainordevelop), validating source merge identities andworkflow_ref(action.DISPATCH_WORKFLOW, source_repository, base_ref)against the source repository./repos/{source_repository}and/repos/{source_repository}/branches/{quote(base_ref)}), requiringid == source_repository_id, matchingfull_name,private == False,visibility == "public",default_branch == base_ref, andprotected == True(401 workflow_not_authorizedwhen unauthorized/non-public/unprotected;503 branch_protection_unavailablewhen GitHub checks are unavailable).FoundryWorker.prepare()soteam-memoryjobs verify the durable jobrepositoryagainstcoordinator_repositoryandrequired_wiki_repositorywhile keepingissue-loopbound tometadata["repository"].automation_bridge/repository_allowlist.example.jsonwith all 9 numeric repository IDs (1303440932,104967329,102584737,102583752,110522074,216314492,626812412,129053101,116921700).tests/test_automation_bridge.pycovering cross-repository Javateam-memorymanual PR and push admission acrossmainanddevelop, sharedrepo-104967329-wikilocking, pilot isolation, unallowlisted/private/unprotected/branch-mismatched rejections,503transport handling, URL-encoded branch checks, andFoundryWorker.prepare()validation.docs/guide.mdand.github/copilot-instructions.md.Rollout
No Azure or Foundry deployment was performed. After review and merge, update
ISSUELENS_BRIDGE_REPOSITORY_ALLOWLISTon ingress to include the enrolled Java repository IDs and deploy the bridge ZIP built from the merged revision (worker first, then ingress) before enabling the downstream caller workflows.Validation
py -m compileall -q main.py media_inputs.py telemetry.py telemetry_export.py tests automation_bridge .github/actions github_app_mcp/src github_app_mcp/testspy -m unittest discover -s tests -p "test_automation_bridge.py"(39 tests OK)py -m unittest discover -s tests -p "test_team_memory*.py"(106 tests OK)py -m unittest discover -s github_app_mcp/tests -p "test_*.py"(all OK)git diff --checkAgent assessment
Self-reported assessment, not an independent review.
Assessed revision:
4dc626cf5607541166ea585386cb53accb545423github_app_mcpsuite pass, coveringmainanddevelopcross-repo Javateam-memoryadmission, sharedrepo-104967329-wikilocking, ingress default-branch protection checks, pilot isolation, and worker job validation.↓ GitHub Actions CI on the pull request and live Azure Function deployment/traffic remain pending operator rollout.