From f1a56e39f274ede51f2f8a5afa25f9a55a3b3927 Mon Sep 17 00:00:00 2001 From: Mitchell Valine Date: Wed, 4 May 2022 15:03:50 -0700 Subject: [PATCH] ci: remove usage of semantic pr app for action (#3515) Removes usage of the [Semantic Pull Requests App](https://github.com/zeke/semantic-pull-requests) in favor of a [github action](https://github.com/amannn/action-semantic-pull-request) since the app hasn't been functioning for some time. --- .github/semantic.yml | 16 ------------ .github/workflows/pull-request-lint.yml | 34 +++++++++++++++++++++++++ .mergify/config.yml | 8 +++--- 3 files changed, 38 insertions(+), 20 deletions(-) delete mode 100644 .github/semantic.yml create mode 100644 .github/workflows/pull-request-lint.yml diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index ffca2a1ad3..0000000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,16 +0,0 @@ -# Configuration for Semantic Pull Requests -titleOnly: true - -types: - - feat - - fix - - docs - - style - - refactor - - perf - - test - - build - - ci - - chore - - revert - - release diff --git a/.github/workflows/pull-request-lint.yml b/.github/workflows/pull-request-lint.yml new file mode 100644 index 0000000000..6ef370020e --- /dev/null +++ b/.github/workflows/pull-request-lint.yml @@ -0,0 +1,34 @@ +name: pull-request-lint +on: + pull_request_target: + types: + - labeled + - opened + - synchronize + - reopened + - ready_for_review + - edited +jobs: + validate: + name: Validate PR Title + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: |- + feat + fix + chore + docs + style + refactor + perf + test + build + ci + revert + requireScope: false diff --git a/.mergify/config.yml b/.mergify/config.yml index d989472ee4..6fe83ab87e 100644 --- a/.mergify/config.yml +++ b/.mergify/config.yml @@ -51,7 +51,7 @@ pull_request_rules: - '#approved-reviews-by>=1' - '#review-requested=0' - '#changes-requested-reviews-by=0' - - status-success=Semantic Pull Request + - status-success=Validate PR Title # Docker image validation - status-success~=^jsii/superchain # One test for each OS @@ -102,7 +102,7 @@ pull_request_rules: - '#approved-reviews-by>=1' - '#review-requested=0' - '#changes-requested-reviews-by=0' - - status-success=Semantic Pull Request + - status-success=Validate PR Title # Docker image validation - status-success~=^jsii/superchain # One test for each OS @@ -153,7 +153,7 @@ pull_request_rules: - '#approved-reviews-by>=1' - '#review-requested=0' - '#changes-requested-reviews-by=0' - - status-success=Semantic Pull Request + - status-success=Validate PR Title # Docker image validation - status-success~=^jsii/superchain # One test for each OS @@ -210,4 +210,4 @@ pull_request_rules: [Conventional Commits]: https://www.conventionalcommits.org conditions: - - status-failure=Semantic Pull Request + - status-failure=Validate PR Title