1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-07-15 01:04:38 +02:00
Commit Graph

550 Commits

Author SHA1 Message Date
39d06f7d62 Switched from deprecated terminal.ReadPassword to term.ReadPassword in examples: basicauth, create, renderedfields and searchpages 2021-03-08 22:44:30 +00:00
51be7924f8 chore(deps): bump github.com/google/go-cmp from 0.5.4 to 0.5.5 (#360)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.4...v0.5.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-05 08:16:45 +01:00
0779eb292a Merge pull request #358 from manuelbcd/new-example-create-with-custom-fields
Added example "Create with custom fields"
2021-03-04 06:07:09 -05:00
7e1d26c27b PR 358 - x/term.ReadPassword and os.Exit 2021-03-04 10:58:08 +00:00
c77a7ee32e Merge pull request #357 from manuelbcd/fix-example-create
Fixed examples/create response output
2021-03-03 18:21:51 -05:00
c2a046111c Added example 2021-03-03 23:09:30 +00:00
abcff6f1b5 Fixed examples/create response output 2021-03-03 22:56:21 +00:00
d30c2ef40d Merge pull request #354 from kp2401075/paginationExample
Adding example for Pagination
2021-03-03 05:20:05 -05:00
cac0fa9648 Updates as requested 2021-03-03 12:52:56 +11:00
9c2ab8f856 var total was having an issues 2021-03-03 10:05:31 +11:00
97404d7e0c update as requested 2021-03-03 10:00:55 +11:00
5168cea3f4 Merge pull request #356 from manuelbcd/master
Typo fix in issue_test.go (minor fix)
2021-03-02 14:42:42 -05:00
f30f8c9f7c Typo fix in issue_test.go 2021-03-02 19:12:34 +00:00
89e9da4369 Adding example for Pagination 2021-02-19 08:34:23 +11:00
1a84689d0c Raise go versions in testing workflow (#349) 2021-02-09 11:13:37 +01:00
5806b81f1c Added property "StartedAfter" to GetWorklogsQueryOptions struct accor… (#344)
* Added property "StartedAfter" to GetWorklogsQueryOptions struct according to official API documentation

* Format issue.go
2021-02-09 10:17:23 +01:00
437128ac42 chore(deps): bump github.com/pkg/errors from 0.8.0 to 0.9.1 (#345)
Bumps [github.com/pkg/errors](https://github.com/pkg/errors) from 0.8.0 to 0.9.1.
- [Release notes](https://github.com/pkg/errors/releases)
- [Commits](https://github.com/pkg/errors/compare/v0.8.0...v0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>
2021-02-08 18:59:12 +01:00
744cbf2b47 chore(deps): bump github.com/trivago/tgo from 1.0.1 to 1.0.7 (#346)
Bumps [github.com/trivago/tgo](https://github.com/trivago/tgo) from 1.0.1 to 1.0.7.
- [Release notes](https://github.com/trivago/tgo/releases)
- [Changelog](https://github.com/trivago/tgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/trivago/tgo/compare/v1.0.1...v1.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-08 18:48:13 +01:00
939da6e201 chore(deps): bump github.com/fatih/structs from 1.0.0 to 1.1.0 (#348)
Bumps [github.com/fatih/structs](https://github.com/fatih/structs) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/fatih/structs/releases)
- [Commits](https://github.com/fatih/structs/compare/v1.0...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-08 18:47:40 +01:00
1e29603f12 chore(deps): bump github.com/google/go-cmp from 0.3.0 to 0.5.4 (#347)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.3.0 to 0.5.4.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.3.0...v0.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-08 18:41:35 +01:00
f304d4ef56 Merge pull request #342 from ahmadsalimi/feature/support-organizations
Feature: Add support for Jira ServiceDesk and its organizations
2021-02-08 02:06:45 -08:00
a4fbf264e7 fix some posible nil reference 2021-02-08 04:02:36 +03:30
3017996765 Feature: Add support for Jira ServiceDesk and its organizations 2021-02-08 03:53:28 +03:30
5601d2bfe2 Feature: Implement delete issue link api (#341) 2021-02-06 16:09:14 +01:00
524ede3750 Merge pull request #336 from madest92/bool-version
Fixed bool type for release version
2021-01-25 13:11:40 -08:00
4a5830d453 Fixed bool type for release version 2021-01-25 20:16:14 +03:00
3754d5a5c6 Add Items and Custom to FieldSchema (#332)
* Add Items and Custom to FieldSchema

* removing commas. oops

* Apply suggestions from code review

Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>

* formatting

Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>
2021-01-09 10:02:16 +01:00
6a6c303c9a Merge pull request #328 from fffinkel/update-travisci-go-version
Update travisci go version
2020-11-29 21:08:11 -05:00
465476156d Remove 1.12 from travis builds
Per Wes' suggestion, let's only go back three Go versions, as only the
last two are even officially supported. Update the README accordingly.
2020-11-30 00:59:29 +00:00
64663d1d47 Add Go 1.15 to supported versions 2020-11-30 00:14:29 +00:00
0d43108abb Remove tests for Go < 1.12 2020-11-30 00:13:46 +00:00
a39d6d2037 Merge pull request #303 from kernelfail/master
fix RemoteLinkStatus
2020-10-24 22:16:27 -05:00
5d5f811f4d chore(release): 1.13.0 v1.13.0 2020-10-25 02:54:38 +00:00
36277cd7ae chore(release): 1.12.0 v1.12.0 2020-10-25 02:29:51 +00:00
a140437bae Merge pull request #320 from fffinkel/master
Make basic auth deprecation more clear in README
2020-09-20 15:14:32 -04:00
7bffb2aaa7 Make basic auth deprecation more clear in README
Atlassian has deprecated password-based basic authentication for users
of Atlassian Cloud, but it remains useable for users with a self-hosted
Jira. Update the README to make this more clear.

closes #317
2020-09-20 19:05:56 +00:00
72160de143 Merge pull request #319 from fffinkel/master
Add issue status change example to README
2020-09-20 13:40:20 -04:00
e8e35b673f Add issue status change example to README
closes #318
2020-09-20 17:19:05 +00:00
6be9c38b9a Disable stale bot (#313)
Per discussion in issue #310, the stale bot is now considered a
bad user experience. Change days before stale and close to a high number
to disable it, as we cannot remove this configuration until the
integration is also removed.

Co-authored-by: Matt Finkel <mattf@ziprecruiter.com>
2020-08-16 11:48:59 +02:00
607c9e4b9a fix RemoteLinkStatus 2020-06-18 23:13:01 +03:00
de60bbed3f Update testing github action workflow to actions/cache@v2 2020-05-28 10:23:40 +02:00
f50cb07b29 fix: removing the use of username field in searching for users (#297) 2020-05-22 09:38:17 +02:00
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
f6b1dcafcf fix(tests): Fix TestIssueService_PostAttachment unit test 2020-05-03 17:49:10 +02:00
ef6d633ae1 style: Fix typos
go-jira/examples/renderedfields/main.go
	Line 51: warning: "Targetting" is a misspelling of "Targeting" (misspell)

go-jira/authentication.go
	Line 169: warning: "authenticaiton" is a misspelling of "authentication" (misspell)

go-jira/issue.go
	Line 802: warning: "specifiying" is a misspelling of "specifying" (misspell)
2020-05-03 17:46:02 +02:00
e20a3a057d style: Make code go fmt conform 2020-05-03 15:47:27 +02:00
eaaeec5f1c chore(test): Remove unit testing log output for success cases (#293)
During running the unit tests we see output like

=== RUN   TestIssueService_DeleteAttachment
    TestIssueService_DeleteAttachment: issue_test.go:587: Attachment deleted
    TestIssueService_DeleteAttachment: issue_test.go:592: No error

This log can be removed, because this mostly confirms the success case.
The opposite case is throwing a testing error, which is visible as well.
Hence, there is no need to log this messages durcing testing
2020-05-03 15:45:24 +02:00
80c02828ca feat(project): Add GitHub Actions testing workflow (#289)
GitHub actions is a workflow engine.
This testing workflow will
- keep everything inside GitHub (one platform)
- reduce dependency to an external service (TravisCI)
- introduce stricter testing (next to unit tests, staticcheck, fmt, vet)

* fix(tests): TestIssueService_GetEditMeta_Fail fails on windows due to error message checking

We check the error string in TestIssueService_GetEditMeta_Fail.
On different operting systems, this error message is different. See

- Linux: TestIssueService_GetEditMeta_Fail: metaissue_test.go:456: Error Get "http://127.0.0.1:65328/rest/api/2/issue/PROJ-9001/editmeta": dial tcp 127.0.0.1:65328: connect: connection refused
- Windows: Error Get "http://127.0.0.1:50122/rest/api/2/issue/PROJ-9001/editmeta": dial tcp 127.0.0.1:50122: connectex: No connection could be made because the target machine actively refused it.

Now we check the error type instead of the error message

* chore(tests): Support only the current + the last two versions

go-jira follows Go's Release Policy for testing.
See https://golang.org/doc/devel/release.html#policy

Related #290
2020-05-03 15:45:09 +02:00
e1f4265e2b feat(context): Add support for context package 2020-05-03 15:38:32 +02:00
8b64c7f005 fix(issue): IssueService.Search() with a not empty JQL triggers 400 bad request (#292)
The JQL search term is escaped twice.

closes issue #291
2020-05-03 10:05:39 +02:00