From fe4d77aac52a62943726096f51ebed6d8287a78f Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sun, 22 Nov 2026 11:24:11 -0800 Subject: [PATCH] chore(ci): add org-wide GitHub Actions CLA workflow --- .github/workflows/cla.yml | 42 +++++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) 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..dcd4af8 --- /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/CONTRIBUTING.md b/CONTRIBUTING.md index 94e6ff8..6b353d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,7 +33,7 @@ Help us keep a healthy and open community. We expect all participants in this pr ## Submitting a PR Before you begin: -* Read and sign the [NativeScript Contribution License Agreement](http://www.nativescript.org/cla). +* Read 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`. * Make sure there is an issue for the bug or feature you will be working on. Following these steps is the best way to get you code included in the project: