From ba86619af060c67b008ac9387d5d443850f50286 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 24 Oct 2024 15:26:19 -0600 Subject: [PATCH 1/2] fix: add cla --- .github/workflows/cla.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..00837e0 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,29 @@ +name: CLA Assistant +on: + workflow_call: + issue_comment: + types: [created] + pull_request_target: + types: [opened, synchronize] + +jobs: + CLA: + runs-on: ubuntu-latest + # This job should only run for pull request comments or pull request target events (not issue comments) + if: github.event.issue.pull_request || github.event_name == 'pull_request_target' + steps: + - name: CLA Assistant + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + # Version: 2.6.1 + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_BOTIFY_TOKEN }} + with: + path-to-signatures: '${{ github.repository }}/cla.json' + path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA.md' + branch: 'main' + remote-organization-name: 'Expensify' + remote-repository-name: 'CLA' + lock-pullrequest-aftermerge: false + allowlist: 'snyk-bot,OSBotify,os-botify[bot],imgbot[bot]' From ab2d9242bd8c672e39699b15026eb4bcdaa24dc0 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 24 Oct 2024 15:32:23 -0600 Subject: [PATCH 2/2] fix: use new script --- .github/workflows/cla.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 00837e0..dc4de9e 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,6 +1,6 @@ name: CLA Assistant + on: - workflow_call: issue_comment: types: [created] pull_request_target: @@ -8,22 +8,5 @@ on: jobs: CLA: - runs-on: ubuntu-latest - # This job should only run for pull request comments or pull request target events (not issue comments) - if: github.event.issue.pull_request || github.event_name == 'pull_request_target' - steps: - - name: CLA Assistant - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - # Version: 2.6.1 - uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_BOTIFY_TOKEN }} - with: - path-to-signatures: '${{ github.repository }}/cla.json' - path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA.md' - branch: 'main' - remote-organization-name: 'Expensify' - remote-repository-name: 'CLA' - lock-pullrequest-aftermerge: false - allowlist: 'snyk-bot,OSBotify,os-botify[bot],imgbot[bot]' + uses: Expensify/GitHub-Actions/.github/workflows/cla.yml@main + secrets: inherit