To enable the CLA check for myrepo, follow these steps:
- Create personal access token (PAT): https://github.com/settings/personal-access-tokens/new
- Repository access:
luneutic/cla - Repository permissions
- Contents:
read-write
- Contents:
- Repository access:
- myrepo: Add the PAT to Action secrets https://github.com/luneutic/myrepo/settings/secrets/actions/new
- Name:
CLA_REPO_TOKEN
- Name:
- myrepo: Create
.github/workflows/cla.ymlwith the contentname: Call CLA Assistant on: issue_comment: types: [created] pull_request: types: [opened, closed, synchronize] jobs: call-shared: uses: luneutic/cla/.github/workflows/cla.yml@main permissions: actions: write contents: read pull-requests: write statuses: write secrets: CLA_REPO_TOKEN: ${{ secrets.CLA_REPO_TOKEN }}
The CLA was adapted from Signal Messenger and intuitem.
The GitHub Action workflow primarily uses the CLA Assistant GitHub Action.