From 5ac1d6336a1663bd0f063f163ce288ed7c60362c Mon Sep 17 00:00:00 2001 From: Asaf Shushan <46423711+asafs932@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:34:07 +0300 Subject: [PATCH] Update auto-reply.yml --- .github/workflows/auto-reply.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-reply.yml b/.github/workflows/auto-reply.yml index 7398e9d..05e2b61 100644 --- a/.github/workflows/auto-reply.yml +++ b/.github/workflows/auto-reply.yml @@ -10,8 +10,26 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 + - name: Choose random reply message + id: choose_message + run: | + reply_messages=( + "Thank you for raising this issue! We will look into it shortly." + "We appreciate your feedback. Our team will investigate this issue." + "Your issue has been noted. We'll get back to you soon." + "Thanks for reporting this. We'll work on resolving it as soon as possible." + "Thanks for reporting this. Stay tuned for updates!" + "Acknowledged. We'll review the issue and respond soon." + "Thanks for bringing this to our attention. We will investigate your issue soon!" + "We will investigate your issue soon. Thanks for your patience." + "Noted. Expect updates on your issue shortly." + "Your issue is important to us. We will look into it shortly." + ) + random_index=$((RANDOM % ${#reply_messages[@]})) + echo "::set-output name=message::${reply_messages[$random_index]}" + - name: Reply to issue using GitHub CLI run: | - gh issue comment ${{ github.event.issue.number }} --body "Thank you for raising this issue! We will look into it shortly." + gh issue comment ${{ github.event.issue.number }} --body "${{ steps.choose_message.outputs.message }}" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}