From 1dd102bd2ad0d60fb1663f1b3aa48763ad2d2bec Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Wed, 13 Apr 2022 10:46:52 -0500 Subject: [PATCH 1/3] Chore: add proper release drafts --- .github/workflows/pr-commit-message-check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pr-commit-message-check.yml diff --git a/.github/workflows/pr-commit-message-check.yml b/.github/workflows/pr-commit-message-check.yml new file mode 100644 index 00000000..344ab528 --- /dev/null +++ b/.github/workflows/pr-commit-message-check.yml @@ -0,0 +1,19 @@ +name: 'Commit Message Check' +on: + pull_request: + types: + - "opened" + - "edited" + - "reopened" +jobs: + check-commit-message: + name: Check Commit Message + runs-on: ubuntu-20.04 + timeout-minutes: 1 + steps: + - name: Check Title + uses: gsactions/commit-message-checker@v1 + with: + pattern: '^.*(Feat|Chore|Fix):.*$' + error: 'You need at least one of "Feat:|Chore:|Fix:" in PR title prefix.' + excludeDescription: true From 03d0ab17783d8a88866363c62dd452b0b9684fa5 Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Thu, 14 Apr 2022 08:09:46 -0500 Subject: [PATCH 2/3] change naming --- .../{pr-commit-message-check.yml => pr-title-validation.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{pr-commit-message-check.yml => pr-title-validation.yml} (85%) diff --git a/.github/workflows/pr-commit-message-check.yml b/.github/workflows/pr-title-validation.yml similarity index 85% rename from .github/workflows/pr-commit-message-check.yml rename to .github/workflows/pr-title-validation.yml index 344ab528..8be46f3b 100644 --- a/.github/workflows/pr-commit-message-check.yml +++ b/.github/workflows/pr-title-validation.yml @@ -1,4 +1,4 @@ -name: 'Commit Message Check' +name: 'Title Validation' on: pull_request: types: @@ -7,7 +7,7 @@ on: - "reopened" jobs: check-commit-message: - name: Check Commit Message + name: ${{ github.event.pull_request.title }} runs-on: ubuntu-20.04 timeout-minutes: 1 steps: From e66e240c7c7a5269c09bdc9b8845b7a696b089e1 Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Sun, 17 Apr 2022 19:10:59 -0500 Subject: [PATCH 3/3] change naming --- .../workflows/{pr-title-validation.yml => pr-validation.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{pr-title-validation.yml => pr-validation.yml} (85%) diff --git a/.github/workflows/pr-title-validation.yml b/.github/workflows/pr-validation.yml similarity index 85% rename from .github/workflows/pr-title-validation.yml rename to .github/workflows/pr-validation.yml index 8be46f3b..8c7d0d6b 100644 --- a/.github/workflows/pr-title-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -1,4 +1,4 @@ -name: 'Title Validation' +name: "Validation" on: pull_request: types: @@ -7,7 +7,7 @@ on: - "reopened" jobs: check-commit-message: - name: ${{ github.event.pull_request.title }} + name: "PR Title" runs-on: ubuntu-20.04 timeout-minutes: 1 steps: