Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ 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"
uses: "cla-assistant/github-action@v2.4.0"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PERSONAL_ACCESS_TOKEN: "${{ secrets.PRO_ACCESS_TOKEN }}"
Expand All @@ -26,4 +28,16 @@ jobs:
path-to-signatures: "etc/cla-signatures/signatures.json"
path-to-document: "https://github.com/keploy/writers-program/tree/main/.github/CLA.md"
branch: "cla-signatures"
allowlist: "keploy-bot,renovate"
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 }}