1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-12-02 08:51:43 +02:00
Commit Graph

23 Commits

Author SHA1 Message Date
Andy Grunwald
43e8242f2c
style: Fix staticcheck (static analysis) errors for this library (#283)
* style: Fix staticcheck errors for "error strings should not be capitalized (ST1005)"

staticcheck is a static analysis tool for go.
It reports several "error strings should not be capitalized (ST1005)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "printf-style function with dynamic format ... (SA1006)"

staticcheck is a static analysis tool for go.
It reports several "printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "type X is unused (U1000)"

staticcheck is a static analysis tool for go.
It reports several "type X is unused (U1000)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "should use X instead (S1003 & SA6005)"

staticcheck is a static analysis tool for go.
It reports several

- should use !bytes.Contains(b, []byte(`"password":"bar"`)) instead (S1003)
- should use strings.EqualFold instead (SA6005)

messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "unnecessary use of fmt.Sprintf (S1039)"

staticcheck is a static analysis tool for go.
It report several "unnecessary use of fmt.Sprintf (S1039)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "this value of X is never used (SA4006)"

staticcheck is a static analysis tool for go.
It report several "this value of X is never used (SA4006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "redundant return statement (S1023)"

staticcheck is a static analysis tool for go.
It report several "redundant return statement (S1023)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "possible nil pointer dereference (SA5011)"

staticcheck is a static analysis tool for go.
It report several

    file.go:Line:character: possible nil pointer dereference (SA5011)
        file.go:Line:character: this check suggests that the pointer can be nil

messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "this value of X is never used (SA4006)"

staticcheck is a static analysis tool for go.
It report several "this value of X is never used (SA4006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280
2020-05-02 23:08:01 +02:00
Robert Bittle
a783764b52
feat(issues): Add GetEditMeta on issue
This calls the editmeta endpoint on an issue
API docs: https://docs.atlassian.com/DAC/rest/jira/6.1.html#d2e1364
2020-05-02 23:06:44 +02:00
Tyler Cheek
4a727d9c52 Fix GetQueryOptions in issue.go to use projectKeys instead of projectKey 2018-03-05 08:56:57 -05:00
rbriski
61dbee1c77
Merge pull request #113 from uservoice/master
Extend GetCreateMeta method to retrieve meta data for all projects
2018-03-01 08:35:16 -08:00
nguyen970
825973ac55 Added a GetCreateMetaWithOptions function, which extends the capabilities of GetCreateMeta to allow for options 2018-03-01 10:46:22 -05:00
Bob Briski
56d87db29c Cleaning a bunch of go vet issues 2018-02-28 22:46:54 -08:00
nguyen970
72b026679e Changed GetCreateMeta method to not require a projectKey. When a user passes in an empty string, it will retrieve the metadata for all projects.
Also changed "Subtasks" to "Subtask" to match Jira's data structure.
2018-02-28 14:43:05 -05:00
Andy Grunwald
880a13c107 Fixed typos 2017-05-01 15:03:03 +02:00
Andy Grunwald
69e7535b62 go fmt and fixed some typos 2017-05-01 14:59:27 +02:00
Andy Grunwald
130643d204 Merge pull request #63 from phille97/patch-1
Fix relative path for ProjectService.Get
2017-02-28 10:03:53 +01:00
Andy Grunwald
1a26457f42 Added correct Expand and Self tags for Metaissue 2017-02-28 10:02:18 +01:00
Garrett Graupmann
39a47d13a0 Initial commit of bug fixes found by atom's gometalinter. 2017-02-23 16:48:06 -08:00
Philip Johansson
40923d190e Fix relative path IssueService.GetCreateMeta 2017-02-20 16:16:34 +01:00
Albin Gilles
abd1ab2896 Fix typo metaissue.go 2016-12-11 11:55:43 +01:00
Albin Gilles
5857a2e350 Minor fix to comply with go vet 2016-10-23 14:51:29 +02:00
Bidesh Thapaliya
1f368f8fe0 Adds method to init issue with meta and fieldConfig. Adds related tests 2016-10-05 18:04:48 +02:00
Bidesh Thapaliya
5d16782fb8 Fix MetaIssueType name in the comments for godoc. 2016-10-05 11:02:15 +02:00
Bidesh Thapaliya
d907109051 Merge branch 'master' of github.com:andygrunwald/go-jira 2016-10-05 10:47:29 +02:00
Bidesh Thapaliya
a9ba34697b Add method to get project with key in metaissue 2016-10-05 10:45:38 +02:00
Bidesh Thapaliya
ba52ec9209 Rename MetaIssueTypes to MetaIssueType 2016-10-04 15:22:03 +02:00
Andy Grunwald
31508ce192 Fixed a few fmt and debug outputs 2016-10-03 13:33:46 +02:00
Bidesh Thapaliya
5ce765977f Adds unknown map for arbitrary fields in IssueFields. Adds Custom Marshall,Unmarshall. Adds structs tag where necessary 2016-09-23 16:19:07 +02:00
Bidesh Thapaliya
fe6b129172 Adds metaissue support. 2016-09-20 14:27:54 +02:00