Skip to content

Commit

Permalink
silence issue open response
Browse files Browse the repository at this point in the history
  • Loading branch information
StRigaud committed Sep 4, 2024
1 parent 4255809 commit d2fac7f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,16 @@ closes #${issue.number}
module.exports = (app) => {
app.log.info("cle-RoBoTo is loaded!");

// Removed for now because it's not needed
// when an issue is opened, greet the author
app.on("issues.opened", async (context) => {
const user = context.payload.issue.user.login;
const issueComment = context.issue({
body: "Hello @" + user + "! Thanks for opening this issue. We will get back to you asap.",
});
return context.octokit.issues.createComment(issueComment);
});
// app.on("issues.opened", async (context) => {
// const user = context.payload.issue.user.login;
// const issueComment = context.issue({
// body: "Hello @" + user + "! Thanks for opening this issue. We will get back to you asap.",
// });

// return context.octokit.issues.createComment(issueComment);
// });

// dispatch event from CLIc release workflow
app.on("repository_dispatch", async (context) => {
Expand Down

0 comments on commit d2fac7f

Please sign in to comment.