Skip to content

Commit ad0ebee

Browse files
Trigger update snapshots based on commenter's role (#1160)
* trigger based on commenter role not PR author role * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1cbd853 commit ad0ebee

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/update-snapshots.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ jobs:
1212
update-snapshots:
1313
if: >
1414
(
15-
github.event.issue.author_association == 'OWNER' ||
16-
github.event.issue.author_association == 'COLLABORATOR' ||
17-
github.event.issue.author_association == 'MEMBER'
15+
github.event.comment.author_association == 'OWNER' ||
16+
github.event.comment.author_association == 'COLLABORATOR' ||
17+
github.event.comment.author_association == 'MEMBER'
1818
) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
1919
runs-on: ubuntu-latest
20-
2120
steps:
2221
- name: React to the triggering comment
2322
run: |
@@ -74,7 +73,7 @@ jobs:
7473
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
7574
with:
7675
github_token: ${{ secrets.GITHUB_TOKEN }}
77-
start_server_script: 'null'
76+
start_server_script: "null"
7877
test_folder: packages/jupyter-ai/ui-tests
7978
npm_client: jlpm
8079

Loading

0 commit comments

Comments
 (0)