Skip to content

build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.29.0 to 1.30.0 in /acceptance-tests/apps/s3app #3868

build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.29.0 to 1.30.0 in /acceptance-tests/apps/s3app

build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.29.0 to 1.30.0 in /acceptance-tests/apps/s3app #3868

name: Conventional Commit Check
on: [pull_request]
jobs:
conventional-commit:
runs-on: ubuntu-latest
steps:
- name: Check
uses: actions/github-script@v7
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"]
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}`)
}