mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
ci: keep clownfish command reactions owned
This commit is contained in:
@@ -61,6 +61,10 @@ jobs:
|
||||
commandLine.startsWith("/autoclose ") ||
|
||||
commandLine === "/clownfish autoclose" ||
|
||||
commandLine.startsWith("/clownfish autoclose ");
|
||||
const isClownfishCommand =
|
||||
isAutocloseCommand ||
|
||||
commandLine === "/clownfish automerge" ||
|
||||
commandLine.startsWith("/clownfish automerge ");
|
||||
|
||||
if (!issue.pull_request && !isAutocloseCommand) {
|
||||
core.info("Skipping non-autoclose command reaction because the comment is not on a pull request.");
|
||||
@@ -89,6 +93,12 @@ jobs:
|
||||
return;
|
||||
}
|
||||
|
||||
const tokenIsClownfishApp = "${{ steps.clownfish-token.outputs.token != '' }}" === "true";
|
||||
if (isClownfishCommand && !tokenIsClownfishApp) {
|
||||
core.info("Skipping Clownfish command reaction because the Clownfish App token is unavailable.");
|
||||
return;
|
||||
}
|
||||
|
||||
async function react(content) {
|
||||
try {
|
||||
await github.rest.reactions.createForIssueComment({
|
||||
|
||||
Reference in New Issue
Block a user