Skip to content

Commit 95edd92

Browse files
Mikhusclaude
andcommitted
ci: add CLA Assistant Lite workflow
Require contributors to sign the @imqueue Contribution Terms on each PR. Signatures stored per-repo (signatures/version1/cla.json) via GITHUB_TOKEN; no external app or PAT required. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 719945b commit 95edd92

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/cla.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CLA Assistant
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened, closed, synchronize]
8+
9+
permissions:
10+
actions: write
11+
contents: write
12+
pull-requests: write
13+
statuses: write
14+
15+
jobs:
16+
cla:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: CLA Assistant
20+
if: >-
21+
(github.event.comment.body == 'recheck' ||
22+
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') ||
23+
github.event_name == 'pull_request_target'
24+
uses: contributor-assistant/github-action@v2.6.1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
path-to-signatures: 'signatures/version1/cla.json'
29+
path-to-document: 'https://github.com/imqueue/.github/blob/master/CONTRIBUTION-TERMS.md'
30+
branch: 'master'
31+
allowlist: 'dependabot[bot],*[bot]'
32+
custom-notsigned-prcomment: >-
33+
Thank you for your contribution to **@imqueue**. Before this pull
34+
request can be merged, please read the
35+
[@imqueue Contribution Terms](https://github.com/imqueue/.github/blob/master/CONTRIBUTION-TERMS.md)
36+
and sign them by posting the following comment exactly:
37+
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
38+
custom-allsigned-prcomment: 'All contributors have signed the @imqueue Contribution Terms. ✅'

0 commit comments

Comments
 (0)