Josh Bialkowski
dca85b309a
repair after rebase
2019-12-18 12:18:47 -08:00
Josh Bialkowski
3384d1b26b
codereview #6 : don't fail one warning
...
* presence of an error in the import event doesn't indicate failure
2019-12-18 07:42:16 -08:00
Josh Bialkowski
4e64c834e2
codereview #5 : reverse-map and ImportWarning
...
* Fix git config reader can't read values with spaces
* Add bug-id-revmap config option for the reverse map, and use this
in the importer
* Add NewImportWarning for things that aren't exactly errors.
Use this for unhandled changelog events.
* Add NewExportWarning for things that aren't exactly errors.
Use this for un-exportable status changes.
* Strip newlines from titles on import
2019-12-18 07:42:16 -08:00
Josh Bialkowski
98bd372e60
codereview #4 : fixes from testing
...
* don't prefix imported title's with jira ID
* fix import new comment due to wrong variable name
* fix double import of comment edition due to improper err check
* fix JIRA cloud paginated changelog has a different JSON
field then the embedded changelog in the JIRA server issue
object
* fix splitting label strings yielded an empty string as a label
value
2019-12-18 07:42:16 -08:00
Josh Bialkowski
a59aaebc7e
codreview #3 : two credential types, more fixes
...
* Support both token and session credential types
* use getTimeDervedID in export.go
* keyOrigin -> core.KeyOrigin
* fix one indentation
* remove project key from operation metadata
* fix missing credentials codepath if not using sidecar
2019-12-18 07:42:16 -08:00
Josh Bialkowski
cd889572f7
codereview #2 : some cleanup, correct use of nothing-events
...
* return error, don't panic
* skipping status export is an error
* use switch in config.go
* move PromptPassword to input
* move client construction into getIdentityClient
* use non-pointer context throughout client since it is an interface
* remove some TODOs
* don't emit multiple nothing-events, just one per bug only if nothing
happened.
* rename EditBody to EditCreateComment
* add configuration notes about additional values
* store bug id map in a dictionary in the config
* some fixes from testing
2019-12-18 07:42:16 -08:00
Josh Bialkowski
7657a38ff2
codereview #1 : clean lint from golangcibot
2019-12-18 07:42:16 -08:00
Josh Bialkowski
eff830bdcb
Implement jira bridge
2019-12-18 07:42:13 -08:00
Michael Muré
e96d8e6771
Merge pull request #274 from MichaelMure/gitlab-bridge
...
bridge/gitlab: support self-hosted GitLab instance
2019-12-10 21:13:54 +01:00
amine
f6b4830c0b
bridge/gitlab: support self-hosted GitLab instance
2019-12-10 21:05:55 +01:00
Amine
ef6801a37f
Merge pull request #273 from MichaelMure/user-create-set
...
cmd: "user create" only assign the user identity if not set
2019-12-10 20:52:01 +01:00
Michael Muré
da6591e480
cmd: "user create" only assign the user identity if not set
2019-12-10 20:13:49 +01:00
Michael Muré
f1ed857cbd
Merge pull request #271 from MichaelMure/bridge-credentials
...
bridge: huge refactor to accept multiple kind of credentials
2019-12-10 00:42:23 +01:00
amine
58c0e5aac9
auth: Correctly cast configs[configKeyKind]
2019-12-09 17:16:44 +01:00
Michael Muré
4c6d33e48e
type the CredentialKind values
...
Co-Authored-By: Amine <hilalyamine@gmail.com>
2019-12-09 16:43:30 +01:00
Amine
69af7a1e0c
Merge pull request #272 from MichaelMure/fix-import-time-save
...
bridge: fix incorrect last import time on context cancel
2019-12-09 15:22:14 +01:00
Michael Muré
8f7f89561b
bridge: fix incorrect last import time on context cancel
2019-12-09 01:03:37 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials
2019-12-08 21:28:27 +01:00
Michael Muré
981a4a848b
Merge pull request #265 from contrapunctus-1/doc-grammar
...
readme - fix some grammatical issues
2019-11-29 16:09:33 +01:00
contrapunctus
f7f1924da7
readme - fix some grammatical issues
2019-11-29 20:07:10 +05:30
Amine
5207fb4109
Merge pull request #263 from MichaelMure/configure-cleanup
...
github: tiny cleanups of the configurator
2019-11-26 22:05:32 +01:00
Michael Muré
1a1e313f30
bridge: move export event handling to the CLI
2019-11-26 20:46:00 +01:00
Michael Muré
4f856d6f78
gitlab: configurator cleanup
2019-11-26 20:45:32 +01:00
Michael Muré
afe69d0c93
github: tiny cleanups of the configurator
2019-11-26 19:46:50 +01:00
Michael Muré
26a6269241
Merge pull request #262 from MichaelMure/bridge
...
bridge: trim inputs during bridge configuration
2019-11-26 19:07:14 +01:00
amine
7cb772095e
bridge: trim inputs during bridge configuration
2019-11-25 15:08:48 +01:00
Michael Muré
44f648a931
Merge pull request #260 from MichaelMure/bridge
...
Support bridge configuration with global tokens
2019-11-24 23:54:23 +01:00
amine
06abb5a531
bridge/gitlab: add gitlab bridge configuration
2019-11-24 18:04:48 +01:00
amine
da2d7970cd
bridge/core: add LoadTokensWithTarget and LoadOrCreateToken functions
...
bridge/github: global fixes
2019-11-24 14:38:44 +01:00
amine
09db1cda71
commands: add bridge configure --token-id flag
2019-11-23 19:26:27 +01:00
amine
014e754fcd
bridge/github: use core.ConfigKeyToken instead of keyToken
2019-11-23 19:20:55 +01:00
amine
b1d0f48f67
bridge/github: configuration with global configs
2019-11-23 19:20:32 +01:00
amine
bf7583862d
bridge/core: load token value in ensureInit
...
bridge/core: add more token functionalities
2019-11-23 19:20:19 +01:00
Michael Muré
6345895a3d
Merge pull request #258 from MichaelMure/fixes
...
Bridges fixes
2019-11-19 21:31:29 +01:00
Michael Muré
f35845d328
Merge pull request #255 from MichaelMure/dependabot/dep/github.com/awesome-gocui/gocui-a34ffb0
...
build(deps): bump github.com/awesome-gocui/gocui from `c9d3c2b` to `a34ffb0`
2019-11-19 21:29:26 +01:00
amine
17b4329973
vendor: update github.com/awesome-gocui/gocui dependencies
2019-11-19 21:29:09 +01:00
Michael Muré
76b612936d
bridge: use the target as well in the token ID
2019-11-19 21:23:03 +01:00
Michael Muré
dcf3feb0b5
Merge pull request #254 from MichaelMure/import-events
...
Bridge: correctly emit NothingEvents
2019-11-19 21:13:13 +01:00
Michael Muré
5054b8dbdc
github: sort project candidate in the interactive wizard
2019-11-19 21:12:10 +01:00
Michael Muré
22085f30d3
Merge pull request #256 from MichaelMure/dependabot/dep/github.com/xanzy/go-gitlab-0.22.1
...
build(deps): bump github.com/xanzy/go-gitlab from 0.22.0 to 0.22.1
2019-11-19 20:38:48 +01:00
amine
d6d5978b6d
bridge/launchpad: importer correctly emit NothingEvent
2019-11-19 20:33:20 +01:00
Michael Muré
60427f066a
bridge configure: no default name if the default has already been created
2019-11-19 20:20:19 +01:00
amine
87f86bca1e
vendor: update github.com/xanzy/go-gitlab dependencies
2019-11-19 20:17:51 +01:00
amine
967f19a30f
bridge/gitlab: importer and exporter correctly emit NothingEvents
2019-11-19 20:09:29 +01:00
amine
87244d3c8d
bridge/github: export correctly emit nothing events
2019-11-19 20:04:40 +01:00
Michael Muré
62fea2615d
Merge pull request #213 from MichaelMure/hash-collision
...
bug: make sure there is no Operation's hash collision
2019-11-19 20:03:57 +01:00
amine
8b5685bb99
bridge/github: importer corectly emit events
2019-11-19 19:54:07 +01:00
Michael Muré
283e97111b
bug: make sure there is no Operation's hash collision
2019-11-19 19:51:18 +01:00
Michael Muré
e01cefff98
Merge pull request #247 from MichaelMure/bridge-origin
...
bridge: move keyOrigin to core package
2019-11-19 19:25:43 +01:00
amine
8ffe2a9b03
bridge/launchpad: add missing metadata
...
bridge: use a specific key for origin metadata
2019-11-19 19:16:16 +01:00