Fix logs and variable
This commit is contained in:
parent
0884539c91
commit
6be1284736
|
@ -3,7 +3,7 @@ const zh = require("../zh-client"),
|
||||||
{ INPUT_REVIEW_COLUMN, INPUT_INPROG_COLUMN, INPUT_NEXT_COLUMN } = process.env;
|
{ INPUT_REVIEW_COLUMN, INPUT_INPROG_COLUMN, INPUT_NEXT_COLUMN } = process.env;
|
||||||
|
|
||||||
exports.milestoned = async function handleMilestonedIssue(tools) {
|
exports.milestoned = async function handleMilestonedIssue(tools) {
|
||||||
tools.log.info("Handling assigned issue...");
|
tools.log.info("Handling milestoned issue...");
|
||||||
|
|
||||||
const failures = [],
|
const failures = [],
|
||||||
{ payload } = tools.context;
|
{ payload } = tools.context;
|
||||||
|
@ -23,16 +23,16 @@ exports.milestoned = async function handleMilestonedIssue(tools) {
|
||||||
}
|
}
|
||||||
// Move it to the NEXT column
|
// Move it to the NEXT column
|
||||||
try {
|
try {
|
||||||
tools.log.info(`Moving issue #${issueNo} to in progress...`);
|
tools.log.info(`Moving issue #${issueNo} to next...`);
|
||||||
|
|
||||||
await zh.issues.moveIssueBetweenPipelines(payload.repository.id, issueNo, {
|
await zh.issues.moveIssueBetweenPipelines(payload.repository.id, issueNo, {
|
||||||
pipeline_id: NEXT_INPROG_COLUMN,
|
pipeline_id: INPUT_NEXT_COLUMN,
|
||||||
position: "top",
|
position: "top",
|
||||||
});
|
});
|
||||||
|
|
||||||
tools.log.info(`Moved #${issueNo} to in progress.`);
|
tools.log.info(`Moved #${issueNo} to in next.`);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
failures.push(`Failed to move #${issueNo} to in progress: ${e}`);
|
failures.push(`Failed to move #${issueNo} to in next: ${e}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue