build(deps): bump github.com/onsi/gomega from 1.28.0 to 1.28.1 #1097
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conventional Commit Check | |
on: [pull_request] | |
jobs: | |
conventional-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const {data: pr} = await github.rest.pulls.get({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.issue.number, | |
}) | |
const allowed = ["feat\\!", "feat", "fix", "chore", "docs", "build", "test", "revert"] | |
const re = new RegExp(`^(` + allowed.join('|') + `)(\\(\\w+\\))?: `) | |
const title = pr['title'] | |
if (!re.test(title)) { | |
throw new Error(`PR title "${title}" does not match conventional commits filter: ${re}`) | |
} |