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

33 Commits

Author SHA1 Message Date
Andy Grunwald
146229d2ab
fix(product): Make product naming consistent, rename JIRA to Jira (#286)
Atlassian names the product "Jira".
In this library, the product name is used different (JIRA) and
inconsistent (sometimes JIRA, sometimes Jira).

closes issue #284
2020-05-14 17:18:31 +02:00
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
Shaun Dunning
a8bdfed27f feat: add support for JWT auth with qsh needed by add-ons 2019-09-05 11:04:10 -07:00
Dimitris Stafylarakis
7e0dd0ed39 Fix board request parameter
The BoardListOption field BoardType was incorrectly mapped to boardType
instead of type. This commit fixes it. A generic test helper
function (testRequestParams) is added in order to improve the
effectiveness of the unit test.

Fixes #213
2019-05-12 10:59:41 +02:00
Issei Horie
bf2008dbbf Fix wrong comments 2018-12-24 16:45:19 +01:00
spmassot
9049c9ff74 Instead of baking config into the client, adds a method call that allows options to be passed in 2018-10-17 15:17:08 -04:00
spmassot
00a32a0fd7 Uses a jira client config struct 2018-10-17 14:49:25 -04:00
spmassot
02a41efba4 Updates tests and examples to work with proposed changes 2018-10-16 13:41:50 -04:00
David Dizon
e3036dab2f Check for empty cookies for CookieAuthTransport
Don't add empty cookie values to the session object for
CookieAuthTransport
2018-09-11 16:58:16 -07:00
Thibaut Rousseau
049a756bbe
feat: Add StatusCategory GetList 2018-06-26 09:41:46 +02:00
Thibaut Rousseau
fb1ce22699
feat: Add ResolutionService to retrieve resolutions 2018-06-25 17:48:53 +02:00
Thibaut Rousseau
8491cb0034
fix: Add PriorityService to the main 2018-06-12 10:22:48 +02:00
Bob Briski
57050f9f92 Changed auth URL and added tests 2018-02-27 22:50:02 -08:00
Bob Briski
f9152870f4 Added transport for cookie authentication and updated docs 2018-02-24 16:29:17 -08:00
Bob Briski
e3130864a1 Adding basic auth and accompanying tests 2018-02-24 11:27:46 -08:00
David Kuridža
7e8707a8ce
add basic Version endpoints 2018-01-22 11:34:41 +01:00
Andy Grunwald
880a13c107 Fixed typos 2017-05-01 15:03:03 +02:00
Florian Krauthan
dcb1c11006 Added tests for new authentication
Fixed some existing tests to work as expected
2017-02-08 14:59:20 -08:00
Andy Grunwald
8a4b1aca33 Added basic version of Group API (Thanks to @aviz) 2017-01-29 17:28:04 +01:00
gm42
16619653d8 Add test for NewRawRequest 2016-10-10 12:54:45 +02:00
Andy Grunwald
a7647f3c7b Killed unit test TestClient_NewRequest_InvalidJSON 2016-10-03 13:35:00 +02:00
Ante Kresic
e9740fe3e9 Fixed issue with Jira auth for multipart requests 2016-07-27 12:21:09 +02:00
Andy Grunwald
cdb3939c4c Renamed unit tests according golang standard 2016-07-17 12:13:08 +02:00
Andy Grunwald
ce47602482 Merge branch 'develop' of https://github.com/EvgenKostenko/go-jira into EvgenKostenko-develop
* 'develop' of https://github.com/EvgenKostenko/go-jira:
  cosmetic fix in boards imports, tests in projects
  add delete board with tests + go fmt
  add board create with tests
  go fmt boards
  Implement BoardService and get boards list with parameters
  remove old project
  Add boards and fix some bugs in project
  add boards service
2016-06-19 14:40:09 +02:00
Evgen Kostenko
9f8d06db41 go fmt boards 2016-06-15 20:15:12 +03:00
Evgen Kostenko
81b91847b3 Implement BoardService and get boards list with parameters 2016-06-15 20:08:15 +03:00
Maciej Kwiek
facc86872b Wrap http.Response in Response struct
The Response struct has StartAt, MaxResults and Total fields, which are
returned from JIRA API in issue search responses. They are now
accessible in Response object.
2016-06-15 17:09:13 +02:00
Andy Grunwald
4efa3df3b1 Fix #12: Expose the base JIRA URL 2016-06-03 18:18:01 +02:00
Kent Brockman
1eae640dbf fixed test case 2016-05-24 00:23:47 -06:00
Kent Brockman
8e67015ef3 Bug fix - reading http body produces error because the body is already read 2016-05-23 23:48:04 -06:00
Andy Grunwald
a39c0d9084 Added tests for authentication 2016-03-26 22:58:28 +01:00
Andy Grunwald
957b42073b Fixed govet error: arg inBody for printf verb %q of wrong type: *jira.Issue (vet) 2016-03-26 21:34:49 +01:00
Andy Grunwald
0feccadf8d Fix #1: Add some unit tests 2016-03-26 21:23:12 +01:00