forked from keploy/keploy
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·42 lines (37 loc) · 1.59 KB
/
Copy pathcla.yml
File metadata and controls
executable file
·42 lines (37 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "CLA Assistant"
on:
issue_comment:
types:
- "created"
pull_request_target:
types:
- "opened"
- "closed"
- "synchronize"
jobs:
cla-assistant:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: "CLA Assistant"
if: "(github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'"
uses: "cla-assistant/github-action@v2.1.3-beta"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PERSONAL_ACCESS_TOKEN: "${{ secrets.PRO_ACCESS_TOKEN }}"
with:
remote-organization-name: "keploy"
remote-repository-name: "keploy"
path-to-signatures: "etc/cla-signatures/signatures.json"
path-to-document: "https://github.com/keploy/keploy/tree/main/.github/CLA.md"
branch: "cla-signatures"
allowlist: "keploy-bot,renovate"
- name: "Post Failure Instructions"
if: failure() && github.event_name == 'pull_request_target'
run: |
gh pr comment ${{ github.event.pull_request.number }} --body "**The CLA check failed.** Please ensure you have:
- Signed the CLA by commenting **'I have read the CLA Document and I hereby sign the CLA.'**
- Used the correct email address in your commits (matches the one you used to sign the CLA).
After fixing these issues, comment **'recheck'** to trigger the workflow again."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}