| 1 |
name: Parsetree Updated |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
paths: |
| 6 |
- 'parsing/parsetree.mli' |
| 7 |
- 'parsing/asttypes.mli' |
| 8 |
- 'parsing/location.mli' |
| 9 |
- 'parsing/longident.mli' |
| 10 |
- 'parsing/parse.mli' |
| 11 |
- 'parsing/pprintast.mli' |
| 12 |
|
| 13 |
jobs: |
| 14 |
comment-and-label: |
| 15 |
if: ${{! contains(github.event.pull_request.labels.*.name, 'parsetree-change')}} |
| 16 |
permissions: |
| 17 |
pull-requests: write |
| 18 |
runs-on: ubuntu-latest |
| 19 |
steps: |
| 20 |
- name: Notify ppxlib maintainers |
| 21 |
uses: actions/github-script@v7 |
| 22 |
with: |
| 23 |
script: | |
| 24 |
github.rest.issues.createComment({ |
| 25 |
issue_number: context.issue.number, |
| 26 |
owner: context.repo.owner, |
| 27 |
repo: context.repo.repo, |
| 28 |
body: 'CC @ocaml/ppxlib-dev' |
| 29 |
}) |
| 30 |
- name: Label PR |
| 31 |
uses: actions/github-script@v7 |
| 32 |
with: |
| 33 |
script: | |
| 34 |
github.rest.issues.addLabels({ |
| 35 |
issue_number: context.issue.number, |
| 36 |
owner: context.repo.owner, |
| 37 |
repo: context.repo.repo, |
| 38 |
labels: ['parsetree-change'] |
| 39 |
}) |