Skip to content

Commit 50d7444

Browse files
committed
feat(action): post an in-progress comment, edited in place when done
Add an early sticky-comment step (same 'codeboarding-architecture-diff' header) right after the guard, before the multi-minute checkout/analysis, so the PR shows an 'analyzing…' comment within seconds. The final post step edits that same comment in place with the diagram (and the failure step replaces it on error). best-effort (continue-on-error) so a placeholder hiccup can't fail the run. Consumers get the Qodo/CodeRabbit-style placeholder for free.
1 parent b47079f commit 50d7444

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,21 @@ runs:
155155
gh api -X POST "repos/${REPOSITORY}/issues/comments/${COMMENT_ID}/reactions" \
156156
-f content=eyes >/dev/null 2>&1 || true
157157
158+
- name: Post in-progress comment
159+
if: steps.guard.outputs.skip != 'true'
160+
continue-on-error: true
161+
uses: marocchino/sticky-pull-request-comment@v2
162+
with:
163+
header: codeboarding-architecture-diff
164+
number: ${{ steps.guard.outputs.pr_number }}
165+
message: |
166+
### ${{ inputs.comment_header }} · analyzing…
167+
168+
⏳ CodeBoarding is analyzing the architecture changes in this PR. This usually takes a few minutes.
169+
170+
<sub>codeboarding-action · run ${{ github.run_id }}</sub>
171+
GITHUB_TOKEN: ${{ inputs.github_token }}
172+
158173
- name: Checkout CodeBoarding engine
159174
if: steps.guard.outputs.skip != 'true'
160175
uses: actions/checkout@v4

0 commit comments

Comments
 (0)