Skip to content

fix: typing problems #448

fix: typing problems

fix: typing problems #448

Workflow file for this run

name: '➕ Pull Request'
permissions:
contents: read
pull-requests: write
on:
pull_request:
types:
- opened
- edited
- reopened
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_LABEL: 'invalid_PR_title'
jobs:
lint-pr:
name: Lint pull request title
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Checkout current PR
run: gh pr checkout $GITHUB_HEAD_REF
- name: Create Label
continue-on-error: true
run: gh label create ${{ env.PR_LABEL }}
- name: Lint pull request title
uses: amannn/action-semantic-pull-request@v6
- name: Remove label
run: gh pr edit --remove-label ${{ env.PR_LABEL }}
- name: Add label
if: ${{ failure() }}
run: gh pr edit --add-label ${{ env.PR_LABEL }}