Skip to content

Commit 1ed7ca8

Browse files
chagongCopilot
andauthored
Use push events for IssueLens team memory (#637)
Use default-branch push events with the pinned shared IssueLens action, per-push concurrency, and manual dispatch recovery. Co-authored-by: Copilot App <[email protected]>
1 parent b5be02b commit 1ed7ca8

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Update IssueLens Team Memory
22

33
on:
4-
pull_request_target:
5-
types: [closed]
4+
push:
5+
branches: [main]
66
workflow_dispatch:
77
inputs:
88
pull_request_number:
@@ -13,27 +13,24 @@ on:
1313
permissions: {}
1414

1515
concurrency:
16-
group: issuelens-${{ github.repository }}-team-memory-${{ github.event.pull_request.number || inputs.pull_request_number || github.run_id }}
16+
group: issuelens-${{ github.repository }}-team-memory-${{ github.event.after || inputs.pull_request_number || github.run_id }}
1717
cancel-in-progress: false
1818

1919
jobs:
2020
team-memory:
2121
if: >-
2222
${{ vars.ISSUELENS_TEAM_MEMORY_ENABLED == 'true' &&
23-
((github.event_name == 'workflow_dispatch' &&
24-
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) ||
25-
(github.event_name == 'pull_request_target' &&
26-
github.event.pull_request.merged == true &&
27-
github.event.pull_request.base.ref == github.event.repository.default_branch)) }}
23+
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) &&
24+
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
2825
runs-on: ubuntu-latest
29-
timeout-minutes: 20
26+
timeout-minutes: 30
3027
permissions:
3128
contents: read
3229
pull-requests: read
3330
id-token: write
3431
steps:
3532
- name: Maintain IssueLens team memory
36-
uses: microsoft/IssueLens/.github/actions/issuelens@49df3d97547069f891a68248be6ed722c2aeca2f
33+
uses: microsoft/IssueLens/.github/actions/issuelens@2b5317815e15179899014a02c41678620ce2d390
3734
with:
3835
request-type: team-memory
3936
pull-request-number: ${{ inputs.pull_request_number }}

0 commit comments

Comments
 (0)