https://github.com/prequel-dev/clabot
https://github.com/prequel-dev/clabot
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prequel-dev/clabot
- Owner: prequel-dev
- License: apache-2.0
- Created: 2025-06-02T16:35:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-02T19:41:05.000Z (about 1 year ago)
- Last Synced: 2025-06-03T08:10:22.390Z (about 1 year ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clabot
This is a simple CLA bot that can be used in a GitHub action to automate the process of new contributors signing a Contributors License Agreement.
CLA signers can be added to a `cla-signers.txt` file in the GitHub repository or to a Google Spreadsheet generated by a Google Form.
Once signers have completed the form (or the maintainer has updated the `cla-signers.txt` file), then anyone can re-check the CLA on a PR with a comment that begins with `@cla-bot check`.
```Yaml
name: CLA checker
on:
pull_request:
types: [opened, reopened, synchronize]
issue_comment:
types: [created]
permissions:
statuses: write
pull-requests: write
contents: read
jobs:
cla:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run cla-bot
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
SIGNERS_PATH: cla-signers.txt
GOOGLE_SHEET_URL: "https://docs.google.com/spreadsheets/d/1A7epcYPGAsYNcUfD3qcWpyHQjLQgUJkPlcQr7Y-4e3E/export?format=csv&gid=1088589458"
COMMENT_MSG: "Welcome to the Problem Detection Community and thank you for your pull request!\n\nNew contributors need to sign the Contributor License Agreement. In order for us to review and merge your code, please click the [CLA link](https://forms.gle/PfhcfopPNY2rho6V6) and fill out the form. Then comment on this PR with `@cla-bot check`."
run: |
go run github.com/prequel-dev/clabot/cmd@v0.0.4
```
