generated from nhcarrigan/template
This commit is contained in:
@@ -44,7 +44,7 @@ export const processGithubEvent = async(
|
|||||||
}
|
}
|
||||||
const { action } = request.body;
|
const { action } = request.body;
|
||||||
await response.status(200).send({ message: "Payload received!" });
|
await response.status(200).send({ message: "Payload received!" });
|
||||||
if (action === "opened" && event === "issue" && isIssue(request.body)) {
|
if (action === "opened" && event === "issues" && isIssue(request.body)) {
|
||||||
await logger.log("info", "Processing new issue");
|
await logger.log("info", "Processing new issue");
|
||||||
const { issue, repository } = request.body;
|
const { issue, repository } = request.body;
|
||||||
const { number } = issue;
|
const { number } = issue;
|
||||||
@@ -70,7 +70,5 @@ export const processGithubEvent = async(
|
|||||||
repo: name,
|
repo: name,
|
||||||
reviewers: [ "naomi-lgbt" ],
|
reviewers: [ "naomi-lgbt" ],
|
||||||
});
|
});
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
await logger.log("warn", `Received ${event} ${String(action)} payload and do not know how to process.`);
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user