Skip to content

Commit 45ae61a

Browse files
committed
Use CLA GitHub Action
1 parent d308a00 commit 45ae61a

File tree

3 files changed

+55
-5
lines changed

3 files changed

+55
-5
lines changed

.github/workflows/f5-cla.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: F5 CLA
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
pull_request_target:
8+
types:
9+
- opened
10+
- closed
11+
- synchronize
12+
13+
concurrency:
14+
group: ${{ github.ref_name }}-cla
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
f5-cla:
22+
name: F5 CLA
23+
runs-on: ubuntu-22.04
24+
permissions:
25+
actions: write
26+
contents: read
27+
pull-requests: write
28+
statuses: write
29+
steps:
30+
- name: Run F5 Contributor License Agreement (CLA) assistant
31+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have hereby read the F5 CLA and agree to its terms') || github.event_name == 'pull_request_target'
32+
uses: contributor-assistant/github-action@f41946747f85d28e9a738f4f38dbcc74b69c7e0e # v2.5.1
33+
with:
34+
# Any pull request targeting the following branch will trigger a CLA check.
35+
branch: "main"
36+
# Path to the CLA document.
37+
path-to-document: "https://github.com/f5/.github/blob/main/CLA/cla-markdown.md"
38+
# Custom CLA messages.
39+
custom-notsigned-prcomment: "🎉 Thank you for your contribution! It appears you have not yet signed the F5 Contributor License Agreement (CLA), which is required for your changes to be incorporated into an F5 Open Source Software (OSS) project. Please kindly read the [F5 CLA](https://github.com/f5/.github/blob/main/CLA/cla-markdown.md) and reply on a new comment with the following text to agree:"
40+
custom-pr-sign-comment: "I have hereby read the F5 CLA and agree to its terms"
41+
custom-allsigned-prcomment: "✅ All required contributors have signed the F5 CLA for this PR. Thank you!"
42+
# Remote repository storing CLA signatures.
43+
remote-organization-name: "f5"
44+
remote-repository-name: "f5-cla-data"
45+
path-to-signatures: "signatures/beta/signatures.json"
46+
# Comma separated list of usernames for maintainers or any other individuals who should not be prompted for a CLA.
47+
allowlist: bjee19, kate-osborn, lucacome, salonichf5, sjberman, bot*
48+
# Do not lock PRs after a merge.
49+
lock-pullrequest-aftermerge: false
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
PERSONAL_ACCESS_TOKEN: ${{ secrets.F5_CLA_TOKEN }}

CONTRIBUTING.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ Before beginning development, familiarize yourself with the following documents:
101101

102102
## Contributor License Agreement
103103

104-
Individuals or business entities who contribute to this project must have completed and submitted
105-
the [F5® Contributor License Agreement](F5ContributorLicenseAgreement.pdf) prior to their code submission being included
106-
in this project. To submit, print out the [F5® Contributor License Agreement](F5ContributorLicenseAgreement.pdf), fill
107-
in the required sections, sign, scan, and send executed CLA to [email protected]. Make sure to include your github
108-
handle in the CLA email.
104+
Individuals or business entities who contribute to this project must sign the [F5® Contributor License Agreement](https://github.com/f5/.github/blob/main/CLA/cla-markdown.md).
105+
To sign it you need to follow the instructions provided by the CLA bot when you open a pull request.
106+
If you have not signed the CLA, the pull request will be blocked until you do so.

F5ContributorLicenseAgreement.pdf

-83.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)