-
Notifications
You must be signed in to change notification settings - Fork 14
Fix ref input, eyes reaction handling, and docs consistency in fix workflows #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,16 +105,24 @@ jobs: | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | ||
| with: | ||
| script: | | ||
| await github.rest.reactions.deleteForIssueComment({ | ||
| const { data: reactions } = await github.rest.reactions.listForIssueComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| comment_id: context.payload.comment.id, | ||
| reaction_id: (await github.rest.reactions.listForIssueComment({ | ||
| comment_id: context.payload.comment.id | ||
| }); | ||
|
||
|
|
||
| const eyesReaction = reactions.find( | ||
| (r) => r.content === 'eyes' && r.user && r.user.type === 'Bot' | ||
greenc-FNAL marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ); | ||
|
|
||
| if (eyesReaction && eyesReaction.id) { | ||
| await github.rest.reactions.deleteForIssueComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| comment_id: context.payload.comment.id | ||
| })).data.find(r => r.content === 'eyes' && r.user.type === 'Bot')?.id | ||
| }).catch(() => {}); | ||
| comment_id: context.payload.comment.id, | ||
| reaction_id: eyesReaction.id | ||
| }).catch(() => {}); | ||
| } | ||
|
|
||
| - name: Add completion reaction | ||
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | ||
|
|
@@ -143,7 +151,7 @@ jobs: | |
| if [ "$pushed" == "true" ]; then | ||
| messages+=("✅ $name fixes pushed (commit $sha_short)") | ||
| elif [ -n "$patch_name" ]; then | ||
| messages+=("⚠️ $name fixes available as patch artifact \"$patch_name\". Download the artifact from this workflow run, then run: \`git apply $patch_name\` from the repository root.") | ||
| messages+=("⚠️ $name fixes available as a patch file (\`$patch_name\`) in the \"fix-patch\" artifact. Download the artifact from this workflow run, then run: \`git apply $patch_name\` from the repository root.") | ||
| fi | ||
| fi | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.