Matthias Simon
34e6f3c224
Fix comparison mix-up in gitlab importer
2021-02-07 17:01:59 +01:00
vince
4f31e24467
cleanup title on gitlab import
2020-10-28 09:44:08 +08:00
6543
4143c3d176
Vendor: updage xanzy/go-gitlab to v0.38.2 ( #473 )
...
* build(deps): bump github.com/xanzy/go-gitlab from 0.33.0 to 0.38.2
* migrate
* refactor
2020-10-25 01:05:34 +02:00
Michael Muré
1a0c86a12d
repo: use go-git in more places, fix push
2020-10-04 19:56:16 +02:00
Michael Muré
3ecbf8db28
bridge: store credentials in the Keyring instead of the git config
2020-09-29 20:42:21 +02:00
Michael Muré
0590de9f04
gitlab: skip the broken test as "known broken" :(
2020-07-26 11:35:08 +02:00
Michael Muré
3fcdd7ec80
update go-gitlab
2020-07-26 11:28:51 +02:00
Michael Muré
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
...
- allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
- generalize the memory-only and persisted Lamport clocks behind a common interface
- rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
- test previously untested components with those new tests
Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
2020-06-26 19:14:22 +02:00
Michael Muré
aab3a04d0c
bug: harmonize how time are used, fix some issues in command special formats
...
This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
2020-06-25 23:18:17 +02:00
Michael Muré
903549cadf
gitlab: fix iterator (paginate with first index 1) and avoid the trailing API call
2020-04-04 12:42:08 +02:00
Michael Muré
f4ca533fe1
gitlab: refactor the iterator, fix bugs
...
Notably, properly reset sub iterators when changing to the next issue
2020-03-28 21:23:18 +01:00
Michael Muré
38b42bc867
jira/gitlab: fix a bad login handling in the configurator
2020-03-28 20:10:52 +01:00
Michael Muré
8389df0711
gitlab: match bugs on IDs + baseURL because the URL is not stable
2020-03-28 17:06:33 +01:00
amine
49285b03c9
gitlab: fix bugs import url
2020-03-15 19:32:32 +01:00
Michael Muré
893de4f5c0
identity: bring back the login to hold that info from bridges (purely informational)
2020-02-25 21:35:57 +01:00
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é
e231b6e839
bridges: pass the context to Init for when a client build process needs it
2020-02-15 15:46:36 +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é
bef35d4c67
bridge: hopefully fix tests
2020-02-08 22:05:13 +01:00
Michael Muré
2e7ac569ad
fix tests ?
2020-02-08 17:35:35 +01:00
Michael Muré
646fd681ff
it compiles \o/
2020-02-08 17:19:57 +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é
d2ed6747e5
gitlab: fix edit not being pushed with baseUrl
...
fix #284
2020-01-03 13:52:03 +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
967f19a30f
bridge/gitlab: importer and exporter correctly emit NothingEvents
2019-11-19 20:09:29 +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
Michael Muré
3984919a3d
bridge: various cleanups
2019-11-09 13:26:48 +01:00
amine
b1a7618428
bridge/gitlab: add missing error check in export tests
2019-11-05 21:15:21 +01:00
amine
4666763d4d
bridge/gitlab: use gitlab.Labels pointer instead of string slice
2019-10-24 21:08:31 +02:00
Amine
ed774e4e50
bridge/gitlab: iterator use simple swap
...
bridge/gitlab: add documentation explaining why we are doing this
2019-10-13 12:57:56 +02:00
Amine
312bc58c54
bridge/gitlab: iterator now query all label events when NextLabelEvent() i called, and sort them by ID
2019-10-02 15:39:24 +02:00
Amine
8498deaa19
bridge/gitlab: fix integration tests
2019-10-01 10:53:54 +02: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