Skip to content

Commit 1423e00

Browse files
committed
chore(ci): add org-wide GitHub Actions CLA workflow
1 parent c232328 commit 1423e00

3 files changed

Lines changed: 47 additions & 5 deletions

File tree

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ To help the rest of the community review your change, please follow the instruct
99

1010
## PR Checklist
1111

12-
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages.
12+
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/main/tools/notes/CONTRIBUTING.md#commit-messages.
1313
- [ ] 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.
14-
- [ ] You have signed the [CLA](http://www.nativescript.org/cla).
15-
- [ ] All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/DevelopmentWorkflow.md#unit-testing.
16-
- [ ] Tests for the changes are included - https://github.com/NativeScript/NativeScript/blob/master/tools/notes/WritingUnitTests.md.
14+
- [ ] 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`).
15+
- [ ] All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/main/tools/notes/DevelopmentWorkflow.md#unit-testing.
16+
- [ ] Tests for the changes are included - https://github.com/NativeScript/NativeScript/blob/main/tools/notes/WritingUnitTests.md.
1717

1818
## What is the current behavior?
1919
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

‎.github/workflows/cla.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ✍️ CLA
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
issue_comment:
11+
types:
12+
- created
13+
- edited
14+
- deleted
15+
workflow_dispatch:
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
cla:
22+
name: CLA
23+
if: >-
24+
github.event_name == 'pull_request_target' ||
25+
github.event_name == 'workflow_dispatch' ||
26+
(
27+
github.event_name == 'issue_comment' &&
28+
github.event.issue.pull_request != null &&
29+
github.event.comment.user.type == 'User' &&
30+
(
31+
contains(github.event.comment.body, 'I hereby sign the CLA') ||
32+
(
33+
github.event.action == 'edited' &&
34+
contains(github.event.changes.body.from, 'I hereby sign the CLA')
35+
)
36+
)
37+
)
38+
uses: NativeScript/.github/.github/workflows/cla.yml@master
39+
permissions:
40+
contents: write
41+
pull-requests: write
42+
actions: write

‎tools/notes/CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Help us keep a healthy and open community. We expect all participants in this pr
3434
## <a name="pr"></a> Submitting a PR
3535

3636
Before you begin:
37-
* Read and sign the [NativeScript Contribution License Agreement](http://www.nativescript.org/cla).
37+
* 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`.
3838
* Make sure there is an issue for the bug or feature you will be working on.
3939

4040
Following these steps is the best way to get you code included in the project:

0 commit comments

Comments
 (0)