We're currently running v1.3.7 of the action and everything is working as expected, however when I upgrade to run with v1.4.0 it fails with the following error:
Using config file .github/pr-title-checker-config.json from repo Owner/Repo [ref: ... ]
Creating label (title needs formatting)...
Label (title needs formatting) already created.
TypeError: Cannot read properties of undefined (reading 'notice')
Error: Failed to add label (title needs formatting) to PR
This is reproducible in the following workflow definition which works at v1.3.7 but fails as soon as I upgrade to v1.4.0
name: PR Title Checker
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
- labeled
branches:
- feature/*
- sub-feature/*
jobs:
pr_title_check:
name: PR Title Check
runs-on: windows-latest
steps:
- uses: thehanimo/pr-title-checker@v1.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
We're currently running v1.3.7 of the action and everything is working as expected, however when I upgrade to run with v1.4.0 it fails with the following error:
This is reproducible in the following workflow definition which works at v1.3.7 but fails as soon as I upgrade to v1.4.0
The config is as follows: