Skip to content

Commit 95324ec

Browse files
authored
Add GitHub Action workflow for F5 CLA integration (#754)
1 parent 2ea70aa commit 95324ec

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/f5-cla.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: F5 CLA
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened, closed, synchronize]
8+
permissions: read-all
9+
jobs:
10+
f5-cla:
11+
name: F5 CLA
12+
runs-on: ubuntu-22.04
13+
permissions:
14+
actions: write
15+
pull-requests: write
16+
statuses: write
17+
steps:
18+
- name: Run F5 Contributor License Agreement (CLA) assistant
19+
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'
20+
uses: contributor-assistant/github-action@9340315624c6e16cef1f2c63bdeb0f0c49c6f474 # v2.4.0
21+
with:
22+
# Any pull request targeting the following branch will trigger a CLA check.
23+
branch: 'main'
24+
# Path to the CLA document.
25+
path-to-document: 'https://github.com/f5/.github/blob/main/CLA/cla-markdown.md'
26+
# Custom CLA messages.
27+
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:'
28+
custom-pr-sign-comment: 'I have hereby read the F5 CLA and agree to its terms'
29+
custom-allsigned-prcomment: '✅ All required contributors have signed the F5 CLA for this PR. Thank you!'
30+
# Remote repository storing CLA signatures.
31+
remote-organization-name: 'f5'
32+
remote-repository-name: 'f5-cla-data'
33+
path-to-signatures: 'signatures/beta/signatures.json'
34+
# Comma separated list of usernames for maintainers or any other individuals who should not be prompted for a CLA.
35+
allowlist: lucacome, pleshakov, bot*
36+
# Do not lock PRs after a merge.
37+
lock-pullrequest-aftermerge: false
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
PERSONAL_ACCESS_TOKEN: ${{ secrets.F5_CLA_TOKEN }}

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ issue template.
6363
type of issue it is (bug, feature request, etc) and to determine the milestone. Please see the [Issue
6464
Lifecycle](ISSUE_LIFECYCLE.md) document for more information.
6565

66+
### F5 Contributor License Agreement (CLA)
67+
68+
F5 requires all external contributors to agree to the terms of the F5 CLA
69+
(available [here](https://github.com/f5/.github/blob/main/CLA/cla-markdown.md)) before any of their changes can be
70+
incorporated into an F5 Open Source repository.
71+
72+
If you have not yet agreed to the F5 CLA terms and submit a PR to this repository, a bot will prompt you to view and
73+
agree to the F5 CLA. You will have to agree to the F5 CLA terms through a comment in the PR before any of your changes
74+
can be merged. Your agreement signature will be safely stored by F5 and no longer be required in future PRs.
75+
6676
## Style Guides
6777

6878
### Git Style Guide

0 commit comments

Comments
 (0)