From f757a4deafca93b4d197f99e5c26040698fe7722 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Thu, 3 Apr 2025 16:50:22 -0400 Subject: [PATCH] add a Contributer License Agreement workflow This adds a workflow to point new contributors to the CLA and check they have accepted it prior to landing PRs. Since the individual CLA agreement refers to executing a Corporate CLA if needed, I added a note on how to execute one. --- .github/cla/individual-cla.md | 4 +++- .github/workflows/cla.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cla.yml diff --git a/.github/cla/individual-cla.md b/.github/cla/individual-cla.md index 04de3f89e5..e0efe2c151 100644 --- a/.github/cla/individual-cla.md +++ b/.github/cla/individual-cla.md @@ -1,6 +1,8 @@ # Individual Contributor License Agreement ("Agreement"), v1.0 -(based on https://www.apache.org/licenses/icla.pdf) +(Based on https://www.apache.org/licenses/icla.pdf by the Apache +Foundation. Contact support@getgrist.com if you wish to execute a +Corporate CLA.) Thank you for your interest in contributing to software projects made available by Grist Labs Inc ("Grist"). To clarify the intellectual diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000000..4c0bf7d33e --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,29 @@ +# Workflow body from https://github.com/contributor-assistant/github-action + +name: "CLA Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + CLAAssistant: + 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' + uses: contributor-assistant/github-action@v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: '.github/cla/signatures.json' + path-to-document: 'https://github.com/gristlabs/grist-core/blob/main/.github/cla/individual-cla.md' + branch: 'main' + allowlist: github-actions[bot],dependabot[bot]