Skip to content

prequel-dev/clabot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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/[email protected]

Screenshot from 2025-06-02 14-40-48

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages