From e7dbbbafd8ff07ceab6201b326163c58fdd5cb24 Mon Sep 17 00:00:00 2001 From: Nicole Trappe Date: Tue, 3 Sep 2024 14:07:10 -0700 Subject: [PATCH] add workflow to remind users of support policy --- .github/workflows/policy-reminder.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/policy-reminder.yml diff --git a/.github/workflows/policy-reminder.yml b/.github/workflows/policy-reminder.yml new file mode 100644 index 0000000..35788f5 --- /dev/null +++ b/.github/workflows/policy-reminder.yml @@ -0,0 +1,23 @@ +name: Policy Reminder + +on: + issues: + types: [opened] + +jobs: + policy-reminder: + runs-on: ubuntu-latest + steps: + - name: Remind New Issues of Support Policy + uses: actions/github-script@v6 + with: + script: | + const issueComment = context.issue({ + body: `Thank you for creating an issue. Please note that GitHub is not an official + channel for Microsoft support requests. To create an official support request, + please open a ticket + [here](https://learn.microsoft.com/en-us/services-hub/unified/support/open-support-requests). + Microsoft and the GitHub community strive to provide a best effort in answering + questions and supporting Issues on GitHub.` + }); + github.issues.createComment(issueComment);