Michael Muré
d2ed6747e5
gitlab: fix edit not being pushed with baseUrl
...
fix #284
2020-01-03 13:52:03 +01:00
Michael Muré
fc568209f0
termui: fix an excessive assumption about an error
2019-12-27 20:08:58 +01:00
Michael Muré
1bcba473fb
Merge pull request #280 from MichaelMure/bridge-gitlab
...
bridge/gitlab: add base url configuration
2019-12-27 12:12:01 +01:00
Amine
c769348c75
bridge/gitlab/config.go printing typo
...
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-12-27 03:29:53 +01:00
Michael Muré
8acbc9db40
Merge pull request #277 from MichaelMure/dependabot/dep/github.com/MichaelMure/go-term-text-0.2.4
...
build(deps): bump github.com/MichaelMure/go-term-text from 0.2.1 to 0.2.4
2019-12-26 21:50:48 +01:00
Michael Muré
6fffe24dea
dep ensure
2019-12-26 21:49:39 +01:00
dependabot-preview[bot]
2852bb27e5
build(deps): bump github.com/MichaelMure/go-term-text
...
Bumps [github.com/MichaelMure/go-term-text](https://github.com/MichaelMure/go-term-text ) from 0.2.1 to 0.2.4.
- [Release notes](https://github.com/MichaelMure/go-term-text/releases )
- [Commits](https://github.com/MichaelMure/go-term-text/compare/v0.2.1...v0.2.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-26 21:44:38 +01:00
Michael Muré
3a3a4ffacd
Merge pull request #278 from MichaelMure/bridge-conf-workflow
...
bridge: allow to configure and pull without having set a user first
2019-12-26 21:42:47 +01:00
amine
5cffb5d114
bridge/gitlab: add missing baseUrl prompt and options
...
bridge/gitlab: fix api calls with self hosted Gitlab instances
2019-12-26 20:16:18 +01:00
Michael Muré
864d3ed335
bridge: allow to configure and pull without having set a user first
...
- init() only the importer or exporter as required
- assign a "default user" user Id to credentials at creation if no user has been set
- "bridge auth": also display the user
- "bridge auth show": adapt to a potential "default user" user Id
- "bridge configure": allow to run without a user set
- "bridge pull": allow to run without a user set
- "user adopt": replace "default user" by the actual user id when run
2019-12-25 23:25:39 +01:00
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