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.' 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