Skip to content

Commit 332bfdc

Browse files
chagongCopilot
andauthored
Use push events for IssueLens team memory (#1103)
Use default-branch push events with the pinned shared IssueLens action, per-push concurrency, and manual dispatch recovery. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent a47875d commit 332bfdc

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

‎.github/issuelens/team-memory.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ prerequisite for retrieval or separately authorized direct maintenance.
170170

171171
Preserve `expected_wiki_repository` and the full-SHA `expected_base` from a fresh,
172172
verified wiki snapshot on every update. Retain atomic Git compare-and-swap (CAS);
173-
source workflow concurrency is per repository and issue/PR, not a cross-repository
174-
wiki lock. Other Java tooling repositories can update the same shared wiki.
173+
source workflow concurrency is per repository and issue, push SHA, or manual PR,
174+
not a cross-repository wiki lock. Other Java tooling repositories can update the
175+
same shared wiki.
175176
On a destination/base mismatch or conflict, stop the prepared write, perform a
176177
bounded re-read, and recompute only still-authorized changes against the verified
177178
snapshot. If authorization, destination, or provenance cannot be re-established,

‎.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)