From 2c9083f8a8f9b7b759cb1eedd6e77997e420f9ca Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 15:46:12 +0100 Subject: [PATCH 1/7] chore(ci): validate pr title --- .github/workflows/pr-title.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000000..3b6e4f0fbf --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,30 @@ +name: Checks + +on: + pull_request: + types: [opened, edited, synchronize] + push: + branches: + - main + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + setup: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup + id: setup + uses: ./.github/actions/setup + + - name: Pull Request title rules + uses: deepakputhraya/action-pr-title@v1.0.2 + with: + regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+' From 33f696d783707e0ea06736f1c8c9d3fdb98c5035 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 15:52:40 +0100 Subject: [PATCH 2/7] chore: remove semantic pull request config --- .github/semantic.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .github/semantic.yml diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index c77df89de6..0000000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,7 +0,0 @@ -scopes: - - javascript - - php - - java - - cts - - spec - - script From 7b4e09e351ab3f28a43197e1376877cc085bb3ac Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 15:56:15 +0100 Subject: [PATCH 3/7] chore: fix name of workflow --- .github/workflows/pr-title.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 3b6e4f0fbf..b72769c8ea 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -1,4 +1,4 @@ -name: Checks +name: Validate pull-request title on: pull_request: From 75f14c03ae6dc5addb38c5b6a1daa7037088a59a Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 15:58:10 +0100 Subject: [PATCH 4/7] chore: clean up workflow --- .github/workflows/pr-title.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index b72769c8ea..c959ba73d4 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -3,13 +3,6 @@ name: Validate pull-request title on: pull_request: types: [opened, edited, synchronize] - push: - branches: - - main - -concurrency: - group: ${{ github.ref }} - cancel-in-progress: true jobs: setup: From d4afd077952d2a01f0e80b368043e29eda244760 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 16:01:34 +0100 Subject: [PATCH 5/7] chore: move title checking to check.yml --- .github/workflows/check.yml | 8 +++++--- .github/workflows/pr-title.yml | 23 ----------------------- 2 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b0db4f50b6..664f398902 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -3,9 +3,6 @@ name: Checks on: pull_request: types: [opened, synchronize] - push: - branches: - - main concurrency: group: ${{ github.ref }} @@ -20,6 +17,11 @@ jobs: with: fetch-depth: 0 + - name: Pull Request title rules + uses: deepakputhraya/action-pr-title@v1.0.2 + with: + regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+' + - name: Setup id: setup uses: ./.github/actions/setup diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml deleted file mode 100644 index c959ba73d4..0000000000 --- a/.github/workflows/pr-title.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Validate pull-request title - -on: - pull_request: - types: [opened, edited, synchronize] - -jobs: - setup: - runs-on: ubuntu-20.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup - id: setup - uses: ./.github/actions/setup - - - name: Pull Request title rules - uses: deepakputhraya/action-pr-title@v1.0.2 - with: - regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+' From 767bf72c1a5818af8cefe140ed0d5663d5273e32 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 16:08:57 +0100 Subject: [PATCH 6/7] Revert "chore: move title checking to check.yml" This reverts commit d4afd077952d2a01f0e80b368043e29eda244760. --- .github/workflows/check.yml | 8 +++----- .github/workflows/pr-title.yml | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 664f398902..b0db4f50b6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -3,6 +3,9 @@ name: Checks on: pull_request: types: [opened, synchronize] + push: + branches: + - main concurrency: group: ${{ github.ref }} @@ -17,11 +20,6 @@ jobs: with: fetch-depth: 0 - - name: Pull Request title rules - uses: deepakputhraya/action-pr-title@v1.0.2 - with: - regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+' - - name: Setup id: setup uses: ./.github/actions/setup diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000000..c959ba73d4 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,23 @@ +name: Validate pull-request title + +on: + pull_request: + types: [opened, edited, synchronize] + +jobs: + setup: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup + id: setup + uses: ./.github/actions/setup + + - name: Pull Request title rules + uses: deepakputhraya/action-pr-title@v1.0.2 + with: + regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+' From 6d56591f6e74f29982fda714915834f8b0a365a6 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Fri, 11 Feb 2022 16:09:25 +0100 Subject: [PATCH 7/7] chore: remove unnecessary setup --- .github/workflows/pr-title.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index c959ba73d4..d4814de6b8 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -13,10 +13,6 @@ jobs: with: fetch-depth: 0 - - name: Setup - id: setup - uses: ./.github/actions/setup - - name: Pull Request title rules uses: deepakputhraya/action-pr-title@v1.0.2 with: