-
Notifications
You must be signed in to change notification settings - Fork 716
42 lines (39 loc) · 1.36 KB
/
support-command.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
on: issue_comment
name: handle the /support command
permissions: {}
jobs:
support_comment:
permissions:
issues: write
runs-on: ubuntu-20.04
steps:
- name: check for the /support command
id: command
uses: xt0rted/slash-command-action@v2
continue-on-error: true
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: support
reaction: "false"
allow-edits: "true"
permission-level: admin
- name: comment with support text
if: steps.command.outputs.command-name
uses: pacoxu/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
Hello, @${{ github.event.issue.user.login }} :robot: :wave:
You seem to have troubles using Kubernetes and kubeadm.
Note that our issue trackers **should not** be used for providing support to users.
There are special channels for that purpose.
Please see:
- https://github.com/kubernetes/kubeadm#support
- name: add support label
if: steps.command.outputs.command-name
uses: actions-ecosystem/action-add-labels@v1
with:
labels: kind/support
- name: close issue
if: steps.command.outputs.command-name
uses: peter-evans/close-issue@v1