Skip to content

Commit 1eb805f

Browse files
authored
Merge pull request #3 from th30d4y/copilot/fix-issue-posting-error
Use issue-specific professional acknowledgement in org bot comments
2 parents 342d2f5 + d77c283 commit 1eb805f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/org-bot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ jobs:
4545
4646
- name: Post welcome comment
4747
uses: actions/github-script@v7
48-
env:
49-
BOT_MESSAGE: |
50-
👋 Hello! Thanks for your contribution. We will review this and get back to you as soon as possible. — th30d4y
5148
with:
5249
script: |
53-
const message = process.env.BOT_MESSAGE.trim();
50+
const message =
51+
context.eventName === "issues"
52+
? "👋 Thank you for opening this issue. We will review it and get back to you soon. — th30d4y"
53+
: "👋 Hello! Thanks for your contribution. We will review this and get back to you as soon as possible. — th30d4y";
5454
const issueNumber = context.issue.number;
5555
const owner = context.repo.owner;
5656
const repo = context.repo.repo;

0 commit comments

Comments
 (0)