This commit is contained in:
@@ -20,3 +20,4 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
debug: 'true'
|
||||
bot_route: 'random'
|
||||
Vendored
+10
-1
@@ -32877,19 +32877,28 @@ async function run() {
|
||||
const githubToken = process.env.GITHUB_TOKEN;
|
||||
|
||||
if (!commentBody) {
|
||||
if (!debug) {
|
||||
core.setFailed('No comment body found in the event payload');
|
||||
return;
|
||||
}
|
||||
|
||||
const task =
|
||||
core.info('No comment body found in the event payload, continuing because debug is enabled');
|
||||
}
|
||||
|
||||
let task =
|
||||
(await fetchFirstIssueComment(repoName, issueNumber, githubToken, serverUrl)) ||
|
||||
sanitizeTask(commentBody);
|
||||
|
||||
if (!task) {
|
||||
if (!debug) {
|
||||
core.setFailed('Unable to determine the task to send to the agent');
|
||||
return;
|
||||
}
|
||||
|
||||
core.info('Unable to determine the task, using debug placeholder');
|
||||
task = '[debug] empty task';
|
||||
}
|
||||
|
||||
const requestPayload = {
|
||||
type: 'input',
|
||||
route: botRoute,
|
||||
|
||||
@@ -45,19 +45,28 @@ async function run() {
|
||||
const githubToken = process.env.GITHUB_TOKEN;
|
||||
|
||||
if (!commentBody) {
|
||||
if (!debug) {
|
||||
core.setFailed('No comment body found in the event payload');
|
||||
return;
|
||||
}
|
||||
|
||||
const task =
|
||||
core.info('No comment body found in the event payload, continuing because debug is enabled');
|
||||
}
|
||||
|
||||
let task =
|
||||
(await fetchFirstIssueComment(repoName, issueNumber, githubToken, serverUrl)) ||
|
||||
sanitizeTask(commentBody);
|
||||
|
||||
if (!task) {
|
||||
if (!debug) {
|
||||
core.setFailed('Unable to determine the task to send to the agent');
|
||||
return;
|
||||
}
|
||||
|
||||
core.info('Unable to determine the task, using debug placeholder');
|
||||
task = '[debug] empty task';
|
||||
}
|
||||
|
||||
const requestPayload = {
|
||||
type: 'input',
|
||||
route: botRoute,
|
||||
|
||||
Reference in New Issue
Block a user