Commit Graph

689 Commits

Author SHA1 Message Date
Patrick Pichler 3c0a62e74f Add gopass support 2019-10-03 13:24:32 +02:00
coryb 967602392f fix travis build badge 2019-10-02 11:00:02 -07:00
coryb 568f0be821 Merge pull request #283 from go-jira/sprig
add sprig template functions, replaces [#215]
2019-10-02 10:53:09 -07:00
Cory Bennett 719f7a68a7 add sprig template functions, replaces [#215]
http://masterminds.github.io/sprig/
2019-10-02 08:24:04 -07:00
Cory Bennett 979910f8dd Merge branch 'arenstar-feature/projectversion' 2019-10-01 23:50:19 -07:00
Cory Bennett 90f01ce60a [#232] fix api to use common Version schema
also rewrote the schema fetcher to use Go
2019-10-01 23:40:33 -07:00
Cory Bennett 2c9d957304 version bump 2019-10-01 21:33:10 -07:00
Cory Bennett 4445255914 Updated Changelog 2019-10-01 21:33:10 -07:00
Cory Bennett a13b046fad fix syntax 2019-10-01 21:33:10 -07:00
Adriano 997b6e1f24 Add 'pctOf' and 'fit' template functions 2019-10-01 21:33:10 -07:00
Patrick Cockwell 8ede63c37e Address comments for direct name match 2019-10-01 21:33:10 -07:00
Patrick Cockwell 62ccffaf05 Choose exact transition match if available 2019-10-01 21:33:10 -07:00
Mike Pountney 2062dffc60 fix _t/test_binaries.sh to work on Linux + MacOS 2019-10-01 21:33:10 -07:00
Mike Pountney 435747f152 Ensure travis makes and tests binaries 2019-10-01 21:33:10 -07:00
Mike Pountney d343852592 Update from xgo to gox; add basic test for binaries 2019-10-01 21:33:10 -07:00
Mike Pountney 22c72f2351 version bump 2019-10-01 21:33:10 -07:00
Mike Pountney a057957086 Updated Changelog 2019-10-01 21:33:10 -07:00
Mike Pountney 3333859bf0 Updated Changelog 2019-10-01 21:33:10 -07:00
Cory Bennett 8b56ee9fb9 update to more actively supported xgo for module support 2019-10-01 21:33:10 -07:00
Mike Pountney a467a5c5e5 Add 1.13.x build test to travis 2019-10-01 21:33:10 -07:00
Cory Bennett 0d7d4dc4b8 [#277] update figtree to latest 2019-10-01 21:33:10 -07:00
Mike Pountney ba7cc13145 Switch over to using github.com/go-jira/jira, from gopkg.in
There should be no reason to use gopkg.in versioned imports now that
we're using go modules. I think, IANAE.

gopkg.in kind of gets in the way of modules, as it only pulls over
tagged releases from github.com -- this then means that you need to use
go modules 'replace' syntax in the go.mod to use a non-versioned commit
or branch. This is feasible, but kind of ugly.

go modules defaults to pulling the latest version, so the default
behavior is the same as when pulling go-jira.v1 from gopkg.in.
2019-10-01 21:29:46 -07:00
Mike Pountney 3984d0d484 Fixes #228: make ':' gpg files temporary to fix go mod 2019-10-01 21:29:45 -07:00
Matthias Bethke 0037a21a95 fix worklog template to allow multiline comments 2019-10-01 21:29:45 -07:00
Justin Ko b99dfbfbf6 Allow reading password from stdin
Allow reading password from stdin in `jira login`. This is useful for
combining the jira tool with other command-line utilities.
2019-10-01 21:29:45 -07:00
Cory Bennett 8e4245e5bb add CODEOWNERS file 2019-10-01 21:29:45 -07:00
Daniel Martí bb9790f287 all: unindent some code 2019-10-01 21:29:45 -07:00
Daniel Martí 17003717d9 don't use ReadAll when decoding JSON
An empty stream isn't valid JSON, so we shouldn't silently ignore it.
2019-10-01 21:29:45 -07:00
Daniel Martí dc9a9de165 README: trim down the content
This README is huge; the document shouldn't take more than two or three
screens. If we need more docs, they should be linked to and live
elsewhere.

For now, start by removing unnecessary sections. Gitter has been
completely unused since 2017, so remove it. The table of contents also
takes a lot of vertical space, when we don't want to have that much
content to begin with.

Tips on forking are also unnecessary, since that's the same for all Go
projects. Moreover, this is out of date now that the project is a Go
module.

Remove the help output, as that can be obtained extremely easily by just
running 'jira -h'.

Finally, remove the v0-v1 changes, as v0 was last released over three
years ago. It's extremely unlikely that anyone still has to upgrade from
the older version.
2019-10-01 21:29:45 -07:00
Daniel Martí 30998cbb18 start making staticcheck happier 2019-10-01 21:29:45 -07:00
Daniel Martí 89fe2ecf16 all: convert to a Go module
And remove vendor/, as it's now unnecessary. go.sum ensures that
dependencies aren't tampered with, and proxy.golang.org keeps copies of
all the archives.
2019-10-01 21:29:45 -07:00
Daniel Martí 8994b42f71 t: rename to _t to fix module support
The following two files contain characters which aren't valid in source
files within a Go module:

	t/.password-store/GoJira/api-token:gojira@corybennett.org.gpg
	t/.password-store/GoJira/api-token:mothra@corybennett.org.gpg

The directory only contains test scripts, so it doesn't need to be
included in the module. The simplest way to do that is to start the
directory with an underscore.

Fixes #228.
2019-10-01 21:29:45 -07:00
Daniel Martí 80743e4da8 CI: test on Go 1.12.x, cleanup
We can also use the apt addon to install packages. We also don't need
fast_finish, since we don't use allow_failures anywhere.

Finally, the 'go get' line was pointless, as all dependencies are
vendored, and 'go test' will catch build failures.
2019-10-01 21:29:45 -07:00
Cory Bennett 9f46c8499d make automatic pagination on search optional, fix tests 2019-10-01 21:29:45 -07:00
Julien Graglia bca064be1f API Token auth requires "user" config
API Token authentication requires the `user ` to be defined in the config
2019-10-01 21:29:45 -07:00
Julian Swagemakers 48c15e2daa docs: update pass documentation with password-name
This will update the README.md to include setting the configuration
option password-name when using pass.
2019-10-01 21:29:45 -07:00
CodeLingo Bot 3cf2e56e1f Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-10-01 21:29:45 -07:00
Cory Bennett c270f20d21 add test for --limit 2019-10-01 21:29:45 -07:00
Cory Bennett a6bf26052c prefer defer resp.Body.Close to avoid leaks on subsequent errors 2019-10-01 21:29:45 -07:00
Cory Bennett 954a97eca3 version bump 2019-10-01 21:29:45 -07:00
Cory Bennett dd6901b2cd Updated Changelog 2019-10-01 21:29:45 -07:00
Miles Maddox 9186205b9e add pagination to search 2019-10-01 21:29:45 -07:00
Cory Bennett 78c66dba6f version bump 2019-10-01 21:20:00 -07:00
Cory Bennett 87112c0f98 Updated Changelog 2019-10-01 21:20:00 -07:00
Cory Bennett 94dd489a10 fix syntax 2019-10-01 21:20:00 -07:00
coryb 050a2b4819 Merge pull request #273 from acaloiaro/master
Add 'pctOf' and 'fit' template functions
2019-10-01 21:15:20 -07:00
coryb d3b3c03f90 Merge pull request #282 from pcockwell/fix/choose-direct-transition-match-if-available
Choose exact transition match if available
2019-09-30 17:06:30 -07:00
Patrick Cockwell a70384b03b Address comments for direct name match 2019-09-30 16:57:14 -07:00
Patrick Cockwell a646f76b1f Choose exact transition match if available 2019-09-30 16:41:44 -07:00
Mike Pountney 9bb0ff379d Merge pull request #280 from go-jira/cut_v1_0_21
Cut v1.0.21 onto master; make binaries with gox not xgo, and test them.
2019-09-28 23:50:13 -07:00