From cd76155da133eedd52f1f1f8f00ffd1990042709 Mon Sep 17 00:00:00 2001 From: Charles T Date: Thu, 7 Jan 2021 17:22:45 +0100 Subject: [PATCH 1/4] ci: fix config for release-drafter gh action --- .github/workflows/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index c6c66bf7..c45d6f22 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -12,8 +12,8 @@ jobs: steps: # Drafts your next Release notes as Pull Requests are merged into "master" - uses: release-drafter/release-drafter@v5 - with: + # with: # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml # config-name: my-config.yml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 834aac47b4e3fe1cf147c01d4ef3819fd639c8a2 Mon Sep 17 00:00:00 2001 From: Charles T Date: Thu, 7 Jan 2021 17:30:52 +0100 Subject: [PATCH 2/4] ci: fix pr-lint type list --- .github/workflows/lint-pr.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index be607969..4f173327 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -18,21 +18,10 @@ jobs: with: # Configure which types are allowed. # Default: https://github.com/commitizen/conventional-commit-types - types: | - feat - fix - build - docs - style - refactor - chore - ci - perf - revert - test + types: feat, fix, build, docs, style, refactor, chore, ci, perf, revert, test # Configure which scopes are allowed. # scopes: | # core # ui # Configure that a scope must always be provided. - # requireScope: true \ No newline at end of file + # requireScope: true From db5dc54c10c50f898d931ed65d41761841ae3a32 Mon Sep 17 00:00:00 2001 From: Charles T Date: Thu, 7 Jan 2021 17:38:03 +0100 Subject: [PATCH 3/4] ci: remove gh action pr-lint It will be added as a github app instead --- .github/workflows/lint-pr.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows/lint-pr.yml diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml deleted file mode 100644 index 4f173327..00000000 --- a/.github/workflows/lint-pr.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Lint PR" - -on: - pull_request_target: - types: - - opened - - edited - - synchronize - -jobs: - main: - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v2.1.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Optionally, you can provide options for further constraints. - with: - # Configure which types are allowed. - # Default: https://github.com/commitizen/conventional-commit-types - types: feat, fix, build, docs, style, refactor, chore, ci, perf, revert, test - # Configure which scopes are allowed. - # scopes: | - # core - # ui - # Configure that a scope must always be provided. - # requireScope: true From 639b9684e65cd73b7b95dc460349edd6d923a5f3 Mon Sep 17 00:00:00 2001 From: Charles T Date: Thu, 7 Jan 2021 17:43:21 +0100 Subject: [PATCH 4/4] ci: add config for semantic PR check --- .github/semantic.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/semantic.yml diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 00000000..8d5fcec7 --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1,18 @@ +# Always validate the PR title, and ignore the commits +titleOnly: true + +# By default types specified in commitizen/conventional-commit-types is used. +# See: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json +# You can override the valid types +types: + - feat + - fix + - docs + - style + - refactor + - perf + - test + - build + - ci + - chore + - revert