From 165c9e4a3339e6a7b4d5da7eb65267c329ff21d7 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sun, 22 Nov 2026 11:19:27 -0800 Subject: [PATCH] chore(ci): add org-wide GitHub Actions CLA workflow --- .github/workflows/cla.yml | 42 ++++++++++++++++++++++++++++++ metadata-generator/CONTRIBUTING.md | 2 +- platforms/android/CONTRIBUTING.md | 2 +- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 000000000..dcd4af8fc --- /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 diff --git a/metadata-generator/CONTRIBUTING.md b/metadata-generator/CONTRIBUTING.md index f729e578d..e618a29ca 100644 --- a/metadata-generator/CONTRIBUTING.md +++ b/metadata-generator/CONTRIBUTING.md @@ -5,7 +5,7 @@ We are currently rewriting major part of the metadata generator for iOS in C++, ## Before You Start -Anyone wishing to contribute to the NativeScript project MUST read & sign the [NativeScript Contribution License Agreement](http://www.nativescript.org/cla). The NativeScript team cannot accept pull requests from users who have not signed the CLA first. +Anyone wishing to contribute to the NativeScript project MUST read & sign the [NativeScript Contributor License Agreement (CLA)](https://github.com/NativeScript/.github/blob/master/CLA.md) (first-time contributors can sign directly on their pull request by commenting `I have read the CLA and I hereby sign the CLA`). The NativeScript team cannot accept pull requests without a signed CLA. ## Introduction diff --git a/platforms/android/CONTRIBUTING.md b/platforms/android/CONTRIBUTING.md index 4d5801b1d..7cd798a61 100644 --- a/platforms/android/CONTRIBUTING.md +++ b/platforms/android/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Before You Start -Anyone wishing to contribute to the NativeScript project MUST read & sign the [NativeScript Contribution License Agreement](http://www.nativescript.org/cla). The NativeScript team cannot accept pull requests from users who have not signed the CLA first. +Anyone wishing to contribute to the NativeScript project MUST read & sign the [NativeScript Contributor License Agreement (CLA)](https://github.com/NativeScript/.github/blob/master/CLA.md) (first-time contributors can sign directly on their pull request by commenting `I have read the CLA and I hereby sign the CLA`). The NativeScript team cannot accept pull requests without a signed CLA. ## Introduction