Commit 38647abb authored by Sander van Harmelen's avatar Sander van Harmelen

Merge pull request #46 from matm/master

Fixes an internal server error when no label available
parents 4f982fa2 cdf526a2
...@@ -194,7 +194,9 @@ func (s *IssuesService) CreateIssue( ...@@ -194,7 +194,9 @@ func (s *IssuesService) CreateIssue(
u := fmt.Sprintf("projects/%s/issues", url.QueryEscape(project)) u := fmt.Sprintf("projects/%s/issues", url.QueryEscape(project))
// This is needed to get a single, comma separated string // This is needed to get a single, comma separated string
if len(opt.Labels) > 0 {
opt.Labels = []string{strings.Join(opt.Labels, ",")} opt.Labels = []string{strings.Join(opt.Labels, ",")}
}
req, err := s.client.NewRequest("POST", u, opt) req, err := s.client.NewRequest("POST", u, opt)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment