From 323c594d67e45342cdd91825cc11b7cb93913fed Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 19 Feb 2021 14:52:56 +0000 Subject: [PATCH 1/2] ci: add pr linter --- .github/workflows/lint-pr.yml | 16 ++++++++++++++++ package.json | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint-pr.yml diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml new file mode 100644 index 0000000..c79fb81 --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,16 @@ +name: "Lint PR" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v3.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 7afd1b0..e616a81 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "bin": { "cdkw": "lib/cli.js" }, - "version": "0.0.16-next.11", + "version": "0.0.17-next.11", "scripts": { "type-check": "tsc -p tsconfig.json --noEmit", "build": "tsc -p tsconfig.json", From 3c6d8ad2c8281e73182948b73fe1e4c0f46f92f3 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 19 Feb 2021 15:03:45 +0000 Subject: [PATCH 2/2] ci: add pr linter on internal as wel --- .github/workflows/lint-pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index c79fb81..6a2a412 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -1,6 +1,11 @@ name: "Lint PR" on: + pull_request: + types: + - opened + - edited + - synchronize pull_request_target: types: - opened