Skip to content

chore(cypress): add license doc and pull request template #3

chore(cypress): add license doc and pull request template

chore(cypress): add license doc and pull request template #3

Workflow file for this run

name: Lint Pull Request Title
on:
pull_request:
types:
- opened
- edited
- reopened
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: ${{ github.event.pull_request.title }}
regex: '(?:add|update|screenobject|chore|test|fix)\([a-z-A-Z]+\):\s.+'
- uses: actions-ecosystem/action-create-comment@v1
if: ${{ steps.regex-match.outputs.match == '' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
:warning: The title of this PR is invalid.
Please make the title match the regex `(?:add|update|screenobject|chore|test|fix)\([a-z-A-Z]+\):\s.+`.
e.g.) `add(cli): enable --verbose flag`, `fix(api): avoid unexpected error in handler`
- run: exit 1
if: ${{ steps.regex-match.outputs.match == '' }}