-
Notifications
You must be signed in to change notification settings - Fork 30
35 lines (30 loc) · 1.24 KB
/
welcome-new-instance.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
31
32
33
34
35
name: Welcome message
on:
issues:
types: [opened]
jobs:
replycomment:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
if: contains(github.event.issue.labels.*.name, 'instance add')
- uses: actions/setup-node@v3
if: contains(github.event.issue.labels.*.name, 'instance add')
with:
node-version: 16
- uses: actions/github-script@v6
if: contains(github.event.issue.labels.*.name, 'instance add')
with:
script: |
var replyComment =
['Please consider joining our Matrix room for public instance maintainers by joining our Matrix room: https://matrix.to/#/#searxng:matrix.org',
'then pinging @ unixfox, @ dalf and @ mrpaulblack for asking to be invited to the Matrix room.',
'We discuss troubles managing a public instance, sharing some advices (like how to protect against bots), announcing big changes in searxng and more.'
].join('\n');
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: replyComment
})