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

17 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
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
clement
436469b62d fix(IssueService.GetWatchers): UserService.GetByAccountID support accountId params 2020-03-11 12:57:09 -07:00
mhupman
52ab347903 feat: Add AccountType and Locale to User struct 2019-07-22 19:09:11 -07:00
bmcginnis
5369039331 Add AccountID to User struct
Addresses Issue #203 and Atlassian's new GDPR requirements.
2019-04-16 12:45:09 -04:00
Lev Zakharov
cbab0bba29 Fix apiEndpoint creation in UserService.Find 2019-01-20 11:45:14 +01:00
Vladimir N. Indik
8201aaa4d4 Add delete method for user 2018-07-11 18:04:51 +02:00
Eugene Dzhurinsky
ccc70f9aab Added functions to provide optional parameters to the user search.
Signed-off-by: Eugene Dzhurinsky <jdevelop@gmail.com>
2018-07-02 22:11:58 -04:00
Eugene Dzhurinsky
b01e0251ce Added the method to get the profile of the currently logged in user.
https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-myself-get

Signed-off-by: Eugene Dzhurinsky <jdevelop@gmail.com>
2018-06-28 18:44:35 -04:00
Bob Briski
56d87db29c Cleaning a bunch of go vet issues 2018-02-28 22:46:54 -08:00
Andy Grunwald
5ac13b726c Applied NewJiraError for user api endpoints 2017-12-10 19:56:03 +01:00
Andy Grunwald
53ce3b6ee5 Merge branch 'master' of https://github.com/manute/go-jira into manute-master
* 'master' of https://github.com/manute/go-jira:
  finding users by email, username or name
2017-12-10 19:54:09 +01:00
b4b4r07
fbd056e79a Add some APIs on a JIRA group 2017-11-28 11:56:49 +09:00
Manuel Alonso
ed19f623b5 finding users by email, username or name 2017-11-27 18:25:08 +01:00
Pablo Moncada
46c9691c07 Fix User.GET() method
According to https://docs.atlassian.com/jira/REST/cloud/#api/2/user-getUser username must be provided as a query string parameter
2016-11-22 22:37:27 +01:00
Guilherme Rezende
c969fb4ee0 Add UserService to handle JIRA User endpoints 2016-10-31 10:24:30 -02:00