Skip to content

Conversation

@meinto
Copy link
Owner

@meinto meinto commented Mar 11, 2019

No description provided.

util.CheckForError(err, "GetGitProvider")

gh.Publish(currentBranch)
gp.Publish(currentBranch)

Choose a reason for hiding this comment

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

Error return value of gp.Publish is not checked (from errcheck)

cmd.Flags().StringVarP(&MergeRequestFlags.GitlabCIToken, "token", "t", "", "gitlab ci token")
viper.BindPFlag("githost", cmd.Flags().Lookup("endpoint"))
cmd.Flags().StringVarP(&MergeRequestFlags.Token, "token", "t", "", "gitlab ci token")
viper.BindPFlag("gitProviderDomain", cmd.Flags().Lookup("endpoint"))

Choose a reason for hiding this comment

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

Error return value of viper.BindPFlag is not checked (from errcheck)

viper.BindPFlag("githost", cmd.Flags().Lookup("endpoint"))
cmd.Flags().StringVarP(&MergeRequestFlags.Token, "token", "t", "", "gitlab ci token")
viper.BindPFlag("gitProviderDomain", cmd.Flags().Lookup("endpoint"))
viper.BindPFlag("gitProvider", cmd.Flags().Lookup("gitProvider"))

Choose a reason for hiding this comment

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

Error return value of viper.BindPFlag is not checked (from errcheck)

viper.BindPFlag("projectNamespace", cmd.Flags().Lookup("namespace"))
viper.BindPFlag("projectName", cmd.Flags().Lookup("project"))
viper.BindPFlag("gitlabCIToken", cmd.Flags().Lookup("token"))
viper.BindPFlag("token", cmd.Flags().Lookup("token"))

Choose a reason for hiding this comment

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

Error return value of viper.BindPFlag is not checked (from errcheck)

viper.GetString("projectName"),
viper.GetString("token"),
)
break

Choose a reason for hiding this comment

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

S1023: redundant break statement (from gosimple)

viper.GetString("projectName"),
viper.GetString("token"),
)
break

Choose a reason for hiding this comment

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

S1023: redundant break statement (from gosimple)

@meinto meinto merged commit 99e33d7 into master Mar 11, 2019
@meinto meinto deleted the release/v1.1.0 branch March 11, 2019 19:45
@meinto meinto restored the release/v1.1.0 branch March 11, 2019 19:49
@meinto meinto deleted the release/v1.1.0 branch March 12, 2019 01:11
@meinto meinto restored the release/v1.1.0 branch March 12, 2019 01:13
meinto pushed a commit that referenced this pull request Jan 14, 2020
meinto pushed a commit that referenced this pull request Apr 23, 2021
Pull release/v1.1.0 in master
meinto pushed a commit that referenced this pull request Apr 23, 2021
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.

3 participants