-
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (23 loc) · 940 Bytes
/
issue_reminder.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
name: Issue Reminder
on:
issues:
types: [opened]
jobs:
issue_comment:
if: |
(github.repository == 'AlexRogalskiy/ws-documents')
runs-on: ubuntu-latest
steps:
- name: Comment on issue
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
var url = 'https://github.com/AlexRogalskiy/ws-documents/blob/master/.github/TROUBLESHOOTING.md'
var msg = `Thank you for opening an issue. If this issue is related to a bug, please follow the steps and provide the information outlined in the [Troubleshooting Guide](${url}). Failure to follow these instructions may result in automatic closing of this issue.`
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: msg
})