Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-bug
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
MichaelMure
git-bug
Commits
f67c57c0
Unverified
Commit
f67c57c0
authored
Oct 17, 2018
by
Michael Muré
Browse files
Options
Downloads
Patches
Plain Diff
commands: check the bug id before the user write the message for "comment add"
parent
b08e28e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
commands/comment_add.go
+5
-5
5 additions, 5 deletions
commands/comment_add.go
with
5 additions
and
5 deletions
commands/comment_add.go
+
5
−
5
View file @
f67c57c0
...
...
@@ -21,6 +21,11 @@ func runCommentAdd(cmd *cobra.Command, args []string) error {
}
defer
backend
.
Close
()
b
,
args
,
err
:=
_select
.
ResolveBug
(
backend
,
args
)
if
err
!=
nil
{
return
err
}
if
commentAddMessageFile
!=
""
&&
commentAddMessage
==
""
{
commentAddMessage
,
err
=
input
.
FromFile
(
commentAddMessageFile
)
if
err
!=
nil
{
...
...
@@ -39,11 +44,6 @@ func runCommentAdd(cmd *cobra.Command, args []string) error {
}
}
b
,
args
,
err
:=
_select
.
ResolveBug
(
backend
,
args
)
if
err
!=
nil
{
return
err
}
err
=
b
.
AddComment
(
commentAddMessage
)
if
err
!=
nil
{
return
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment