Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "No repository.url found in " + process.cwd() + "/repository(.url)"; error when trying to create release. #18

Open
dpatil-magento opened this issue Jun 17, 2019 · 5 comments

Comments

@dpatil-magento
Copy link

Steps -

  1. run npm install github-release-from-changelog -g
  2. then run github-release-from-changelog [--filename CHANGELOG.md]

Issue -
[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4

/usr/local/lib/node_modules/github-release-from-changelog/github-release-from-changelog.js:85
throw "No repository.url found in " + process.cwd() + "/repository(.url)";
^
No repository.url found in /Users/test/Documents/dir/project/repository(.url)

@MoOx
Copy link
Owner

MoOx commented Jun 17, 2019

  1. this package should not be installed globally
  2. command should be run near a valid package.json that have a repository url

Can you share more detail about your usage?

@dpatil-magento
Copy link
Author

Thanks @MoOx , It works after adding repo url to package.json.

@MoOx
Copy link
Owner

MoOx commented Jun 17, 2019

Do you consider the error message wasn't clear enough and that would need to be improved?

@dpatil-magento
Copy link
Author

M pretty much new to package.json that might be the reason. Is there a way I can pass repository url as a flag? something like github-release-from-changelog [--filename CHANGELOG.md] --$Repo_url ?

@MoOx
Copy link
Owner

MoOx commented Jun 17, 2019

Not with current code. If you want to try to send a PR to add this change, I am not opposed to that (but more with --repository=$url).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants