Commit Graph

32 Commits

Author SHA1 Message Date
Michael Muré
8ef6438fb4
Merge pull request #341 from MichaelMure/bridges-default-login
bridge: record the login used during the configure and use it as default credential
2020-02-23 19:20:45 +01:00
Michael Muré
dc21ad0892
use regex.MustCompile instead of dealing with the error 2020-02-23 14:23:34 +01:00
Michael Muré
0cebe1e57e
bridge: record the login used during the configure and use it as default credential
fix #338
2020-02-23 14:20:54 +01:00
Michael Muré
87b97ca4b2
bridges: more refactor and cleanup 2020-02-15 13:45:14 +01:00
Michael Muré
fe3d5c95e4
bridges: massive refactor
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +01:00
Michael Muré
34083de0df auth: refactor and introduce Login and LoginPassword, salt IDs 2020-02-12 23:37:57 +01:00
Michael Muré
bd7b50bc86
github/gitlab: many fixes and improvments at the config step 2020-02-10 01:22:01 +01:00
Michael Muré
9b1aaa032d
bridge: fix 2 uncatched errors 2020-02-08 22:08:35 +01:00
Michael Muré
f515b9a129
gitlab also compile 2020-02-08 17:19:57 +01:00
Michael Muré
26f0152384
WIP 2020-02-08 17:18:28 +01:00
Michael Muré
86b114ae7e
gitlab: proper token generation URL with custom base URL 2020-01-03 13:53:59 +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
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
amine
f6b4830c0b bridge/gitlab: support self-hosted GitLab instance 2019-12-10 21:05:55 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials 2019-12-08 21:28:27 +01:00
Michael Muré
4f856d6f78 gitlab: configurator cleanup 2019-11-26 20:45:32 +01:00
amine
7cb772095e bridge: trim inputs during bridge configuration 2019-11-25 15:08:48 +01:00
amine
06abb5a531 bridge/gitlab: add gitlab bridge configuration 2019-11-24 18:04:48 +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
Amine Hilaly
f3d8da1075
bridge/core: add tokenStdin field to bridgeParams
commands: move tokenStdin handling logic to bridge.Configure
2019-09-02 09:44:00 +02:00
Amine Hilaly
0381400bfd
commands: read token from stdin in bridge configuration
bridge: improve bridge config validation
2019-08-31 23:02:20 +02:00
Amine Hilaly
0329bfdf44
bridge/gitlab: change validateProjectURL signature
bridge/gitlab: code cleanup
2019-07-23 17:29:53 +02:00
Amine
d098a96407
bridge/gitlab: global code and comment updates
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-07-23 17:18:04 +02:00
Amine Hilaly
ece2cb1262
bridge/gitlab: improve tests and errors
bridge/gitlab: global fixes
2019-07-23 17:18:04 +02:00
Amine Hilaly
7726bbdbcf
bridge/gitlab: add bridge config tests 2019-07-23 17:18:04 +02:00
Amine Hilaly
ce3a2788ab
bridge/gitlab: fix note error handling bug
bridge/gitlab: remove unused functions
2019-07-23 17:18:04 +02:00
Amine Hilaly
6c02f0951d
bridge/gitlab: prompt only for user provided token 2019-07-23 17:18:04 +02:00
Amine Hilaly
5144525649
bridge/gitlab: remove request token methodes 2019-07-23 17:18:04 +02:00
Amine Hilaly
35a033c0f1
bridge/gitlab: bridge project validation
bridge/gitlab: token generation
2019-07-23 17:18:04 +02:00
Amine Hilaly
a1a1d4868b
bridge/gitlab: add bridge configure 2019-07-23 17:18:04 +02:00