Can't completely disable github #2955
-
I'm new to semantic-version. I'm trying to determine if it's the right tool for some requirements I have. In my playground repo, I installed semantic-release as instructed in the docs. I noticed by default it integrates with github. I'm using ADO to host my git repo, so I needed to turn off github completely. Based on my research, it seemed like to disable the branches:
- master
plugins:
- "@semantic-release/commit-analyzer" However, when I run And if I exit this modal, I get an error: Error: Command failed with exit code 128: git ls-remote --heads https://github.com/n/a.git
fatal: helper error (-1): User cancelled dialog.
bash: line 1: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No such file or directory
at makeError (file:///C:/code/Monitor/node_modules/semantic-release/node_modules/execa/lib/error.js:60:11)
at handlePromise (file:///C:/code/Monitor/node_modules/semantic-release/node_modules/execa/index.js:124:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getBranches (file:///C:/code/Monitor/node_modules/semantic-release/lib/git.js:68:11)
at async default (file:///C:/code/Monitor/node_modules/semantic-release/lib/branches/expand.js:6:23)
at async default (file:///C:/code/Monitor/node_modules/semantic-release/lib/branches/index.js:14:26)
at async run (file:///C:/code/Monitor/node_modules/semantic-release/index.js:68:22)
at async Module.default (file:///C:/code/Monitor/node_modules/semantic-release/index.js:275:22)
at async default (file:///C:/code/Monitor/node_modules/semantic-release/cli.js:55:5) {
shortMessage: 'Command failed with exit code 128: git ls-remote --heads https://github.com/n/a.git',
command: 'git ls-remote --heads https://github.com/n/a.git',
escapedCommand: 'git ls-remote --heads "https://github.com/n/a.git"',
exitCode: 128,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: 'fatal: helper error (-1): User cancelled dialog.\n' +
'bash: line 1: /dev/tty: No such device or address\n' +
'error: failed to execute prompt script (exit code 1)\n' +
"fatal: could not read Username for 'https://github.com': No such file or directory",
cwd: 'C:\\code\\Monitor',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
} I'm a bit confused why it's trying to run this command: git ls-remote --heads "https://github.com/n/a.git" I disabled the github plugin, so where is this coming from? Due diligence performed:
Let me know if there's additional information I may provide. Thank you in advance for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
do you happen to have a |
Beta Was this translation helpful? Give feedback.
do you happen to have a
repository
property in yourpackage.json
that points to github?