diff --git a/.github/workflows/org-bot.yml b/.github/workflows/org-bot.yml index 4889e87..1080faa 100644 --- a/.github/workflows/org-bot.yml +++ b/.github/workflows/org-bot.yml @@ -45,12 +45,12 @@ jobs: - name: Post welcome comment uses: actions/github-script@v7 - env: - BOT_MESSAGE: | - 👋 Hello! Thanks for your contribution. We will review this and get back to you as soon as possible. — th30d4y with: script: | - const message = process.env.BOT_MESSAGE.trim(); + const message = + context.eventName === "issues" + ? "👋 Thank you for opening this issue. We will review it and get back to you soon. — th30d4y" + : "👋 Hello! Thanks for your contribution. We will review this and get back to you as soon as possible. — th30d4y"; const issueNumber = context.issue.number; const owner = context.repo.owner; const repo = context.repo.repo;