fix(login): Set min size and increase size for phrase window #1804
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: 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/[email protected] | |
id: regex-match | |
with: | |
text: ${{ github.event.pull_request.title }} | |
regex: '(?:add|update|task|chore|feat|fix|refactor)\([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|task|chore|feat|fix|refactor)\([a-z-A-Z]+\):\s.+`. | |
e.g.) `add(cli): enable --verbose flag`, `fix(api): avoid unexpected error in handler` | |
- name: Add invalid PR title label if regex is not matching | |
if: ${{ steps.regex-match.outputs.match == '' }} | |
uses: buildsville/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
labels: | | |
invalid PR title | |
type: add | |
- name: Remove label if regex is matching | |
if: ${{ steps.regex-match.outputs.match != '' }} | |
uses: buildsville/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
labels: | | |
invalid PR title | |
type: remove | |
- run: exit 1 | |
if: ${{ steps.regex-match.outputs.match == '' }} |