From 6a949d567397a221d0111592fd4b9af1241e2033 Mon Sep 17 00:00:00 2001 From: Paul Fremantle Date: Mon, 12 Oct 2026 16:19:55 +0100 Subject: [PATCH] Enforce the CLA with CLA Assistant Lite First-time contributors sign by replying on their pull request; signatures are kept on the cla-signatures branch. CLA.md and CONTRIBUTING.md describe the signing comment. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WQxkgU7ZhWY8GruoFzkUjx --- .github/workflows/cla.yml | 33 +++++++++++++++++++++++++++++++++ CLA.md | 13 +++++++++---- CONTRIBUTING.md | 8 ++++++-- 3 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 000000000..add26614e --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,33 @@ +# CLA Assistant Lite: asks first-time contributors to sign CLA.md on their pull +# request and records signatures on the cla-signatures branch. +name: CLA + +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + +jobs: + cla: + runs-on: ubuntu-latest + if: >- + github.event_name == 'pull_request_target' || + (github.event.issue.pull_request && + (github.event.comment.body == 'recheck' || + github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA')) + steps: + - uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-document: https://github.com/pzfreo/draftwright/blob/main/CLA.md + path-to-signatures: signatures/cla.json + branch: cla-signatures + allowlist: pzfreo,dependabot[bot],github-actions[bot],claude[bot] diff --git a/CLA.md b/CLA.md index a70762d88..d4e5b9390 100644 --- a/CLA.md +++ b/CLA.md @@ -109,10 +109,15 @@ become aware that would make these representations inaccurate in any respect. ## How to accept -By submitting a pull request, patch, or other Contribution to draftwright, You -indicate Your agreement to this Contributor License Agreement for that and all -future Contributions, unless You state otherwise in writing at the time of -submission. +The first time You open a pull request, a bot asks You to accept this Agreement +by replying on the pull request with: + +> I have read the CLA Document and I hereby sign the CLA + +Your signature is recorded once and covers that and all future Contributions. +By submitting any other Contribution (a patch, an issue with code, or +correspondence) You also indicate Your agreement, unless You state otherwise in +writing at the time of submission. If You are contributing on behalf of an organisation that wishes to record its agreement explicitly, or if You need an entity-level CLA covering employees, diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aebe61a2f..85fb147c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,8 +11,12 @@ releases, all contributors must agree to the [Contributor License Agreement (CLA.md)](CLA.md). You keep the copyright to your work — the CLA grants a licence, not an -assignment. **By opening a pull request you indicate your agreement to the CLA** -for that and all future contributions. Please read it before submitting. +assignment. On your first pull request a bot asks you to sign by replying: + +> I have read the CLA Document and I hereby sign the CLA + +Your signature covers that and all future contributions, and pull requests cannot +merge until it is recorded. Please read the CLA before submitting. ## Development