diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 00000000..add26614 --- /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 a70762d8..d4e5b939 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 aebe61a2..85fb147c 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