11name : ' 💬 Gemini CLI'
22
33on :
4- pull_request_review_comment :
5- types :
6- - ' created'
7- pull_request_review :
8- types :
9- - ' submitted'
104 issue_comment :
11- types :
12- - ' created'
5+ types : [created]
136
147concurrency :
158 group : ' ${{ github.workflow }}-${{ github.event.issue.number }}'
@@ -39,35 +32,16 @@ jobs:
3932 contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)
4033 ) ||
4134 (
42- (
43- github.event_name == 'issue_comment' ||
44- github.event_name == 'pull_request_review_comment'
45- ) &&
35+ github.event_name == 'issue_comment' &&
4636 contains(github.event.comment.body, '@gemini-cli') &&
4737 !contains(github.event.comment.body, '@gemini-cli /review') &&
4838 !contains(github.event.comment.body, '@gemini-cli /triage') &&
4939 contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
50- ) ||
51- (
52- github.event_name == 'pull_request_review' &&
53- contains(github.event.review.body, '@gemini-cli') &&
54- !contains(github.event.review.body, '@gemini-cli /review') &&
55- !contains(github.event.review.body, '@gemini-cli /triage') &&
56- contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)
5740 )
5841 timeout-minutes : 10
5942 runs-on : ' ubuntu-latest'
6043
6144 steps :
62- - name : ' Generate GitHub App Token'
63- id : ' generate_token'
64- if : |-
65- ${{ vars.APP_ID }}
66- uses : ' actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e' # ratchet:actions/create-github-app-token@v2
67- with :
68- app-id : ' ${{ vars.APP_ID }}'
69- private-key : ' ${{ secrets.APP_PRIVATE_KEY }}'
70-
7145 - name : ' Get context from event'
7246 id : ' get_context'
7347 env :
11690 - name : ' Checkout PR branch'
11791 if : |-
11892 ${{ steps.get_context.outputs.is_pr == 'true' }}
119- uses : ' actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 ' # ratchet:actions/checkout@v4
93+ uses : ' actions/checkout@v5 '
12094 with :
12195 token : ' ${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
12296 repository : ' ${{ github.repository }}'
@@ -126,7 +100,7 @@ jobs:
126100 - name : ' Checkout main branch'
127101 if : |-
128102 ${{ steps.get_context.outputs.is_pr == 'false' }}
129- uses : ' actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 ' # ratchet:actions/checkout@v4
103+ uses : ' actions/checkout@v5 '
130104 with :
131105 token : ' ${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
132106 repository : ' ${{ github.repository }}'
0 commit comments