Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cla github workflow #2

Merged
merged 1 commit into from
May 7, 2024
Merged
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
37 changes: 37 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
permissions:
contents: read
pull-requests: write
jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- 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'
# Beta Release
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOT_GITHUB_TOKEN }}
with:
path-to-signatures: 'signatures/v1/cla.json'
path-to-document: 'https://docs.faros.ai/docs/individual-cla'
# branch should not be protected
branch: 'main'
allowlist: cjwooo,tovbinm,thomas-gerber,ypc-faros,dependabot*,sonarcloud*

#below are the optional inputs - If the optional inputs are not given, then default values will be taken
remote-organization-name: faros-ai
remote-repository-name: cla
create-file-commit-message: 'Creating/updating file for storing CLA Signatures'
signed-commit-message: '$contributorName has signed the CLA in #$pullRequestNo'
custom-notsigned-prcomment: 'Thank you for your submission, we really appreciate it. Faros can accept contrbutions only from authors who accepted and signed [Contributor License Agreement](https://docs.faros.ai/docs/individual-cla). Please kindly read it and accept by posting the following comment on this PR:'
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
lock-pullrequest-aftermerge: true
Loading