ClearTax / jira-lint

A light-weight lint workflow when using GitHub along with JIRA for project management
MIT License
58 stars 60 forks source link

Error: Cannot read property 'map' of undefined when branch name follows conventional commit #35

Open ede-n opened 3 years ago

ede-n commented 3 years ago

Here is the stack trace.

Run cleartax/jira-lint@master
  with:
    github-token: ***
    jira-token: ***
    jira-base-url: https://xxx.atlassian.net
    skip-branches: ^(production-release|master|release\/v\d+)$
    skip-comments: true
    pr-threshold: 1000
    validate_issue_status: false
    allowed_issue_statuses: In Progress
Base branch ->  master
Head branch ->  feature/SEAR-XXX-postgres-disk-space-alert
branch 'feature/SEAR-XXX-postgres-disk-space-alert' does not match ignore pattern provided in 'skip-branches' option: /^(production-release|master|release\/v\d+)$/
JIRA key -> SEAR-XXX
{
  error: TypeError: Cannot read property 'map' of undefined
      at /home/runner/work/_actions/cleartax/jira-lint/master/lib/index.js:1:27867
      at Generator.next (<anonymous>)
      at fulfilled (/home/runner/work/_actions/cleartax/jira-lint/master/lib/index.js:1:26281)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
}
Error: Cannot read property 'map' of undefined

Appreciate your help.