ci: keep clownfish command reactions owned · openclaw/openclaw@cf6e4d0
vincentkoc
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,6 +61,10 @@ jobs:
|
61 | 61 | commandLine.startsWith("/autoclose ") || |
62 | 62 | commandLine === "/clownfish autoclose" || |
63 | 63 | commandLine.startsWith("/clownfish autoclose "); |
| 64 | + const isClownfishCommand = |
| 65 | + isAutocloseCommand || |
| 66 | + commandLine === "/clownfish automerge" || |
| 67 | + commandLine.startsWith("/clownfish automerge "); |
64 | 68 | |
65 | 69 | if (!issue.pull_request && !isAutocloseCommand) { |
66 | 70 | core.info("Skipping non-autoclose command reaction because the comment is not on a pull request."); |
|
89 | 93 | return; |
90 | 94 | } |
91 | 95 | |
| 96 | + const tokenIsClownfishApp = "${{ steps.clownfish-token.outputs.token != '' }}" === "true"; |
| 97 | + if (isClownfishCommand && !tokenIsClownfishApp) { |
| 98 | + core.info("Skipping Clownfish command reaction because the Clownfish App token is unavailable."); |
| 99 | + return; |
| 100 | + } |
| 101 | + |
92 | 102 | async function react(content) { |
93 | 103 | try { |
94 | 104 | await github.rest.reactions.createForIssueComment({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。