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

Change publish package message on non-default api_url #729

Merged
merged 2 commits into from Dec 2, 2019
Merged

Conversation

wojtekmach
Copy link
Member

Closes #721

to_repository =
cond do
!organization and non_default_api_url? ->
""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is so that when someone uses an external repo (like mini_repo) they don't get a message that we're publishing to hexpm when no organisation is set.

@wojtekmach wojtekmach changed the title Change publish message on non-default api_url Change publish package message on non-default api_url Dec 1, 2019
])
end
api_url = Hex.State.fetch!(:api_url)
non_default_api_url? = api_url != Hex.State.default_api_url()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it will read better if the variable name is not negated: default_api_url? = api_url == Hex.State.default_api_url().

@wojtekmach wojtekmach merged commit f8efe9b into master Dec 2, 2019
@wojtekmach wojtekmach deleted the wm-publish branch December 2, 2019 18:59
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

Successfully merging this pull request may close these issues.

When publishing to a private repo it still says publishing to hexpm
2 participants