Attempting to use scripts/backport in Kibana failed for me:
% node scripts/backport --pr 222883
⚠️ Ouch! An unhandled error occured 😿
TypeError: Cannot read properties of undefined (reading 'type')
at /Users/trentm/el/kibana/node_modules/backport/dist/lib/github/v4/getInvalidAccessTokenMessage.js:20:27
at Array.some (<anonymous>)
at getInvalidAccessTokenMessage (/Users/trentm/el/kibana/node_modules/backport/dist/lib/github/v4/getInvalidAccessTokenMessage.js:18:55)
at getOptionsFromGithub (/Users/trentm/el/kibana/node_modules/backport/dist/lib/github/v4/getOptionsFromGithub/getOptionsFromGithub.js:38:109)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getOptions (/Users/trentm/el/kibana/node_modules/backport/dist/options/options.js:66:31)
at async backportRun (/Users/trentm/el/kibana/node_modules/backport/dist/backportRun.js:51:19)
at async Object.backportRun (/Users/trentm/el/kibana/node_modules/backport/dist/entrypoint.api.js:33:17)
Please open an issue in https://github.com/sorenlouv/backport/issues or contact me directly on https://twitter.com/sorenlouv
For additional details see the logs: /Users/trentm/.backport/backport.info.log
There isn't any more detail in ~/.backport/backport.info.log.
I gather this may be something about my ~/.backport/config.json. I did create a new (classic) GH personal access token (with the repo and workflow permissions) for this according to https://github.com/sorenlouv/backport/blob/main/docs/config-file-options.md#global-config-backportconfigjson
Attempting to use scripts/backport in Kibana failed for me:
There isn't any more detail in ~/.backport/backport.info.log.
I gather this may be something about my
~/.backport/config.json. I did create a new (classic) GH personal access token (with the repo and workflow permissions) for this according to https://github.com/sorenlouv/backport/blob/main/docs/config-file-options.md#global-config-backportconfigjson