From 4ed4066fd4dd8d1057a9c797268ae337916b353a Mon Sep 17 00:00:00 2001 From: Daniel <25051234+dasanra@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:04:42 +0000 Subject: [PATCH] Add CLA action (#215) --- .github/workflows/cla.yml | 39 ++++++++++++++++++++++++++ .github/workflows/deploy-storybook.yml | 13 +++++---- .github/workflows/lint.yml | 4 +-- .github/workflows/test.yml | 6 ++-- 4 files changed, 51 insertions(+), 11 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 00000000..e3741aca --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,39 @@ +name: 'CLA Assistant' +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] + +jobs: + CLAssistant: + runs-on: ubuntu-latest + steps: + - name: 'CLA Assistant' + if: (github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + # Beta Release + uses: contributor-assistant/github-action@v2.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # the below token should have repo scope and must be manually added by you in the repository's secret + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }} + with: + path-to-signatures: 'signatures/version1/cla.json' + path-to-document: 'https://safe.global/cla/' # e.g. a CLA or a DCO document + # branch should not be protected + branch: 'main' + # user names of users allowed to contribute without CLA + allowlist: rmeissner,germartinez,dasanra,francovenica,luarx,DaniSomoza,iamacook,yagopv,usame-algan,schmanu,DiogoSoaress,JagoFigueroa,bot* + + # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken + # enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository) + remote-organization-name: 'safe-global' + # enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository) + remote-repository-name: 'cla-signatures' + #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' + #signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo' + #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' + #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' + #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' + #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) + #use-dco-flag: true - If you are using DCO instead of CLA diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index be300add..80e7e5e8 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -1,11 +1,12 @@ name: Deploy storybook on: + # Disabled until environment is set up again # Pull request hook without any config. Launches for every pull request - pull_request: + #pull_request: # Launches build when release is published - release: - types: [published] + #release: + # types: [published] env: REPO_NAME_ALPHANUMERIC: safereactcomponents @@ -21,12 +22,12 @@ jobs: with: access_token: ${{ github.token }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Node.js setup - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - uses: actions/cache@v2 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 01790e74..e716b059 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,5 +5,5 @@ jobs: eslint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: gnosis/safe-react-eslint-plus-action@v3.5.0 + - uses: actions/checkout@v3 + - uses: gnosis/safe-react-eslint-plus-action@v4.0.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 343caca1..2e01757d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,12 +12,12 @@ jobs: access_token: ${{ github.token }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Yarn cache uses: actions/cache@v2