From 280a78c5afa4c507799985507ded386d75f70063 Mon Sep 17 00:00:00 2001 From: martinloretzzz <20306567+martinloretzzz@users.noreply.github.com> Date: Mon, 20 Oct 2025 13:38:36 +0000 Subject: [PATCH] Add CLA assistant --- .github/workflows/cla.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/cla.yaml diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml new file mode 100644 index 0000000..feb9c7c --- /dev/null +++ b/.github/workflows/cla.yaml @@ -0,0 +1,31 @@ +name: "CLA Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +permissions: + actions: write + contents: read + 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 }} + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_PAT }} # PAT with read/write access on NX-AI/CLA-signatures + with: + path-to-signatures: 'signatures/version1/cla.json' + path-to-document: 'https://github.com/NX-AI/CLA/blob/main/CLA.md' + branch: 'main' + allowlist: user1,bot* + + remote-organization-name: NX-AI + remote-repository-name: CLA-signatures