From 23ac11872ba6c961318a3746d263523ff8b924a0 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Thu, 28 Feb 2019 21:20:03 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- jiracmd/dup.go | 2 +- jiracmd/editmeta.go | 2 +- jiracmd/issuelink.go | 2 +- jiracmd/labelsAdd.go | 2 +- jiracmd/labelsRemove.go | 2 +- jiracmd/labelsSet.go | 2 +- jiracmd/worklogList.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/jiracmd/dup.go b/jiracmd/dup.go index f32acdf..a5edaba 100644 --- a/jiracmd/dup.go +++ b/jiracmd/dup.go @@ -60,7 +60,7 @@ func CmdDupUsage(cmd *kingpin.CmdClause, opts *DupOptions) error { return nil } -// CmdDups will update the given issue as being a duplicate by the given dup issue +// CmdDup will update the given issue as being a duplicate by the given dup issue // and will attempt to resolve the dup issue func CmdDup(o *oreo.Client, globals *jiracli.GlobalOptions, opts *DupOptions) error { if err := jira.LinkIssues(o, globals.Endpoint.Value, &opts.LinkIssueRequest); err != nil { diff --git a/jiracmd/editmeta.go b/jiracmd/editmeta.go index a4f07db..dd4b46b 100644 --- a/jiracmd/editmeta.go +++ b/jiracmd/editmeta.go @@ -41,7 +41,7 @@ func CmdEditMetaUsage(cmd *kingpin.CmdClause, opts *EditMetaOptions) error { return nil } -// EditMeta will get issue edit metadata and send to "editmeta" template +// CmdEditMeta will get issue edit metadata and send to "editmeta" template func CmdEditMeta(o *oreo.Client, globals *jiracli.GlobalOptions, opts *EditMetaOptions) error { editMeta, err := jira.GetIssueEditMeta(o, globals.Endpoint.Value, opts.Issue) if err != nil { diff --git a/jiracmd/issuelink.go b/jiracmd/issuelink.go index 833cb6b..bfc5ee7 100644 --- a/jiracmd/issuelink.go +++ b/jiracmd/issuelink.go @@ -54,7 +54,7 @@ func CmdIssueLinkUsage(cmd *kingpin.CmdClause, opts *IssueLinkOptions) error { return nil } -// CmdBlock will update the given issue as being a duplicate by the given dup issue +// CmdIssueLink will update the given issue as being a duplicate by the given dup issue // and will attempt to resolve the dup issue func CmdIssueLink(o *oreo.Client, globals *jiracli.GlobalOptions, opts *IssueLinkOptions) error { if err := jira.LinkIssues(o, globals.Endpoint.Value, &opts.LinkIssueRequest); err != nil { diff --git a/jiracmd/labelsAdd.go b/jiracmd/labelsAdd.go index 3513698..b5b65aa 100644 --- a/jiracmd/labelsAdd.go +++ b/jiracmd/labelsAdd.go @@ -39,7 +39,7 @@ func CmdLabelsAddUsage(cmd *kingpin.CmdClause, opts *LabelsAddOptions) error { return nil } -// CmdLabels will add labels on a given issue +// CmdLabelsAdd will add labels on a given issue func CmdLabelsAdd(o *oreo.Client, globals *jiracli.GlobalOptions, opts *LabelsAddOptions) error { ops := jiradata.FieldOperations{} for _, label := range opts.Labels { diff --git a/jiracmd/labelsRemove.go b/jiracmd/labelsRemove.go index d07cdec..533d903 100644 --- a/jiracmd/labelsRemove.go +++ b/jiracmd/labelsRemove.go @@ -39,7 +39,7 @@ func CmdLabelsRemoveUsage(cmd *kingpin.CmdClause, opts *LabelsRemoveOptions) err return nil } -// CmdLabels will remove labels on a given issue +// CmdLabelsRemove will remove labels on a given issue func CmdLabelsRemove(o *oreo.Client, globals *jiracli.GlobalOptions, opts *LabelsRemoveOptions) error { ops := jiradata.FieldOperations{} for _, label := range opts.Labels { diff --git a/jiracmd/labelsSet.go b/jiracmd/labelsSet.go index cf27a31..d7c5640 100644 --- a/jiracmd/labelsSet.go +++ b/jiracmd/labelsSet.go @@ -39,7 +39,7 @@ func CmdLabelsSetUsage(cmd *kingpin.CmdClause, opts *LabelsSetOptions) error { return nil } -// CmdLabels will set labels on a given issue +// CmdLabelsSet will set labels on a given issue func CmdLabelsSet(o *oreo.Client, globals *jiracli.GlobalOptions, opts *LabelsSetOptions) error { issueUpdate := jiradata.IssueUpdate{ Update: jiradata.FieldOperationsMap{ diff --git a/jiracmd/worklogList.go b/jiracmd/worklogList.go index 8ef49b6..16e3c3d 100644 --- a/jiracmd/worklogList.go +++ b/jiracmd/worklogList.go @@ -40,7 +40,7 @@ func CmdWorklogListUsage(cmd *kingpin.CmdClause, opts *WorklogListOptions) error return nil } -// // CmdWorklogList will get worklog data for given issue and sent to the "worklogs" template +// CmdWorklogList will get worklog data for given issue and sent to the "worklogs" template func CmdWorklogList(o *oreo.Client, globals *jiracli.GlobalOptions, opts *WorklogListOptions) error { data, err := jira.GetIssueWorklog(o, globals.Endpoint.Value, opts.Issue) if err != nil {