forked from greatsuspender/thegreatsuspender
-
Notifications
You must be signed in to change notification settings - Fork 89
29 lines (26 loc) · 1.25 KB
/
IssueAssignment.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
name: Issue assignment
on:
issues:
types: [opened]
jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
- name: 'Auto-assign issue'
uses: pozil/[email protected]
with:
assignees: gioxx
numOfAssignee: 1
allowSelfAssign: true
- name: 'Comment on issue'
uses: actions/[email protected]
with:
script: |
const issueNumber = context.issue.number;
const message = "🇮🇹 Grazie per aver aperto la segnalazione. Ti informo, però, che il progetto è in fase di chiusura. Vedi https://github.com/gioxx/MarvellousSuspender/discussions/196.\n\n" +
"🇬🇧 Thank you for opening the issue. Please be advised, however, that the project will soon be closed due to Chrome V3 manifest and new policies. Please take a look here: https://github.com/gioxx/MarvellousSuspender/discussions/196.";
await github.rest.issues.createComment({
...context.repo,
issue_number: issueNumber,
body: message
});