Skip to content

Commit 8070310

Browse files
chagongCopilot
andauthored
ci: route IssueLens workflows through bridge
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent c95a52b commit 8070310

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

‎.github/workflows/issuelens-run.yml‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,25 @@ concurrency:
2121
jobs:
2222
triage:
2323
if: >-
24-
${{ (github.event_name != 'issue_comment' ||
24+
${{ github.repository == 'microsoft/java-debug' &&
25+
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) &&
26+
github.ref_protected &&
27+
(github.event_name != 'issue_comment' ||
2528
(github.event.issue.pull_request == null &&
2629
github.event.sender.type == 'User' &&
27-
github.event.comment.user.type == 'User')) &&
28-
(github.event_name != 'workflow_dispatch' ||
29-
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) }}
30+
github.event.comment.user.type == 'User')) }}
3031
runs-on: ubuntu-latest
31-
timeout-minutes: 20
32+
timeout-minutes: 45
3233
permissions:
33-
contents: read
3434
issues: read
3535
id-token: write
3636
steps:
3737
- name: Run IssueLens issue loop
38-
uses: microsoft/IssueLens/.github/actions/issuelens@c431d42dddf4e6bf20329b0ac96dbd8a4bf04006
38+
uses: microsoft/IssueLens/.github/actions/issuelens@61a9e9a5ff2f9514a3bdd351a0721235cd0a2813
3939
with:
4040
request-type: issue-loop
41-
issue-number: ${{ inputs.issue_number }}
42-
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
43-
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
44-
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
45-
agent-url: ${{ secrets.ISSUELENS_AGENT_URL }}
46-
agent-scope: ${{ secrets.ISSUELENS_AGENT_SCOPE }}
41+
transport: bridge
42+
issue-number: ${{ inputs.issue_number || github.event.issue.number }}
43+
bridge-url: ${{ secrets.ISSUELENS_BRIDGE_URL }}
4744
output-mode: activity
4845
summary-mode: status

‎.github/workflows/team-memory-post-merge.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
vars.ISSUELENS_TEAM_MEMORY_ENABLED == 'true' &&
1313
github.repository == 'microsoft/java-debug' &&
1414
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) &&
15+
github.ref_protected &&
1516
github.event_name == 'push' &&
1617
github.workflow_sha == github.sha &&
1718
github.event.created == false &&
@@ -32,7 +33,7 @@ jobs:
3233
permission-actions: write
3334

3435
- name: Queue team-memory request
35-
uses: microsoft/IssueLens/.github/actions/queue-team-memory@a81d2d96167fc0e69ac631c2edc85f858e693289
36+
uses: microsoft/IssueLens/.github/actions/queue-team-memory@61a9e9a5ff2f9514a3bdd351a0721235cd0a2813
3637
with:
3738
dispatch-token: ${{ steps.dispatch-token.outputs.token }}
3839
coordinator-repository: microsoft/vscode-java-pack

0 commit comments

Comments
 (0)