Skip to content

Commit 5e1b33d

Browse files
rdimitrovclaude
andcommitted
Add skill-started + skill-completed PR comments for workflow_dispatch
claude-code-action@v1 rejects track_progress: true on workflow_dispatch events, so manual retries and bootstrap dispatches leave no real-time signal on the PR that the skill is running -- reviewers had to hunt through the Actions tab to see progress. On pull_request runs the action posts its own tracking comment, so this gap only affects workflow_dispatch. Two workflow_dispatch-only comments: - Before skill_gen: a "Claude Opus is generating docs updates for <project> <tag>. Follow progress: <run URL>" placeholder. Static but enough to signal "yes it started". - After Augment PR body: a run summary with skill_gen / skill_review / autofix conclusions and a link to the run for the Claude Code Report. Runs even if earlier steps failed so reviewers can see which step died. Both are gated on `github.event_name == 'workflow_dispatch'` to avoid duplicating the action's own tracking on Renovate-opened PRs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 47b67d5 commit 5e1b33d

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/upstream-release-docs.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,28 @@ jobs:
481481
")
482482
echo "docs_paths=$HINTS" >> "$GITHUB_OUTPUT"
483483
484+
# claude-code-action@v1 rejects track_progress: true on
485+
# workflow_dispatch events with "track_progress is only
486+
# supported for events: pull_request, issue_comment, ...".
487+
# That means on manual retries and bootstrap dispatches, the
488+
# PR gets no real-time "Claude is working on it" comment from
489+
# the action -- a reviewer watching the PR has no visible
490+
# signal that the skill is actually running. Post a static
491+
# placeholder comment ourselves, scoped to workflow_dispatch
492+
# runs so we don't duplicate the action's own tracking on
493+
# normal Renovate-opened PRs.
494+
- name: Post skill-started comment (workflow_dispatch only)
495+
if: github.event_name == 'workflow_dispatch' && steps.eff.outputs.number != ''
496+
env:
497+
PR_NUMBER: ${{ steps.eff.outputs.number }}
498+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
499+
PROJECT_ID: ${{ steps.detect.outputs.id }}
500+
NEW_TAG: ${{ steps.detect.outputs.new_tag }}
501+
run: |
502+
gh pr comment "$PR_NUMBER" --body "Claude Opus is generating docs updates for \`$PROJECT_ID\` \`$NEW_TAG\`. Follow progress in the workflow run: $RUN_URL
503+
504+
(This comment replaces the real-time tracking comment claude-code-action posts on Renovate-opened PRs, which isn't supported on \`workflow_dispatch\` events.)"
505+
484506
# Invocation 1: generation. Runs /upstream-release-docs end-to-
485507
# end (all 6 phases, including the skill's own internal
486508
# docs-review in Phase 5). Uses Opus 4.7 — generation benefits
@@ -907,6 +929,35 @@ jobs:
907929
908930
gh pr edit "$PR_NUMBER" --body-file /tmp/pr-body.md
909931
932+
# Post-run summary for workflow_dispatch, mirroring the pre-run
933+
# placeholder comment above. Gives reviewers a single point in
934+
# the PR timeline that says "here's what happened, and where to
935+
# see the full report" without them having to hunt through the
936+
# Actions tab. Skipped on pull_request runs where claude-code-
937+
# action already posts its own completion comment.
938+
- name: Post skill-completed summary (workflow_dispatch only)
939+
if: always() && github.event_name == 'workflow_dispatch' && steps.eff.outputs.number != ''
940+
env:
941+
PR_NUMBER: ${{ steps.eff.outputs.number }}
942+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
943+
PROJECT_ID: ${{ steps.detect.outputs.id }}
944+
NEW_TAG: ${{ steps.detect.outputs.new_tag }}
945+
GEN_CONCLUSION: ${{ steps.skill_gen.conclusion }}
946+
REVIEW_CONCLUSION: ${{ steps.skill_review.conclusion }}
947+
AUTOFIX_CONCLUSION: ${{ steps.autofix.conclusion }}
948+
run: |
949+
gh pr comment "$PR_NUMBER" --body "## Upstream-release-docs run summary
950+
951+
Project: \`$PROJECT_ID\` at tag \`$NEW_TAG\`
952+
953+
| Step | Conclusion |
954+
| --- | --- |
955+
| Generation (\`skill_gen\`) | \`${GEN_CONCLUSION:-(not run)}\` |
956+
| Editorial review (\`skill_review\`) | \`${REVIEW_CONCLUSION:-(not run)}\` |
957+
| Autofix (prettier/eslint) | \`${AUTOFIX_CONCLUSION:-(not run)}\` |
958+
959+
Full report and Claude's step-by-step log: $RUN_URL" || true
960+
910961
- name: Comment on augmentation failure
911962
# Runs only when a preceding step failed. Comments a retry
912963
# pointer on the PR so a human can see the run URL.

0 commit comments

Comments
 (0)