-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/workflow/pr review #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,17 +40,19 @@ jobs: | |||||
|
|
||||||
| - name: 'Checkout repository' | ||||||
| uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 | ||||||
| with: | ||||||
| ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number || github.event.issue.number) }} | ||||||
|
|
||||||
| - name: 'Run Gemini pull request review' | ||||||
| uses: 'google-github-actions/run-gemini-cli@main' # ratchet:exclude | ||||||
| id: 'gemini_pr_review' | ||||||
| env: | ||||||
| GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}' | ||||||
| ISSUE_TITLE: '${{ github.event.pull_request.title || github.event.issue.title }}' | ||||||
| ISSUE_BODY: '${{ github.event.pull_request.body || github.event.issue.body }}' | ||||||
| ISSUE_TITLE: '${{ toJSON(github.event.pull_request.title || github.event.issue.title) }}' | ||||||
| ISSUE_BODY: '${{ toJSON(github.event.pull_request.body || github.event.issue.body) }}' | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Avoid JSON-encoding env vars (introduces extra quotes in values) Same issue for body: JSON-encoding will include surrounding quotes in the env var. - ISSUE_BODY: '${{ toJSON(github.event.pull_request.body || github.event.issue.body) }}'
+ ISSUE_BODY: '${{ github.event.pull_request.body || github.event.issue.body }}'📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| PULL_REQUEST_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}' | ||||||
| REPOSITORY: '${{ github.repository }}' | ||||||
| ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}' | ||||||
| ADDITIONAL_CONTEXT: '${{ toJSON(inputs.additional_context) }}' | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Avoid JSON-encoding env vars (introduces extra quotes in values) Pass - ADDITIONAL_CONTEXT: '${{ toJSON(inputs.additional_context) }}'
+ ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| with: | ||||||
| gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}' | ||||||
| gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}' | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Avoid JSON-encoding env vars (introduces extra quotes in values)
toJSON(...)wraps the string in quotes and escapes content, so downstream consumers may see literal quotes in the title. Use the raw string instead.📝 Committable suggestion
🤖 Prompt for AI Agents