You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npm run create-readme yields the following error:
Error: Branch ("main") definition does not exist in the config.
at Object.gitinfo.getRemoteUrl (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/node_modules/gitinfo/dist/gitinfo.js:100:13)
at Object.gitinfo.getUsername (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/node_modules/gitinfo/dist/gitinfo.js:132:53)
at Object.gitinfo.getGithubUrl (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/node_modules/gitinfo/dist/gitinfo.js:51:44)
at Object.helper.compile (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/node_modules/gitdown/dist/helpers/gitinfo.js:36:41)
at Object.gitdown.resolveURLs (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/node_modules/gitdown/dist/gitdown.js:113:35)
at Object.gitdown.get (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/node_modules/gitdown/dist/gitdown.js:56:19)
at async Promise.all (index 0)
at generateDocs (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/src/bin/generateDocs.js:123:23)
at async Promise.all (index 0)
at generateDocsAndWriteToDisk (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/src/bin/generateDocs.js:208:7)
at main (/Users/kraen.hansen/Projects/eslint-plugin-jsdoc/src/bin/generateDocs.js:247:7)
Per gajus/gitdown#27 , it looks like this can occur when there is no remote URL for the branch (maybe because master is in use on gajus?). Gitdown apparently uses this for URL generation (not sure when/how), so I guess the remote should be set. See also gajus/gitdown#57 for an open issue.
Thanks - this solved it for me.
Feel free to close this issue or leave it open, as it did cause some confusion and would probably be good to find a more permanent solution for.
Somewhat (but not really) related, I found that "master" was mentioned in the failing script:
Running
npm run create-readme
yields the following error:Environment
eslint-plugin-jsdoc
version: ec278a2The text was updated successfully, but these errors were encountered: