Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Project has no remote #80

Merged
10 commits merged into from
Apr 26, 2016
Merged

Project has no remote #80

10 commits merged into from
Apr 26, 2016

Conversation

schultyy
Copy link
Member

@schultyy schultyy commented Apr 2, 2016

PR for #73

This PR handles the case if the project has no remote configured. Before semantic-rs just failed with an error now it's printing a warning to notify the user of the things that do not happen.
Since that case is not an error but something with a bit more relevance than just info the logger got a warn function for that case.

@@ -134,10 +134,10 @@ pub fn tag(config: &Config, tag_name: &str, tag_message: &str) -> Result<(), Err

pub fn push(config: &Config, tag_name: &str) -> Result<(), Error> {
let repo = &config.repository;
let token = config.gh_token.as_ref().unwrap();
let token = &config.gh_token.as_ref().unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

Because we're using .as_ref here, we already get a &String from that unwrap, we don't need to take another reference on that (with your code token is a &&String, which causes no problems, because it derefs to &str later in either case)

@badboy
Copy link
Member

badboy commented Apr 9, 2016

Left some comments. Otherwise LGTM.

cd has-no-remote
setup_dirs

run CARGO_TOKEN=1234 semantic-rs -w
Copy link
Member

Choose a reason for hiding this comment

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

CARGO_TOKEN=1234 run semantic-rs -w should work

@badboy
Copy link
Member

badboy commented Apr 26, 2016

@not-A-robot r+

@badboy badboy closed this Apr 26, 2016
@badboy badboy reopened this Apr 26, 2016
@badboy
Copy link
Member

badboy commented Apr 26, 2016

@not-A-robot r+

@ghost
Copy link

ghost commented Apr 26, 2016

📌 Commit efad562 has been approved by badboy

@ghost
Copy link

ghost commented Apr 26, 2016

⌛ Testing commit efad562 with merge 80b0b3d...

ghost pushed a commit that referenced this pull request Apr 26, 2016
Project has no remote

PR for #73

This PR handles the case if the project has no remote configured. Before semantic-rs just failed with an error now it's printing a warning to notify the user of the things that do not happen.
Since that case is not an error but something with a bit more relevance than just info the logger got a `warn` function for that case.
@ghost
Copy link

ghost commented Apr 26, 2016

☀️ Test successful - status-travis

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants