Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5beb53c

Browse files
committed
feat: add intermediate comment update with task link
- Update comment immediately after task creation- Shows 'Analysis in progress...' with task link- Allows users to follow along in real-time- Three-step progression: Started -> In Progress (with link) -> Complete
1 parent89cfc5e commit5beb53c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

‎.github/workflows/documentation-check.yaml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,33 @@ jobs:
222222
echo "TASK_NAME=${CODER_USERNAME}/${TASK_NAME}" >> "${GITHUB_OUTPUT}"
223223
echo "TASK_NAME=${CODER_USERNAME}/${TASK_NAME}" >> "${GITHUB_ENV}"
224224
225+
-name:Update comment with task link
226+
env:
227+
GH_TOKEN:${{ github.token }}
228+
COMMENT_ID:${{ steps.post-comment.outputs.comment_id }}
229+
GITHUB_REPOSITORY:${{ github.repository }}
230+
TASK_NAME:${{ steps.create-task.outputs.TASK_NAME }}
231+
run:|
232+
# Fetch the original comment
233+
ORIGINAL_COMMENT=$(gh api "/repos/${GITHUB_REPOSITORY}/issues/comments/${COMMENT_ID}" --jq '.body')
234+
235+
COMMENT_BODY=$(cat <<EOF
236+
${ORIGINAL_COMMENT}
237+
238+
---
239+
240+
🔄 **Analysis in progress...**
241+
242+
📋 Task: https://dev.coder.com/tasks/${TASK_NAME}
243+
EOF
244+
)
245+
246+
# Update the comment with task link
247+
gh api \
248+
--method PATCH \
249+
"/repos/${GITHUB_REPOSITORY}/issues/comments/${COMMENT_ID}" \
250+
-f body="${COMMENT_BODY}"
251+
225252
-name:Wait for task completion and get results
226253
id:get-results
227254
env:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp