diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index c77df89de6..0000000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,7 +0,0 @@ -scopes: - - javascript - - php - - java - - cts - - spec - - script diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000000..d4814de6b8 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,19 @@ +name: Validate pull-request title + +on: + pull_request: + types: [opened, edited, synchronize] + +jobs: + setup: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Pull Request title rules + uses: deepakputhraya/action-pr-title@v1.0.2 + with: + regex: '^(?:(feat)|(fix)|(docs)|(style)|(refactor)|(perf)|(test)|(build)|(ci)|(chore)|(revert))\((?:(javascript)|(php)|(java)|(cts)|(spec)|(script)|(ci))\): .+'