|
4 | 4 | issue_comment:
|
5 | 5 | types: [created]
|
6 | 6 | pull_request_target:
|
7 |
| - types: [opened, synchronize] |
| 7 | + types: [opened, closed, synchronize] |
8 | 8 |
|
9 | 9 | jobs:
|
10 | 10 | CLA:
|
11 |
| - runs-on: ubuntu-latest |
12 |
| - # This job only runs for pull request comments or pull request target events (not issue comments) |
13 |
| - # It does not run for pull requests created by OSBotify |
14 |
| - if: ${{ github.event.issue.pull_request || (github.event_name == 'pull_request_target' && github.event.pull_request.user.login != 'OSBotify' && github.event.pull_request.user.login != 'imgbot[bot]') }} |
15 |
| - steps: |
16 |
| - - name: CLA comment check |
17 |
| - uses: actions-ecosystem/action-regex-match@9c35fe9ac1840239939c59e5db8839422eed8a73 |
18 |
| - id: sign |
19 |
| - with: |
20 |
| - text: ${{ github.event.comment.body }} |
21 |
| - regex: '\s*I have read the CLA Document and I hereby sign the CLA\s*' |
22 |
| - - name: CLA comment re-check |
23 |
| - uses: actions-ecosystem/action-regex-match@9c35fe9ac1840239939c59e5db8839422eed8a73 |
24 |
| - id: recheck |
25 |
| - with: |
26 |
| - text: ${{ github.event.comment.body }} |
27 |
| - regex: '\s*recheck\s*' |
28 |
| - - name: CLA Assistant |
29 |
| - if: ${{ steps.recheck.outputs.match != '' || steps.sign.outputs.match != '' || github.event_name == 'pull_request_target' }} |
30 |
| - # Version: 2.1.2-beta |
31 |
| - uses: cla-assistant/github-action@948230deb0d44dd38957592f08c6bd934d96d0cf |
32 |
| - env: |
33 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
34 |
| - PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOTIFY_TOKEN }} |
35 |
| - with: |
36 |
| - path-to-signatures: '${{ github.repository }}/cla.json' |
37 |
| - path-to-document: 'https://github.com/${{ github.repository }}/blob/main/contributingGuides/CLA.md' |
38 |
| - branch: 'main' |
39 |
| - remote-organization-name: 'Expensify' |
40 |
| - remote-repository-name: 'CLA' |
41 |
| - lock-pullrequest-aftermerge: false |
42 |
| - allowlist: OSBotify,snyk-bot |
| 11 | + uses: Expensify/GitHub-Actions/.github/workflows/cla.yml@main |
| 12 | + secrets: inherit |
0 commit comments