diff --git a/.github/workflows/gemini-dispatch.yml b/.github/workflows/gemini-dispatch.yml index 160eee5dd..f2a9af2a8 100644 --- a/.github/workflows/gemini-dispatch.yml +++ b/.github/workflows/gemini-dispatch.yml @@ -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' diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml index f3cc8b8ba..0f6d57441 100644 --- a/.github/workflows/gemini-review.yml +++ b/.github/workflows/gemini-review.yml @@ -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"' diff --git a/.github/workflows/gemini-scheduled-triage.yml b/.github/workflows/gemini-scheduled-triage.yml index cc13c18a8..f399b9829 100644 --- a/.github/workflows/gemini-scheduled-triage.yml +++ b/.github/workflows/gemini-scheduled-triage.yml @@ -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: @@ -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 }}' @@ -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" diff --git a/.github/workflows/gemini-triage.yml b/.github/workflows/gemini-triage.yml index ddb328d08..e37c8c341 100644 --- a/.github/workflows/gemini-triage.yml +++ b/.github/workflows/gemini-triage.yml @@ -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: @@ -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 }}' @@ -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"' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a84907d89..03624e4b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,3 +23,6 @@ jobs: uses: 'actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978' # ratchet:actions/publish-immutable-action@v0.0.4 with: github-token: '${{ secrets.GITHUB_TOKEN }}' + + - name: 'Add job summary' + run: 'echo "Published action to the marketplace." >> "$GITHUB_STEP_SUMMARY"' diff --git a/examples/workflows/gemini-dispatch/gemini-dispatch.yml b/examples/workflows/gemini-dispatch/gemini-dispatch.yml index d965d4552..37158fa86 100644 --- a/examples/workflows/gemini-dispatch/gemini-dispatch.yml +++ b/examples/workflows/gemini-dispatch/gemini-dispatch.yml @@ -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: |- @@ -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' diff --git a/examples/workflows/issue-triage/gemini-scheduled-triage.yml b/examples/workflows/issue-triage/gemini-scheduled-triage.yml index 7d8e3b1f5..a6ff962a3 100644 --- a/examples/workflows/issue-triage/gemini-scheduled-triage.yml +++ b/examples/workflows/issue-triage/gemini-scheduled-triage.yml @@ -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: @@ -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 }}' @@ -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" diff --git a/examples/workflows/issue-triage/gemini-triage.yml b/examples/workflows/issue-triage/gemini-triage.yml index 525f2a3b3..04a5d468e 100644 --- a/examples/workflows/issue-triage/gemini-triage.yml +++ b/examples/workflows/issue-triage/gemini-triage.yml @@ -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: @@ -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 }}' @@ -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"' diff --git a/examples/workflows/pr-review/gemini-review.yml b/examples/workflows/pr-review/gemini-review.yml index 9d1b992cd..b6b1dc845 100644 --- a/examples/workflows/pr-review/gemini-review.yml +++ b/examples/workflows/pr-review/gemini-review.yml @@ -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"'