From dface8ac26a279d7b016349591876d4ec4a33ce5 Mon Sep 17 00:00:00 2001 From: Changyong Gong Date: Wed, 25 Nov 2026 13:12:40 +0800 Subject: [PATCH] Route Java Pack workflows through IssueLens bridge Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/issueLens-run.yml | 23 +++++++--------- .github/workflows/team-memory-coordinator.yml | 26 +++++++------------ .github/workflows/team-memory-post-merge.yml | 3 ++- 3 files changed, 21 insertions(+), 31 deletions(-) diff --git a/.github/workflows/issueLens-run.yml b/.github/workflows/issueLens-run.yml index 00021397..c955a6fa 100644 --- a/.github/workflows/issueLens-run.yml +++ b/.github/workflows/issueLens-run.yml @@ -21,28 +21,25 @@ concurrency: jobs: triage: if: >- - ${{ (github.event_name != 'issue_comment' || + ${{ github.repository == 'microsoft/vscode-java-pack' && + github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && + github.ref_protected && + (github.event_name != 'issue_comment' || (github.event.issue.pull_request == null && github.event.sender.type == 'User' && - github.event.comment.user.type == 'User')) && - (github.event_name != 'workflow_dispatch' || - github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) }} + github.event.comment.user.type == 'User')) }} runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 45 permissions: - contents: read issues: read id-token: write steps: - name: Run IssueLens issue loop - uses: microsoft/IssueLens/.github/actions/issuelens@c431d42dddf4e6bf20329b0ac96dbd8a4bf04006 + uses: microsoft/IssueLens/.github/actions/issuelens@b88dadd40754d640cbb82f4d9a5e9d36e8386981 with: request-type: issue-loop - issue-number: ${{ inputs.issue_number }} - azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} - azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} - azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - agent-url: ${{ secrets.ISSUELENS_AGENT_URL }} - agent-scope: ${{ secrets.ISSUELENS_AGENT_SCOPE }} + transport: bridge + issue-number: ${{ inputs.issue_number || github.event.issue.number }} + bridge-url: ${{ secrets.ISSUELENS_BRIDGE_URL }} output-mode: activity summary-mode: status diff --git a/.github/workflows/team-memory-coordinator.yml b/.github/workflows/team-memory-coordinator.yml index b5ac3bc0..0210a982 100644 --- a/.github/workflows/team-memory-coordinator.yml +++ b/.github/workflows/team-memory-coordinator.yml @@ -42,9 +42,11 @@ jobs: vars.ISSUELENS_TEAM_MEMORY_COORDINATOR_ENABLED == 'true' && github.repository == 'microsoft/vscode-java-pack' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && - github.event_name == 'workflow_dispatch' + github.ref_protected && + github.event_name == 'workflow_dispatch' && + inputs.source_repository == 'microsoft/vscode-java-pack' runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 45 permissions: contents: read pull-requests: read @@ -52,21 +54,14 @@ jobs: id-token: write env: ISSUELENS_SOURCE_REPOSITORIES: >- - {"microsoft/vscode-java-pack":104967329, - "microsoft/vscode-java-debug":102584737, - "microsoft/vscode-java-test":110522074, - "microsoft/vscode-java-dependency":129053101, - "microsoft/vscode-maven":116921700, - "microsoft/vscode-gradle":216314492, - "microsoft/java-debug":102583752, - "microsoft/build-server-for-gradle":626812412} + {"microsoft/vscode-java-pack":104967329} steps: - name: Reconcile team memory and validate final receipts - uses: microsoft/IssueLens/.github/actions/issuelens@c431d42dddf4e6bf20329b0ac96dbd8a4bf04006 + uses: microsoft/IssueLens/.github/actions/issuelens@b88dadd40754d640cbb82f4d9a5e9d36e8386981 with: request-type: team-memory github-token: ${{ github.token }} - source-repository: ${{ inputs.source_repository }} + source-repository: microsoft/vscode-java-pack source-repositories: ${{ env.ISSUELENS_SOURCE_REPOSITORIES }} source-github-token: ${{ github.token }} source-run-id: ${{ inputs.source_run_id }} @@ -74,10 +69,7 @@ jobs: push-before: ${{ inputs.push_before }} push-after: ${{ inputs.push_after }} pull-request-number: ${{ inputs.pull_request_number }} - azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} - azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} - azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - agent-url: ${{ secrets.ISSUELENS_AGENT_URL }} - agent-scope: ${{ secrets.ISSUELENS_AGENT_SCOPE }} + transport: bridge + bridge-url: ${{ secrets.ISSUELENS_BRIDGE_URL }} output-mode: activity summary-mode: status diff --git a/.github/workflows/team-memory-post-merge.yml b/.github/workflows/team-memory-post-merge.yml index aecc276d..e307c36f 100644 --- a/.github/workflows/team-memory-post-merge.yml +++ b/.github/workflows/team-memory-post-merge.yml @@ -12,6 +12,7 @@ jobs: ${{ vars.ISSUELENS_TEAM_MEMORY_COORDINATOR_ENABLED == 'true' && github.repository == 'microsoft/vscode-java-pack' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && + github.ref_protected && github.event_name == 'push' && github.workflow_sha == github.sha && github.event.created == false && @@ -24,7 +25,7 @@ jobs: actions: write steps: - name: Queue team-memory update - uses: microsoft/IssueLens/.github/actions/queue-team-memory@a81d2d96167fc0e69ac631c2edc85f858e693289 + uses: microsoft/IssueLens/.github/actions/queue-team-memory@b88dadd40754d640cbb82f4d9a5e9d36e8386981 with: coordinator-repository: microsoft/vscode-java-pack coordinator-workflow: team-memory-coordinator.yml