Skip to content

Commit a8052f1

Browse files
committed
update(workflows): add step summaries
1 parent d4a9047 commit a8052f1

File tree

9 files changed

+63
-0
lines changed

9 files changed

+63
-0
lines changed

.github/workflows/gemini-dispatch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,24 @@ jobs:
9797
core.setOutput('command', 'review');
9898
const additionalContext = request.replace(/^@gemini-cli \/review/, '').trim();
9999
core.setOutput('additional_context', additionalContext);
100+
core.summary.addRaw('Dispatched command: **review**')
100101
} else if (request.startsWith("@gemini-cli /triage")) {
101102
core.setOutput('command', 'triage');
103+
core.summary.addRaw('Dispatched command: **triage**')
102104
} else if (request.startsWith("@gemini-cli")) {
103105
core.setOutput('command', 'invoke');
104106
const additionalContext = request.replace(/^@gemini-cli/, '').trim();
105107
core.setOutput('additional_context', additionalContext);
108+
core.summary.addRaw('Dispatched command: **invoke**')
106109
} else if (eventType === 'pull_request.opened') {
107110
core.setOutput('command', 'review');
111+
core.summary.addRaw('Dispatched command: **review**')
108112
} else if (['issues.opened', 'issues.reopened'].includes(eventType)) {
109113
core.setOutput('command', 'triage');
114+
core.summary.addRaw('Dispatched command: **triage**')
110115
} else {
111116
core.setOutput('command', 'fallthrough');
117+
core.summary.addRaw('Dispatched command: **fallthrough**')
112118
}
113119
114120
- name: 'Acknowledge request'

.github/workflows/gemini-review.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,6 @@ jobs:
269269
## Final Instructions
270270
271271
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.
272+
273+
- name: 'Add job summary'
274+
run: 'echo "Pull request review is in progress." >> "$GITHUB_STEP_SUMMARY"'

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ jobs:
222222
]
223223
```
224224
225+
- name: 'Add job summary'
226+
run: 'echo "Triaged issues: ${{ steps.find_issues.outputs.issues_to_triage }}." >> "$GITHUB_STEP_SUMMARY"'
227+
225228
label:
226229
runs-on: 'ubuntu-latest'
227230
needs:
@@ -249,6 +252,7 @@ jobs:
249252
permission-pull-requests: 'write'
250253

251254
- name: 'Apply labels'
255+
id: 'apply_labels'
252256
env:
253257
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
254258
TRIAGED_ISSUES: '${{ needs.triage.outputs.triaged_issues }}'
@@ -305,3 +309,13 @@ jobs:
305309
labels: labelsToSet,
306310
});
307311
}
312+
313+
- name: 'Add job summary'
314+
run: |
315+
{
316+
echo "Applied labels to the following issues:"
317+
echo ""
318+
echo "| Issue | Labels |"
319+
echo "|---|---|"
320+
echo '${{ needs.triage.outputs.triaged_issues }}' | jq -r '.[] | "| #\(.issue_number) | \(.labels_to_set | join(", ")) |"'
321+
} >> "$GITHUB_STEP_SUMMARY"

.github/workflows/gemini-triage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ jobs:
125125
echo "SELECTED_LABELS=bug,enhancement" >> "/tmp/runner/env"
126126
```
127127
128+
- name: 'Add job summary'
129+
run: 'echo "Selected labels: **${{ env.SELECTED_LABELS }}**" >> "$GITHUB_STEP_SUMMARY"'
130+
128131
label:
129132
runs-on: 'ubuntu-latest'
130133
needs:
@@ -149,6 +152,7 @@ jobs:
149152
permission-pull-requests: 'write'
150153

151154
- name: 'Apply labels'
155+
id: 'apply_labels'
152156
env:
153157
ISSUE_NUMBER: '${{ github.event.issue.number }}'
154158
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
@@ -184,3 +188,6 @@ jobs:
184188
} else {
185189
core.info(`Failed to determine labels to set. There may not be enough information in the issue or pull request.`)
186190
}
191+
192+
- name: 'Add job summary'
193+
run: 'echo "Applied labels: **${{ needs.triage.outputs.selected_labels }}**" >> "$GITHUB_STEP_SUMMARY"'

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ jobs:
2323
uses: 'actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978' # ratchet:actions/[email protected]
2424
with:
2525
github-token: '${{ secrets.GITHUB_TOKEN }}'
26+
27+
- name: 'Add job summary'
28+
run: 'echo "Published action to the marketplace." >> "$GITHUB_STEP_SUMMARY"'

examples/workflows/gemini-dispatch/gemini-dispatch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ jobs:
123123
--body "${MESSAGE}" \
124124
--repo "${REPOSITORY}"
125125
126+
- name: 'Add job summary'
127+
run: 'echo "Dispatched command: **${{ steps.extract_command.outputs.command }}**" >> $GITHUB_STEP_SUMMARY'
128+
126129
review:
127130
needs: 'dispatch'
128131
if: |-
@@ -202,3 +205,6 @@ jobs:
202205
gh issue comment "${ISSUE_NUMBER}" \
203206
--body "${MESSAGE}" \
204207
--repo "${REPOSITORY}"
208+
209+
- name: 'Add job summary'
210+
run: 'echo "Failed to process request. See logs for details." >> $GITHUB_STEP_SUMMARY'

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ jobs:
222222
]
223223
```
224224
225+
- name: 'Add job summary'
226+
run: 'echo "Triaged issues: ${{ steps.find_issues.outputs.issues_to_triage }}." >> "$GITHUB_STEP_SUMMARY"'
227+
225228
label:
226229
runs-on: 'ubuntu-latest'
227230
needs:
@@ -249,6 +252,7 @@ jobs:
249252
permission-pull-requests: 'write'
250253

251254
- name: 'Apply labels'
255+
id: 'apply_labels'
252256
env:
253257
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
254258
TRIAGED_ISSUES: '${{ needs.triage.outputs.triaged_issues }}'
@@ -305,3 +309,13 @@ jobs:
305309
labels: labelsToSet,
306310
});
307311
}
312+
313+
- name: 'Add job summary'
314+
run: |
315+
{
316+
echo "Applied labels to the following issues:"
317+
echo ""
318+
echo "| Issue | Labels |"
319+
echo "|---|---|"
320+
echo '${{ needs.triage.outputs.triaged_issues }}' | jq -r '.[] | "| #\(.issue_number) | \(.labels_to_set | join(", ")) |"'
321+
} >> "$GITHUB_STEP_SUMMARY"

examples/workflows/issue-triage/gemini-triage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ jobs:
125125
echo "SELECTED_LABELS=bug,enhancement" >> "/tmp/runner/env"
126126
```
127127
128+
- name: 'Add job summary'
129+
run: 'echo "Selected labels: **${{ env.SELECTED_LABELS }}**" >> "$GITHUB_STEP_SUMMARY"'
130+
128131
label:
129132
runs-on: 'ubuntu-latest'
130133
needs:
@@ -149,6 +152,7 @@ jobs:
149152
permission-pull-requests: 'write'
150153

151154
- name: 'Apply labels'
155+
id: 'apply_labels'
152156
env:
153157
ISSUE_NUMBER: '${{ github.event.issue.number }}'
154158
AVAILABLE_LABELS: '${{ needs.triage.outputs.available_labels }}'
@@ -184,3 +188,6 @@ jobs:
184188
} else {
185189
core.info(`Failed to determine labels to set. There may not be enough information in the issue or pull request.`)
186190
}
191+
192+
- name: 'Add job summary'
193+
run: 'echo "Applied labels: **${{ needs.triage.outputs.selected_labels }}**" >> "$GITHUB_STEP_SUMMARY"'

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,6 @@ jobs:
269269
## Final Instructions
270270
271271
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.
272+
273+
- name: 'Add job summary'
274+
run: 'echo "Pull request review is in progress." >> "$GITHUB_STEP_SUMMARY"'

0 commit comments

Comments
 (0)