mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 21:32:56 -07:00
Pr comment (#8710)
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
|||||||
dry_run=false
|
dry_run=false
|
||||||
|
|
||||||
- name: 'Acknowledge Patch Command'
|
- name: 'Acknowledge Patch Command'
|
||||||
if: "steps.slash_command.outputs.dispatched == 'true'"
|
if: "contains(github.event.comment.body, '/patch')"
|
||||||
uses: 'peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d'
|
uses: 'peter-evans/create-or-update-comment@67dcc547d311b736a8e6c5c236542148a47adc3d'
|
||||||
with:
|
with:
|
||||||
issue-number: '${{ github.event.issue.number }}'
|
issue-number: '${{ github.event.issue.number }}'
|
||||||
@@ -52,7 +52,8 @@ jobs:
|
|||||||
uses: 'actions/github-script@00f12e3e20659f42342b1c0226afda7f7c042325'
|
uses: 'actions/github-script@00f12e3e20659f42342b1c0226afda7f7c042325'
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const args = JSON.parse('${{ steps.slash_command.outputs.command-arguments }}');
|
const argsStr = '${{ steps.slash_command.outputs.command-arguments }}';
|
||||||
|
const args = argsStr ? JSON.parse(argsStr) : {};
|
||||||
github.rest.actions.createWorkflowDispatch({
|
github.rest.actions.createWorkflowDispatch({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
@@ -60,8 +61,8 @@ jobs:
|
|||||||
ref: 'main',
|
ref: 'main',
|
||||||
inputs: {
|
inputs: {
|
||||||
commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
|
commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
|
||||||
channel: args.channel,
|
channel: args.channel || 'stable',
|
||||||
dry_run: args.dry_run
|
dry_run: args.dry_run || 'false'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user