Skip to content

Commit

Permalink
trigger based on commenter role not PR author role
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Dec 18, 2024
1 parent 1cbd853 commit eb77d8a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/update-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
update-snapshots:
if: >
(
github.event.issue.author_association == 'OWNER' ||
github.event.issue.author_association == 'COLLABORATOR' ||
github.event.issue.author_association == 'MEMBER'
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'MEMBER'
) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots')
runs-on: ubuntu-latest

steps:
- name: React to the triggering comment
run: |
Expand Down Expand Up @@ -74,7 +73,7 @@ jobs:
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
start_server_script: 'null'
start_server_script: "null"
test_folder: packages/jupyter-ai/ui-tests
npm_client: jlpm

Expand Down

0 comments on commit eb77d8a

Please sign in to comment.