Skip to content

Commit 6499f2a

Browse files
committed
feat(ui): 重构关于页面并添加动画效果
style(workflow): 统一字符串引号格式
1 parent 53bdc0e commit 6499f2a

File tree

2 files changed

+566
-464
lines changed

2 files changed

+566
-464
lines changed

.github/workflows/gemini-cli.yml

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: '💬 Gemini CLI'
1+
name: "💬 Gemini CLI"
22

33
on:
44
pull_request_review_comment:
55
types:
6-
- 'created'
7-
pull_request_review:
8-
types:
9-
- 'submitted'
6+
- "created"
7+
# pull_request_review:
8+
# types:
9+
# - 'submitted'
1010
issue_comment:
1111
types:
12-
- 'created'
12+
- "created"
1313

1414
concurrency:
15-
group: '${{ github.workflow }}-${{ github.event.issue.number }}'
15+
group: "${{ github.workflow }}-${{ github.event.issue.number }}"
1616
cancel-in-progress: |-
1717
${{ github.event.sender.type == 'User' && ( github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'COLLABORATOR') }}
1818
1919
defaults:
2020
run:
21-
shell: 'bash'
21+
shell: "bash"
2222

2323
permissions:
24-
contents: 'write'
25-
id-token: 'write'
26-
pull-requests: 'write'
27-
issues: 'write'
24+
contents: "write"
25+
id-token: "write"
26+
pull-requests: "write"
27+
issues: "write"
2828

2929
jobs:
3030
gemini-cli:
@@ -56,23 +56,23 @@ jobs:
5656
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)
5757
)
5858
timeout-minutes: 10
59-
runs-on: 'ubuntu-latest'
59+
runs-on: "ubuntu-latest"
6060

6161
steps:
62-
- name: 'Generate GitHub App Token'
63-
id: 'generate_token'
62+
- name: "Generate GitHub App Token"
63+
id: "generate_token"
6464
if: |-
6565
${{ vars.APP_ID }}
66-
uses: 'actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e' # ratchet:actions/create-github-app-token@v2
66+
uses: "actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e" # ratchet:actions/create-github-app-token@v2
6767
with:
68-
app-id: '${{ vars.APP_ID }}'
69-
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
68+
app-id: "${{ vars.APP_ID }}"
69+
private-key: "${{ secrets.APP_PRIVATE_KEY }}"
7070

71-
- name: 'Get context from event'
72-
id: 'get_context'
71+
- name: "Get context from event"
72+
id: "get_context"
7373
env:
74-
EVENT_NAME: '${{ github.event_name }}'
75-
EVENT_PAYLOAD: '${{ toJSON(github.event) }}'
74+
EVENT_NAME: "${{ github.event_name }}"
75+
EVENT_PAYLOAD: "${{ toJSON(github.event) }}"
7676
run: |-
7777
set -euo pipefail
7878
@@ -108,37 +108,37 @@ jobs:
108108
echo "is_pr=${IS_PR}"
109109
} >> "${GITHUB_OUTPUT}"
110110
111-
- name: 'Set up git user for commits'
111+
- name: "Set up git user for commits"
112112
run: |-
113113
git config --global user.name 'gemini-cli[bot]'
114114
git config --global user.email 'gemini-cli[bot]@users.noreply.github.com'
115115
116-
- name: 'Checkout PR branch'
116+
- name: "Checkout PR branch"
117117
if: |-
118118
${{ steps.get_context.outputs.is_pr == 'true' }}
119-
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
119+
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # ratchet:actions/checkout@v4
120120
with:
121-
token: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
122-
repository: '${{ github.repository }}'
123-
ref: 'refs/pull/${{ steps.get_context.outputs.issue_number }}/head'
121+
token: "${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}"
122+
repository: "${{ github.repository }}"
123+
ref: "refs/pull/${{ steps.get_context.outputs.issue_number }}/head"
124124
fetch-depth: 0
125125

126-
- name: 'Checkout main branch'
126+
- name: "Checkout main branch"
127127
if: |-
128128
${{ steps.get_context.outputs.is_pr == 'false' }}
129-
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
129+
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # ratchet:actions/checkout@v4
130130
with:
131-
token: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
132-
repository: '${{ github.repository }}'
131+
token: "${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}"
132+
repository: "${{ github.repository }}"
133133
fetch-depth: 0
134134

135-
- name: 'Acknowledge request'
135+
- name: "Acknowledge request"
136136
env:
137-
GITHUB_ACTOR: '${{ github.actor }}'
138-
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
139-
ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}'
140-
REPOSITORY: '${{ github.repository }}'
141-
REQUEST_TYPE: '${{ steps.get_context.outputs.request_type }}'
137+
GITHUB_ACTOR: "${{ github.actor }}"
138+
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}"
139+
ISSUE_NUMBER: "${{ steps.get_context.outputs.issue_number }}"
140+
REPOSITORY: "${{ github.repository }}"
141+
REQUEST_TYPE: "${{ steps.get_context.outputs.request_type }}"
142142
run: |-
143143
set -euo pipefail
144144
MESSAGE="@${GITHUB_ACTOR} I've received your request and I'm working on it now! 🤖"
@@ -148,12 +148,12 @@ jobs:
148148
--repo "${REPOSITORY}"
149149
fi
150150
151-
- name: 'Get description'
152-
id: 'get_description'
151+
- name: "Get description"
152+
id: "get_description"
153153
env:
154-
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
155-
IS_PR: '${{ steps.get_context.outputs.is_pr }}'
156-
ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}'
154+
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}"
155+
IS_PR: "${{ steps.get_context.outputs.is_pr }}"
156+
ISSUE_NUMBER: "${{ steps.get_context.outputs.issue_number }}"
157157
run: |-
158158
set -euo pipefail
159159
if [[ "${IS_PR}" == "true" ]]; then
@@ -167,12 +167,12 @@ jobs:
167167
echo "EOF"
168168
} >> "${GITHUB_OUTPUT}"
169169
170-
- name: 'Get comments'
171-
id: 'get_comments'
170+
- name: "Get comments"
171+
id: "get_comments"
172172
env:
173-
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
174-
IS_PR: '${{ steps.get_context.outputs.is_pr }}'
175-
ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}'
173+
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}"
174+
IS_PR: "${{ steps.get_context.outputs.is_pr }}"
175+
ISSUE_NUMBER: "${{ steps.get_context.outputs.issue_number }}"
176176
run: |-
177177
set -euo pipefail
178178
if [[ "${IS_PR}" == "true" ]]; then
@@ -186,23 +186,23 @@ jobs:
186186
echo "EOF"
187187
} >> "${GITHUB_OUTPUT}"
188188
189-
- name: 'Run Gemini'
190-
id: 'run_gemini'
191-
uses: 'google-github-actions/run-gemini-cli@v0'
189+
- name: "Run Gemini"
190+
id: "run_gemini"
191+
uses: "google-github-actions/run-gemini-cli@v0"
192192
env:
193-
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}'
194-
REPOSITORY: '${{ github.repository }}'
195-
USER_REQUEST: '${{ steps.get_context.outputs.user_request }}'
196-
ISSUE_NUMBER: '${{ steps.get_context.outputs.issue_number }}'
197-
IS_PR: '${{ steps.get_context.outputs.is_pr }}'
193+
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token || secrets.GITHUB_TOKEN }}"
194+
REPOSITORY: "${{ github.repository }}"
195+
USER_REQUEST: "${{ steps.get_context.outputs.user_request }}"
196+
ISSUE_NUMBER: "${{ steps.get_context.outputs.issue_number }}"
197+
IS_PR: "${{ steps.get_context.outputs.is_pr }}"
198198
with:
199-
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
200-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
201-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
202-
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
203-
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
204-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
205-
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
199+
gemini_api_key: "${{ secrets.GEMINI_API_KEY }}"
200+
gcp_workload_identity_provider: "${{ vars.GCP_WIF_PROVIDER }}"
201+
gcp_project_id: "${{ vars.GOOGLE_CLOUD_PROJECT }}"
202+
gcp_location: "${{ vars.GOOGLE_CLOUD_LOCATION }}"
203+
gcp_service_account: "${{ vars.SERVICE_ACCOUNT_EMAIL }}"
204+
use_vertex_ai: "${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}"
205+
use_gemini_code_assist: "${{ vars.GOOGLE_GENAI_USE_GCA }}"
206206
settings: |-
207207
{
208208
"maxSessionTurns": 50,

0 commit comments

Comments
 (0)