From 766dac616c8451833f6d3535aad4d17cd06b0193 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sun, 22 Nov 2026 11:19:17 -0800 Subject: [PATCH] chore(ci): add org-wide GitHub Actions CLA workflow --- .github/PULL_REQUEST_TEMPLATE.md | 4 +-- .github/workflows/cla.yml | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cla.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f10437293c..5c0e932c0c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -9,9 +9,9 @@ To help the rest of the community review your change, please follow the instruct ## PR Checklist -- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. +- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/main/tools/notes/CONTRIBUTING.md#commit-messages. - [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it. -- [ ] You have signed the [CLA](http://www.nativescript.org/cla). +- [ ] You have read and signed the [CLA](https://github.com/NativeScript/.github/blob/master/CLA.md) (first-time contributors can sign directly on the PR by commenting `I have read the CLA and I hereby sign the CLA`). - [ ] All existing tests are passing: https://github.com/NativeScript/nativescript-cli/blob/master/CONTRIBUTING.md#contribute-to-the-code-base - [ ] Tests for the changes are included. diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000000..dcd4af8fc1 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,42 @@ +name: ✍️ CLA + +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + - closed + issue_comment: + types: + - created + - edited + - deleted + workflow_dispatch: + +permissions: + contents: read + +jobs: + cla: + name: CLA + if: >- + github.event_name == 'pull_request_target' || + github.event_name == 'workflow_dispatch' || + ( + github.event_name == 'issue_comment' && + github.event.issue.pull_request != null && + github.event.comment.user.type == 'User' && + ( + contains(github.event.comment.body, 'I hereby sign the CLA') || + ( + github.event.action == 'edited' && + contains(github.event.changes.body.from, 'I hereby sign the CLA') + ) + ) + ) + uses: NativeScript/.github/.github/workflows/cla.yml@master + permissions: + contents: write + pull-requests: write + actions: write