From 99fe03b07c8e8409fca4c3a15910bb44ec620fd6 Mon Sep 17 00:00:00 2001 From: Naveenmorty <89334407+Naveenmorty@users.noreply.github.com> Date: Mon, 5 Sep 2022 12:48:38 +0530 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..b67c043e6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: 'Commit Message Check' +on: + pull_request: + types: + - opened + - edited + - reopened + - synchronize + pull_request_target: + types: + - opened + - edited + - reopened + - synchronize + push: + branches: + - main + - 'releases/*' + +jobs: + check-commit-message: + name: Check Commit Message + runs-on: ubuntu-latest + steps: + - name: Check Commit Type + uses: gsactions/commit-message-checker@v1 + with: + pattern: '\[[^]]+\] .+$' + flags: 'gm' + error: 'Your first line has to contain a commit type like "[BUGFIX]".' + - name: Check for Resolves / Fixes + uses: gsactions/commit-message-checker@v1 + with: + pattern: '^.+(AB): \#[0-9]+$' + error: 'You need at least one "Resolves|Fixes: #" line.' From 98acc862389aae4140c1138f3062f984d592a4f2 Mon Sep 17 00:00:00 2001 From: Naveenmorty <89334407+Naveenmorty@users.noreply.github.com> Date: Mon, 5 Sep 2022 12:54:20 +0530 Subject: [PATCH 2/2] Update schema.js AB#4 --- store/schema.js | 1 + 1 file changed, 1 insertion(+) diff --git a/store/schema.js b/store/schema.js index f4af158a3..e231712d7 100644 --- a/store/schema.js +++ b/store/schema.js @@ -5,3 +5,4 @@ module.exports = schema = yup.object().shape({ lastName: yup.string().max(50, 'Value cannot exceed 50 characters').required(), //genre: yup.string().matches(/(JAZZ|ROCK|BLUES)/).required() }); +//Access allow