Skip to content

Commit c1100ce

Browse files
authored
Merge pull request #532 from microsoft/ntrappe-bot-patch
Update to new syntax for policy
2 parents e5bb769 + 97e1d3c commit c1100ce

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/policy-reminder.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ on:
77
jobs:
88
policy-reminder:
99
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
1012
steps:
1113
- name: Remind New Issues of Support Policy
12-
uses: actions/github-script@v6
13-
with:
14-
script: |
15-
const issueComment = context.issue({
16-
body: `Thank you for creating an issue. Please note that GitHub is not an official
17-
channel for Microsoft support requests. To create an official support request,
18-
please open a ticket
19-
[here](https://learn.microsoft.com/en-us/services-hub/unified/support/open-support-requests).
20-
Microsoft and the GitHub community strive to provide a best effort in answering
21-
questions and supporting Issues on GitHub.`
22-
});
23-
github.issues.createComment(issueComment);
14+
run: gh issue comment "$NUMBER" --body "$BODY"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
GH_REPO: ${{ github.repository }}
18+
NUMBER: ${{ github.event.issue.number }}
19+
BODY: >
20+
**Thank you for creating an Issue**. Please note that GitHub is not an official
21+
channel for Microsoft support requests. To create an official support request,
22+
please open a ticket [here](https://learn.microsoft.com/en-us/services-hub/unified/support/open-support-requests).
23+
Microsoft and the GitHub Community strive to provide a best effort in answering
24+
questions and supporting Issues on GitHub.

0 commit comments

Comments
 (0)