-
Notifications
You must be signed in to change notification settings - Fork 16
30 lines (26 loc) · 900 Bytes
/
issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Auto-Reply to Issues
on:
issues:
types: [opened]
jobs:
auto-reply:
runs-on: ubuntu-latest
steps:
- name: Reply to issue
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueComment = `Thanks for using our software! We will look into and fix your issue asap also, if CS2 was recently updated wait for an up-to-date fix, cuz often game updates break cheats.`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
});
github.rest.issues.update({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['new']
});