Repository navigation
feat: export the props type of every component #139
Workflow file for this run
This file contains hidden or 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: PR Title | |
| # PRs are squash-merged, so the PR title becomes the commit message on main. | |
| # See https://github.com/raystack/apsara/blob/main/CONTRIBUTING.md#commit-convention | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| permissions: {} | |
| jobs: | |
| check: | |
| name: Check PR title | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 1 | |
| steps: | |
| - name: Check format | |
| env: | |
| TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| pattern='^(feat|fix|refactor|test|chore): (\[[[:lower:][:digit:]-]+(, [[:lower:][:digit:]-]+)*\] )?[^][[:upper:][:space:]]' | |
| if [[ ! "$TITLE" =~ $pattern ]]; then | |
| echo "::error::PR title must match '<type>: [<component>] <summary>', for example 'feat: [grid] introduce css modules'. Types: feat, fix, refactor, test, chore. See CONTRIBUTING.md#commit-convention." | |
| exit 1 | |
| fi | |
| if (( ${#TITLE} > 70 )); then | |
| echo "::warning::PR title is ${#TITLE} characters. Keep it under 70." | |
| fi |