1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-11-24 08:22:42 +02:00
Commit Graph

61 Commits

Author SHA1 Message Date
Chhekur
a854ebf395 feat(auth): Bearer Auth Support (oauth 2.0) 2021-08-27 13:49:35 +05:30
Yar Krvtsov
fff481af48 Upgrade jwt library
https://github.com/andygrunwald/go-jira/issues/343

 https://github.com/dgrijalva/jwt-go has been abondoned (see https://github.com/dgrijalva/jwt-go/issues/462). In order to fix the vulnarability we have to switch to a community driven fork https://github.com/golang-jwt/jwt . The issue has been fixed in https://github.com/golang-jwt/jwt/pull/12
2021-07-19 10:28:03 +03:00
ahmadsalimi
3017996765 Feature: Add support for Jira ServiceDesk and its organizations 2021-02-08 03:53:28 +03:30
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
Suhaib Mujahid
e1f4265e2b
feat(context): Add support for context package 2020-05-03 15:38:32 +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
Johan Meiring
261889adc6 feat: Add IssueLinkTypeService with GetList and test 2019-12-12 14:57:35 -08:00
Shaun Dunning
a8bdfed27f feat: add support for JWT auth with qsh needed by add-ons 2019-09-05 11:04:10 -07:00
Omar
afc96b18d1 feat: Add GetAllStatuses 2019-08-19 07:51:49 -07:00
Benji Vesterby
b59a65c365 feat: Replace http.Client with interface for extensibility
Setting up the NewClient method to accept an interface that gives access
to the Do method of the http.Client rather than using a hard http.Client
so that an interface can be passed for mocking and other non-standard
clients can be used with go-jira.
2019-06-21 12:30:13 -07:00
Matthias Weiss
b2bcdc9f43 Add PermissionSchemeService
Expand the PermissionScheme struct of ProjectService.

Add new PermissionSchemeService with functions Get and GetList.

Add corresponding mocks and tests.
2019-05-13 18:33:41 -07:00
Matthias Weiss
5a7988ae5c Add RoleService
Add of RoleService with Get and GetList

Add corresponding tests + mocks
2019-05-13 17:55:06 -07:00
Sol Cates
1d76fca9ba added filter support for Jira issues 2018-10-08 15:18:43 -07: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
Nate Mara
f4f8fecc04
Merge branch 'master' into component-service 2018-06-27 15:39:51 -04: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
Nate Mara
a6efe394fa Add ComponentService to allow creation of Components 2018-06-25 10:48:21 -04:00
Shawn Catanzarite
433e65c477 Add support for 'fields' API 2018-06-12 18:27:42 -07:00
Thibaut Rousseau
8491cb0034
fix: Add PriorityService to the main 2018-06-12 10:22:48 +02:00
Shaun Dunning
a0af595623 rm IsAbs check 2018-05-10 10:12:40 -04:00
Shaun Dunning
2e5459f891 Some guards around url structures to help avoid bugs 2018-05-08 20:43:24 -04:00
zenixhuang
04cbb2fe5c use pagination from design 2018-03-16 19:01:13 +09: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
Florian Krauthan
cf2bcefedb Added basic auth support to the library 2017-02-08 14:37:57 -08:00
Andy Grunwald
8a4b1aca33 Added basic version of Group API (Thanks to @aviz) 2017-01-29 17:28:04 +01:00
Guilherme Rezende
c969fb4ee0 Add UserService to handle JIRA User endpoints 2016-10-31 10:24:30 -02:00
Andy Grunwald
5899a43d6a Merge pull request #42 from gm42/master
NewRawRequest method to use a native io.Reader instead of marshalling
2016-10-25 22:35:35 +02:00
Albin Gilles
5857a2e350 Minor fix to comply with go vet 2016-10-23 14:51:29 +02:00
gm42
dad2a7214f NewRawRequest method to use a native io.Reader instead of marshalling 2016-10-10 09:46:21 +02:00
Ante Kresic
e9740fe3e9 Fixed issue with Jira auth for multipart requests 2016-07-27 12:21:09 +02:00
Andy Grunwald
4b9e96b367 Moved transition service into issue service, because it relates to the issue api calls 2016-07-17 11:23:49 +02:00
Maciej Kwiek
2b74499969 Added basic Sprint API handling 2016-06-24 12:09:45 +02:00
Maciej Kwiek
1fd364aea2 Add Transition API handling
Added TransitionService with 2 methods:
 * GetList for retrieving possible transitions for an issue
 * Create for creating transition and changing issue status in the
   process
2016-06-20 17:14:55 +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
Evgen Kostenko
43018f069b Merge remote-tracking branch 'origin/master' into develop
* origin/master:
  When creating issue links, the id and self should be omitted along with comment if none is provided
  Expose comment ID
  Make issue link direction visible
  using Time for WorklogRecord.Started
  Adjusted a few things to be in line with other methods
  go fmt
  go fmt, go doc and reuse of Project struct
  Renamed "json_mocks" into "mocks"
  Refactored struct types by reusing already existing components
  Fixed typo in Cookies
  Moved progect.go to project.go
  Fix #12: Expose the base JIRA URL
  update .gitignore
  using native time.Time
  updating with search and worklogs

# Conflicts:
#	project_test.go
2016-06-15 12:25:10 +03:00
Evgen Kostenko
065bb9db44 Add boards and fix some bugs in project 2016-06-15 12:20:37 +03:00
Andy Grunwald
077933ab00 Fixed typo in Cookies 2016-06-03 22:43:41 +02:00
Andy Grunwald
47c547b9ff Merge branch 'master' of https://github.com/EvgenKostenko/go-jira into EvgenKostenko-master
* 'master' of https://github.com/EvgenKostenko/go-jira:
  refactor project tests + go fmt
  add one more test for project service
  delete uncompleted boards
  add fmt dependency to jira.go
  get Authenticated reports  session from main repository
  Add project and tests
  Implement workload in issue and Project list
  Change Coocke session get from request
2016-06-03 18:20:19 +02:00
Andy Grunwald
4efa3df3b1 Fix #12: Expose the base JIRA URL 2016-06-03 18:18:01 +02:00
Evgen Kostenko
c66958e3f2 refactor project tests + go fmt 2016-06-02 15:59:40 +03:00
Evgen Kostenko
de59b131b3 add fmt dependency to jira.go 2016-06-01 21:18:33 +03:00
Evgen Kostenko
c75a2ca567 Merge branch 'master' of https://github.com/andygrunwald/go-jira
# Conflicts:
#	issue.go
2016-06-01 16:08:30 +03:00
Evgen Kostenko
bbc0470766 Implement workload in issue and Project list 2016-05-29 19:42:38 +03:00