-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (51 loc) · 2.01 KB
/
greetings.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Acknowledge
on:
issues:
types: [opened]
pull_request:
branches: [main]
types: [opened]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- name: Comment pull request
uses: actions/github-script@v6
if: github.event_name == 'pull_request' || github.user.login != 'jahvon' || github.user.login != 'dependabot[bot]'
with:
# Comment as whoever you want using `secrets.TAP_GITHUB_TOKEN` or GitHub bot if not set.
github-token: ${{ secrets.TAP_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
script: |
let output = `Hello!
Thank you for your contribution to [flow](https://github.com/jahvon/flow).
If you are fixing a bug, please reference the issue number in the description.
I will try to review your contribution as soon as possible.
Thanks,
Jahvon
`
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
- name: Comment issue
uses: actions/github-script@v6
if: github.event_name != 'pull_request' || github.user.login != 'jahvon' || github.user.login != 'dependabot[bot]'
with:
# Comment as whoever you want using `secrets.TAP_GITHUB_TOKEN` or GitHub bot if not set.
github-token: ${{ secrets.TAP_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
script: |
let output = `:wave: Hello!
Thank you for filing an issue.
If this is a bug report, please include relevant logs to help me debug the problem.
I will work on this as soon as possible.
Thanks,
Jahvon
`
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})