Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/gemini-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,27 @@ jobs:
core.setOutput('command', 'review');
const additionalContext = request.replace(/^@gemini-cli \/review/, '').trim();
core.setOutput('additional_context', additionalContext);
core.summary.addRaw('Dispatched command: **review**')
} else if (request.startsWith("@gemini-cli /triage")) {
core.setOutput('command', 'triage');
core.summary.addRaw('Dispatched command: **triage**')
} else if (request.startsWith("@gemini-cli /fix")) {
core.setOutput('command', 'fix');
core.summary.addRaw('Dispatched command: **fix**')
} else if (request.startsWith("@gemini-cli")) {
core.setOutput('command', 'invoke');
const additionalContext = request.replace(/^@gemini-cli/, '').trim();
core.setOutput('additional_context', additionalContext);
core.summary.addRaw('Dispatched command: **invoke**')
} else if (eventType === 'pull_request.opened') {
core.setOutput('command', 'review');
core.summary.addRaw('Dispatched command: **review**')
} else if (['issues.opened', 'issues.reopened'].includes(eventType)) {
core.setOutput('command', 'triage');
core.summary.addRaw('Dispatched command: **triage**')
} else {
core.setOutput('command', 'fallthrough');
core.summary.addRaw('Dispatched command: **fallthrough**')
}

- name: 'Acknowledge request'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gemini-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,6 @@ jobs:
## Final Instructions

Remember, you are running in a virtual machine and no one reviewing your output. Your review must be posted to GitHub using the MCP tools to create a pending review, add comments to the pending review, and submit the pending review.

- name: 'Add job summary'
run: 'echo "Pull request review is in progress." >> "$GITHUB_STEP_SUMMARY"'
14 changes: 14 additions & 0 deletions .github/workflows/gemini-scheduled-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ jobs:
]
```

- name: 'Add job summary'
run: 'echo "Triaged issues: ${{ steps.find_issues.outputs.issues_to_triage }}." >> "$GITHUB_STEP_SUMMARY"'

label:
runs-on: 'ubuntu-latest'
needs:
Expand Down Expand Up @@ -249,6 +252,7 @@ jobs:
permission-pull-requests: 'write'

- name: 'Apply labels'
id: 'apply_labels'
env:
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
TRIAGED_ISSUES: '${{ needs.triage.outputs.triaged_issues }}'
Expand Down Expand Up @@ -305,3 +309,13 @@ jobs:
labels: labelsToSet,
});
}

- name: 'Add job summary'
run: |
{
echo "Applied labels to the following issues:"
echo ""
echo "| Issue | Labels |"
echo "|---|---|"
echo '${{ needs.triage.outputs.triaged_issues }}' | jq -r '.[] | "| #\(.issue_number) | \(.labels_to_set | join(", ")) |"'
} >> "$GITHUB_STEP_SUMMARY"
7 changes: 7 additions & 0 deletions .github/workflows/gemini-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ jobs:
echo "SELECTED_LABELS=bug,enhancement" >> "/tmp/runner/env"
```

- name: 'Add job summary'
run: 'echo "Selected labels: **${{ env.SELECTED_LABELS }}**" >> "$GITHUB_STEP_SUMMARY"'

label:
runs-on: 'ubuntu-latest'
needs:
Expand All @@ -149,6 +152,7 @@ jobs:
permission-pull-requests: 'write'

- name: 'Apply labels'
id: 'apply_labels'
env:
ISSUE_NUMBER: '${{ github.event.issue.number }}'
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
Expand Down Expand Up @@ -184,3 +188,6 @@ jobs:
} else {
core.info(`Failed to determine labels to set. There may not be enough information in the issue or pull request.`)
}

- name: 'Add job summary'
run: 'echo "Applied labels: **${{ needs.triage.outputs.selected_labels }}**" >> "$GITHUB_STEP_SUMMARY"'
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ jobs:
uses: 'actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978' # ratchet:actions/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

- name: 'Add job summary'
run: 'echo "Published action to the marketplace." >> "$GITHUB_STEP_SUMMARY"'
6 changes: 6 additions & 0 deletions examples/workflows/gemini-dispatch/gemini-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ jobs:
--body "${MESSAGE}" \
--repo "${REPOSITORY}"

- name: 'Add job summary'
run: 'echo "Dispatched command: **${{ steps.extract_command.outputs.command }}**" >> $GITHUB_STEP_SUMMARY'

review:
needs: 'dispatch'
if: |-
Expand Down Expand Up @@ -202,3 +205,6 @@ jobs:
gh issue comment "${ISSUE_NUMBER}" \
--body "${MESSAGE}" \
--repo "${REPOSITORY}"

- name: 'Add job summary'
run: 'echo "Failed to process request. See logs for details." >> $GITHUB_STEP_SUMMARY'
14 changes: 14 additions & 0 deletions examples/workflows/issue-triage/gemini-scheduled-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ jobs:
]
```

- name: 'Add job summary'
run: 'echo "Triaged issues: ${{ steps.find_issues.outputs.issues_to_triage }}." >> "$GITHUB_STEP_SUMMARY"'

label:
runs-on: 'ubuntu-latest'
needs:
Expand Down Expand Up @@ -249,6 +252,7 @@ jobs:
permission-pull-requests: 'write'

- name: 'Apply labels'
id: 'apply_labels'
env:
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
TRIAGED_ISSUES: '${{ needs.triage.outputs.triaged_issues }}'
Expand Down Expand Up @@ -305,3 +309,13 @@ jobs:
labels: labelsToSet,
});
}

- name: 'Add job summary'
run: |
{
echo "Applied labels to the following issues:"
echo ""
echo "| Issue | Labels |"
echo "|---|---|"
echo '${{ needs.triage.outputs.triaged_issues }}' | jq -r '.[] | "| #\(.issue_number) | \(.labels_to_set | join(", ")) |"'
} >> "$GITHUB_STEP_SUMMARY"
7 changes: 7 additions & 0 deletions examples/workflows/issue-triage/gemini-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ jobs:
echo "SELECTED_LABELS=bug,enhancement" >> "/tmp/runner/env"
```

- name: 'Add job summary'
run: 'echo "Selected labels: **${{ env.SELECTED_LABELS }}**" >> "$GITHUB_STEP_SUMMARY"'

label:
runs-on: 'ubuntu-latest'
needs:
Expand All @@ -149,6 +152,7 @@ jobs:
permission-pull-requests: 'write'

- name: 'Apply labels'
id: 'apply_labels'
env:
ISSUE_NUMBER: '${{ github.event.issue.number }}'
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
Expand Down Expand Up @@ -184,3 +188,6 @@ jobs:
} else {
core.info(`Failed to determine labels to set. There may not be enough information in the issue or pull request.`)
}

- name: 'Add job summary'
run: 'echo "Applied labels: **${{ needs.triage.outputs.selected_labels }}**" >> "$GITHUB_STEP_SUMMARY"'
3 changes: 3 additions & 0 deletions examples/workflows/pr-review/gemini-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,6 @@ jobs:
## Final Instructions

Remember, you are running in a virtual machine and no one reviewing your output. Your review must be posted to GitHub using the MCP tools to create a pending review, add comments to the pending review, and submit the pending review.

- name: 'Add job summary'
run: 'echo "Pull request review is in progress." >> "$GITHUB_STEP_SUMMARY"'
Loading