Commit Graph

135 Commits

Author SHA1 Message Date
coryb 83da78dfdc Merge pull request #14 from mikepea/ls_with_updated
Add 'updated' to queryfields; dateFormat template command; bug fix.
2015-10-15 08:37:47 -07:00
Mike Pountney 68d3baeac6 Implement dateFormat template command
Wrapper around time.Format, so that we can make concise lists without
the whole JIRA ISO timestamp, eg:

{{ dateFormat "2006-01-02T15:04" .fields.updated }}
2015-10-15 12:43:03 +01:00
Mike Pountney 91e24759e0 Add 'updated' field to default queryfields.
This is pretty essential if you want to get an idea of how stale a ticket is.
2015-10-15 12:35:07 +01:00
Mike Pountney 4d7fdb87a9 Fix export-templates option (typo) 2015-10-15 12:05:33 +01:00
Cory Bennett 47ced2fa24 when yaml element resolves to "\n" strip it out so we dont post it to jira 2015-10-06 11:54:05 -07:00
Cory Bennett 618f245c35 print PUT/POST data when using --dryrun to help debug 2015-10-06 11:50:47 -07:00
Cory Bennett 9d48ca222a bump version 2015-09-19 00:17:32 -07:00
Cory Bennett 6f3dba4e43 Updated Changelog 2015-09-19 00:17:32 -07:00
Cory Bennett 909eb06364 replace dead/deprecated code.google.com/p/gopass with golang.org/x/crypto/ssh/terminal for reading password from stdin 2015-09-19 00:17:08 -07:00
Cory Bennett 3977e530f7 bump version 2015-09-18 23:26:16 -07:00
Cory Bennett 52b1126b28 Updated Changelog 2015-09-18 23:26:16 -07:00
Cory Bennett 9348a4b4c0 fix exception from "jira create" 2015-09-18 23:24:50 -07:00
Cory Bennett 1c08a7d609 add some debug messages to help diagnose login failures 2015-09-18 23:18:38 -07:00
Cory Bennett bb9097b3ec bump version 2015-09-16 23:22:06 -07:00
Cory Bennett 355d35ff58 Updated Changelog 2015-09-16 23:22:06 -07:00
Cory Bennett 0ae6a0790a update version when we create changelog entries 2015-09-16 23:21:36 -07:00
Cory Bennett 8385ee2afb add --version 2015-09-16 23:16:51 -07:00
Cory Bennett 23347ddcad Updated Changelog 2015-09-16 23:05:02 -07:00
Cory Bennett 15ae929703 fix command line parser broken in 0.0.10 2015-09-16 23:04:36 -07:00
Cory Bennett e2c27f18d2 update changelog 2015-09-15 23:43:57 -07:00
Cory Bennett 2ee842270a Updated Changelog 2015-09-15 23:41:20 -07:00
Cory Bennett 07e3f7bea6 gofmt 2015-09-15 23:40:41 -07:00
Cory Bennett 67f30f7d46 update usage 2015-09-15 23:29:56 -07:00
Cory Bennett 23590d4173 allow for command aliasing in conjunction with executable config files 2015-09-15 23:27:06 -07:00
Cory Bennett ef7a57ec24 update usage 2015-09-15 22:55:19 -07:00
Cory Bennett 4a19089dd7 Updated Changelog 2015-09-15 20:34:19 -07:00
Cory Bennett f84e77fd84 * use forked yaml.v2 so as to not lose line terminations present in jira fields
* adding a |~ literal yaml syntax to just chomp a single newline (again to preserve
existing formatting in jira fields)
* for indent/comment allow for unicode line termination characters that yaml will use for parsing
2015-09-15 19:31:38 -07:00
Cory Bennett 4265913001 fix "edit" default option, change how defaults are dealt with for filters 2015-09-14 12:31:53 -07:00
Cory Bennett 968a9df71f for edit template add issue id as comment, also add "comments" as comment
so you can review the comment details while editing
2015-09-14 12:30:26 -07:00
Cory Bennett d6648687fb add "comment" template filter to comment out multiline statements 2015-09-14 12:29:30 -07:00
Cory Bennett c0070cfd58 add getOpt wrappers to get options with defaults 2015-09-14 12:29:05 -07:00
Cory Bennett d229ac1156 make --dryrun work
refactor config/option loading so command options override settings in config files
allow query options to be used on the "edit" command to iterate editing
2015-09-14 00:14:13 -07:00
Cory Bennett f8c8ddf78e move remove duplication for defaults 2015-09-13 17:31:28 -07:00
Cory Bennett 39318ebf75 adding "clean" target 2015-09-13 17:13:55 -07:00
Cory Bennett 7bbd571078 use optigo for option parsing, drop docopt 2015-09-13 17:00:03 -07:00
Cory Bennett ea67a77863 allow "abort: true" to be set while editing to cancel the edit operation 2015-09-11 23:47:09 -07:00
Cory Bennett 99f62a9e99 gofmt 2015-09-11 22:13:23 -07:00
Cory Bennett 85f617c13c tweak changelog generation 2015-09-11 22:13:12 -07:00
Cory Bennett 0a4d6aece8 fix missing arg of Sprintf 2015-09-11 22:12:38 -07:00
Cory Bennett e69b65cd7d if no changes are made on edit templates then abort edit 2015-09-11 22:04:02 -07:00
Cory Bennett 0ede380834 updated for 0.0.8 2015-09-11 21:18:27 -07:00
Cory Bennett faf0793312 bump version 2015-07-31 11:12:24 -07:00
Cory Bennett eeb63441dc update for max_results option 2015-07-31 11:11:36 -07:00
coryb 8d3a6ddd80 Merge pull request #11 from mikepea/max_results_option
Add --max_results option for 'ls'
2015-07-31 10:37:04 -07:00
Mike Pountney e06ff0cc54 Add --max_results option for 'ls'
This closes #10

Shifts the hardcoded maxResults value for the cmdList json body
into a 'max_results' option.

Note that testing against our JIRA instance, in a project with
more than 1000 open issues, suggests that the JIRA has an internal
limit of 1000 results in a single query.
2015-07-31 17:38:45 +01:00
Cory Bennett cfd09c306b update Changelog 2015-07-01 10:22:06 -07:00
Cory Bennett 6374897b58 fix the "all" build 2015-07-01 10:20:48 -07:00
Cory Bennett 4f45159dbf add cross-compile setup task 2015-07-01 09:13:03 -07:00
Cory Bennett c3d62c0fa1 udpate version 2015-07-01 09:12:40 -07:00
Cory Bennett b9e5564dff Merge branch 'master' of github.com:Netflix-Skunkworks/go-jira 2015-07-01 08:50:40 -07:00