forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.09 KB
/
parsetree-change.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
36
37
38
39
name: Parsetree Updated
on:
pull_request:
paths:
- 'parsing/parsetree.mli'
- 'parsing/asttypes.mli'
- 'parsing/location.mli'
- 'parsing/longident.mli'
- 'parsing/parse.mli'
- 'parsing/pprintast.mli'
jobs:
comment-and-label:
if: ${{! contains(github.event.pull_request.labels.*.name, 'parsetree-change')}}
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Notify ppxlib maintainers
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'CC @ocaml/ppxlib-dev'
})
- name: Label PR
uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['parsetree-change']
})