From efe195d58d55b73971bf75e551a1fedaddc8b5a7 Mon Sep 17 00:00:00 2001 From: mfw78 Date: Mon, 18 Dec 2023 12:44:53 +0000 Subject: [PATCH 1/3] chore: pm cicd --- .github/workflows/add-action-project.yml | 16 +++++++++++++ .github/workflows/cla.yml | 29 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/add-action-project.yml create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/add-action-project.yml b/.github/workflows/add-action-project.yml new file mode 100644 index 0000000..ce969e7 --- /dev/null +++ b/.github/workflows/add-action-project.yml @@ -0,0 +1,16 @@ +name: Add new issues to project board + +on: + issues: + types: [opened] + +jobs: + add-to-project: + if: github.repository_owner == 'cowprotocol' + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.3.0 + with: + project-url: https://github.com/orgs/cowprotocol/projects/8 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..b9de1fb --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,29 @@ +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 + 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') && github.repository_owner == 'cowprotocol' && github.repository != 'cowprotocol/cla' + uses: contributor-assistant/github-action@v2.2.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }} + with: + branch: 'cla-signatures' + path-to-signatures: 'signatures/version1/cla.json' + path-to-document: 'https://github.com/cowprotocol/cla/blob/main/CLA.md' + allowlist: '*[bot]' From 2bfe097744306f675ca4605465cff5af5043ffeb Mon Sep 17 00:00:00 2001 From: mfw78 Date: Mon, 18 Dec 2023 16:15:50 +0000 Subject: [PATCH 2/3] fix: cla --- .github/workflows/cla.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index b9de1fb..d518142 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -17,7 +17,7 @@ jobs: 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') && github.repository_owner == 'cowprotocol' && github.repository != 'cowprotocol/cla' + 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.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -27,3 +27,4 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-document: 'https://github.com/cowprotocol/cla/blob/main/CLA.md' allowlist: '*[bot]' + From b758c9904762b2e7c13d477f889d7a01c93255ed Mon Sep 17 00:00:00 2001 From: mfw78 Date: Mon, 18 Dec 2023 16:19:52 +0000 Subject: [PATCH 3/3] fix: cla newline --- .github/workflows/cla.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index d518142..776719b 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -27,4 +27,3 @@ jobs: path-to-signatures: 'signatures/version1/cla.json' path-to-document: 'https://github.com/cowprotocol/cla/blob/main/CLA.md' allowlist: '*[bot]' -