sorenlouv / backport

A simple CLI tool that automates the process of backporting commits on a GitHub repo
https://github.com/sqren/backport/blob/main/docs/config-file-options.md
Apache License 2.0
247 stars 60 forks source link

v8.9.7 - Cannot read properties of undefined #451

Open MstrDC opened 1 year ago

MstrDC commented 1 year ago

When running version 8.9.7, I get the error below when running "npx backport" on my repo Downgrading to version 8.9.4 fixes the issue.

{ "level": "error", "message": "Unhandled exception: Cannot read properties of undefined (reading 'repository')", "metadata": { "stack": "TypeError: Cannot read properties of undefined (reading 'repository')\n at getOptionsFromGithub (X:\repo-name\node_modules\backport\dist\lib\github\v4\getOptionsFromGithub\getOptionsFromGithub.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getOptions (X:\repo-name\node_modules\backport\dist\options\options.js:57:31)\n at async backportRun (X:\repo-name\node_modules\backport\dist\backportRun.js:49:19)" }, "timestamp": "2022-11-24 11:34:01"

sorenlouv commented 1 year ago

Thanks for letting me know. I'll take a look over the weekend.