Skip to content

Commit 8cdf5a9

Browse files
committed
chore: Update format
1 parent 1601021 commit 8cdf5a9

4 files changed

Lines changed: 6 additions & 288 deletions

File tree

.github/workflows/gemini-cli.yml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
name: '💬 Gemini CLI'
22

33
on:
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

147
concurrency:
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:
@@ -116,7 +90,7 @@ jobs:
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 }}'

.github/workflows/gemini-issue-automated-triage.yml

Lines changed: 0 additions & 130 deletions
This file was deleted.

.github/workflows/gemini-issue-scheduled-triage.yml

Lines changed: 0 additions & 123 deletions
This file was deleted.

.github/workflows/gemini-pr-review.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ name: '🧐 Gemini Pull Request Review'
22

33
on:
44
pull_request:
5-
types:
6-
- 'opened'
7-
- 'reopened'
5+
types: [opened, reopened]
86
issue_comment:
9-
types:
10-
- 'created'
7+
types: [created]
118
workflow_dispatch:
129
inputs:
1310
pr_number:

0 commit comments

Comments
 (0)