forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.04 KB
/
Copy pathcla.yml
File metadata and controls
41 lines (38 loc) · 1.04 KB
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
40
41
name: CLA
on:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review]
issue_comment:
types: [created]
merge_group:
types: [checks_requested]
permissions:
contents: read
pull-requests: write
statuses: write
jobs:
check:
if: |
github.repository == 'trinodb/trino' &&
(
github.event_name != 'issue_comment' ||
(
github.event.issue.pull_request &&
contains(fromJson('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.comment.author_association) &&
(
contains(github.event.comment.body, '@cla-bot check') ||
contains(github.event.comment.body, '/cla-check')
)
)
)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
- name: Check CLA
run: node .github/bin/check-cla.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}