Michael Muré
45b04351d8
bug: have a type for combined ids, fix https://github.com/MichaelMure/git-bug/issues/653
2022-08-22 13:25:26 +02:00
Michael Muré
5511c230b6
move {bug,identity} to /entities, move input to /commands
2022-08-18 23:44:06 +02:00
Michael Muré
05d73e1b53
Merge pull request #571 from 5nord/add-new-gitlab-iterator
...
[gitlab] Add new iterator with state change events
2022-02-01 09:24:58 +01:00
Michael Muré
e762290e23
gitlab: order events on the fly
2021-12-05 11:07:29 +01:00
dependabot[bot]
322f0639c2
Bump github.com/xanzy/go-gitlab from 0.48.0 to 0.50.0
...
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab ) from 0.48.0 to 0.50.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases )
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go )
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.48.0...v0.50.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 10:07:56 +02:00
Matthias Simon
aa4e225a80
gitlab: Add new iterator with state change events
...
Retrieving events is spread across various various Gitlab APIs. This
makes importing and sorting Gitlab events by time quite complicated.
This commit replaces the old iterators with a goroutine/channel-based
iterator, which merges the individual Gitlab API streams into a single
(sorted) event stream.
2021-04-23 09:02:48 +02:00
Michael Muré
51a2c85954
make sure every text input is safe and validated
...
fix #630
2021-04-17 17:40:11 +02:00
Michael Muré
ab57d74a31
deal with the previous changes
2021-02-14 12:17:47 +01:00
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
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é
8389df0711
gitlab: match bugs on IDs + baseURL because the URL is not stable
2020-03-28 17:06:33 +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é
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é
fe3d5c95e4
bridges: massive refactor
...
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +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é
f515b9a129
gitlab also compile
2020-02-08 17:19:57 +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
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
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
514dc30c20
bridge/gitlab: fix edit comment request and remove label functionalities
2019-08-19 23:56:50 +02:00
Amine Hilaly
df412430ab
bridge/github: improve error handling and Nothing events
...
vendor: add package golang.org/x/sync/errgroup
2019-08-18 23:50:13 +02:00
Amine Hilaly
5ca326af83
bridge/core: add context.Context to ImportAll and ExportAll signatures
...
bridge/core: add ImportResult objects to stream import events
bridge/core: launchpad support asynchronous import
bridge/github: cancellable export and import functions
bridge/gitlab: cancellable export and import functions
commands: bridge pull/push gracefull kill
bridge/github: fix github import
bridge/github: use simple context for imports
bridge/core: name parameters in interfaces
github/core: Add EventError to export and import events types
bridge/gitlab: add context support in gitlab requests functions
bridge/gitlab: remove imported events count from importer logic
bridge/github: remove imported events count from importer logic
bridge/github: add context support in query and muration requets
bridge/github: fix bug duplicate editions after multiple calls
bridge/core: import import and export events String methods
bridge/gitlab: fix error handling in note import events
commands/bridge: Add statistics about imports and exports
bridge/gitlab: properly handle context cancellation
bridge/github: improve error handling
bridge: break iterators on context cancel or timeout
bridge: add context timeout support
bridge: improve event formating and error handling
commands: handle interrupt and switch cases
bridge/github: add export mutation timeouts
bridge: fix race condition bug in the github and gitlab importers
bridge/github: improve context error handling
2019-08-18 00:14:22 +02:00
Amine
cf960bc7a5
Merge pull request #193 from MichaelMure/immutableID
...
Future proof the operation's ID
2019-08-13 16:47:24 +02:00
Michael Muré
c809d37152
more hash-->id fixes
2019-08-13 16:23:05 +02:00
Michael Muré
99b5c58d43
finish the refactoring for the dedicated identifier type
2019-08-12 16:12:14 +02:00
Amine Hilaly
ca5e40e523
bridge/gitlab: importer handle mentions in other issue and merge requests
2019-08-11 00:08:26 +02:00
Michael Muré
612a29b031
fix everything following the hash-->id change
2019-08-08 19:06:13 +02:00
Amine Hilaly
e678e81bc7
bridge/gitlab: fix bug when running import multiple times
2019-07-31 19:22:23 +02:00
Amine Hilaly
5327983b7a
bridge/gitlab: handle other notes cases
2019-07-26 16:35:38 +02:00
Amine Hilaly
29fdd37ce6
bridge/github: add getNewTitle tests
2019-07-23 19:49:53 +02:00
Amine Hilaly
0c8f1c3a58
bridge/gitlab: fix comment edition target hash in the import
...
bridge/gitlab: global changes, typo fixes, comments addition
2019-07-23 18:40:10 +02:00
Amine Hilaly
0329bfdf44
bridge/gitlab: change validateProjectURL signature
...
bridge/gitlab: code cleanup
2019-07-23 17:29:53 +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
b27647c7a0
bridge/gitlab: Fix test project path
...
bridge/gitlab: update comments
2019-07-23 17:18:04 +02:00
Amine Hilaly
b18507836c
bridge/gitlab: add gitlab client default timeout
...
bridge/gitlab: fix import bug
2019-07-23 17:18:04 +02:00
Amine Hilaly
b9a5338049
bridge/gitlab: move constants to gitlab.go
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
76a389c93d
bridge/gitlab: make resolve error unique within the importer
2019-07-23 17:18:04 +02:00
Amine Hilaly
ffb8d34e4f
bridge/gitlab: check identity cache in ensurePerson
2019-07-23 17:18:04 +02:00
Amine Hilaly
8b6c896369
bridge/gitlab: complete importer
2019-07-23 17:18:04 +02:00
Amine Hilaly
01c0f644b2
bridge/gitlab: init new bridge
2019-07-23 17:18:04 +02:00