-
Notifications
You must be signed in to change notification settings - Fork 1.8k
34 lines (31 loc) · 1.39 KB
/
contribution-approved.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
name: Contribution triage - proposal accepted and community contribution
on:
issues:
types: [labeled, opened]
permissions:
issues: write
jobs:
add-comment:
name: Add comment to with proposal accepted and community contribution
runs-on: ubuntu-latest
if:
${{ ( contains(github.event.label.name, format('proposal{0} accepted',
':')) && contains(github.event.issue.labels.*.name, format('community
contribution')) ) || ( contains(github.event.label.name, format('community
contribution')) && contains(github.event.issue.labels.*.name,
format('proposal{0} accepted', ':')) )}}
steps:
- name: Log github event
env:
$GITHUB_CONTEXT_LABELS: ${{ toJson(github.event.label) }}
run: echo "$GITHUB_CONTEXT_LABELS"
- name: Add comment
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 #v6.4.1
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'The Carbon team has accepted this proposal! Our team doesn’t have the cycles to work on this now, so we are requesting community contributors. Please see the labels for roles that are needed. If you are willing to help out, comment below and we will get in touch!'
})