aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/bridge.go
Commit message (Collapse)AuthorAgeFilesLines
* CLI: Add non-interactive option to interactive commands (#651)Sascha2021-05-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to skip the AvatarURL input request Using an empty string for the avatar cli flag e.g. `git-bug user create -a ""` will still result in a prompt. As the avatar URL is an optional option, it should be possible to skip asking for it entirely. Otherwise automated user creation via a script must make use of pipe hacks. * Add global --non-interactive cmdline option * Replace --skipAvatar for --non-interactive option * Cmd BugAdd: respect non-interactive option * Cmd bridge configure: respect non-interactive opt * Cmd CommentAdd: respect non-interactive option * Cmd CommentEdit: respect non-interactive option * Cmd TermUI: respect non-interactive option * Cmd TitleEdit: respect non-interactive option * Remove global non-interactive option * Cmd UserCreate: Use local non-interactive option * Cmd BugAdd: Use local non-interactive option * Cmd BridgeConfigure: Use local non-interactive option * Cmd CommentAdd: Use local non-interactive option * Cmd CommentEdit: Use local non-interactive option * Cmd TermUI: Drop non-interactive option It should be obviouse that the termui is an interactive command. * Cmd TitleEdit: Use local non-interactive option * Update docs * Bridge GitHub: respect non-interactive option * Bridge GitLab: respect non-interactive option * Bridge Jira: respect non-interactive and token opt * Fix failing compilation * Bridge launchpad: respect non-interactive option * bridge: isNonInteractive --> interactive Co-authored-by: Michael Muré <batolettre@gmail.com>
* use regex.MustCompile instead of dealing with the errorMichael Muré2020-02-231-8/+2
|
* bridges: pass the context to Init for when a client build process needs itMichael Muré2020-02-151-14/+6
|
* bridges: more refactor and cleanupMichael Muré2020-02-151-2/+2
|
* bridges: massive refactorMichael Muré2020-02-151-12/+19
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* it compiles \o/Michael Muré2020-02-081-0/+17
|
* WIPMichael Muré2020-02-081-6/+7
|
* codereview #6: don't fail one warningJosh Bialkowski2020-01-041-1/+1
| | | | * presence of an error in the import event doesn't indicate failure
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-251-13/+30
| | | | | | | | | | - 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
* bridge/gitlab: support self-hosted GitLab instanceamine2019-12-101-0/+1
|
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-21/+11
|
* bridge: move export event handling to the CLIMichael Muré2019-11-261-23/+5
|
* bridge/core: load token value in ensureInitamine2019-11-231-2/+13
| | | | bridge/core: add more token functionalities
* Merge pull request #247 from MichaelMure/bridge-originMichael Muré2019-11-191-3/+3
|\ | | | | bridge: move keyOrigin to core package
| * bridge/launchpad: add missing metadataamine2019-11-191-3/+3
| | | | | | | | bridge: use a specific key for origin metadata
* | bridge: various improvement on the global token PRMichael Muré2019-11-101-0/+6
|/
* bridge: improvement on the import resume featureMichael Muré2019-11-031-29/+20
|
* commands: support bridge imports after a given date and resumable importsamine2019-11-031-7/+72
|
* bridge: use new repository configuration interfaceamine2019-11-011-5/+5
| | | | commands/webui: use new repository configuration interface
* bridge/core: add tokenStdin field to bridgeParamsAmine Hilaly2019-09-021-4/+5
| | | | commands: move tokenStdin handling logic to bridge.Configure
* bridge/core: add context.Context to ImportAll and ExportAll signaturesAmine Hilaly2019-08-181-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* bridge/gitlab: change validateProjectURL signatureAmine Hilaly2019-07-231-1/+3
| | | | bridge/gitlab: code cleanup
* bridge: detect when trying to configure a bridge with a name already takenMichael Muré2019-07-071-1/+10
|
* bridge: use a single KeyTarget constant for all bridgesMichael Muré2019-07-071-2/+2
|
* [bridge/github] improve comments and documentationAmine2019-07-051-1/+1
| | | | | | [bridge/github] improve error handling and tests Co-Authored-By: Michael Muré <batolettre@gmail.com>
* [core] Implement ExportResultsAmine Hilaly2019-06-301-5/+5
| | | | | Use ExportResult chan to send export events Remove exportedBugs and exportedLabels
* LoadBridge create a bridge using loadConfigAmine Hilaly2019-06-171-18/+12
| | | | update loadConfig signature
* Naming fixesAmine Hilaly2019-06-161-1/+0
|
* Store bridge type alongside the other params in the configAmine Hilaly2019-06-151-37/+44
|
* Merge pull request #153 from A-Hilaly/bridge-configurationMichael Muré2019-06-071-2/+11
|\ | | | | [Breaking] Bridge configuration enhancements
| * changes to the BridgeImpl InterfaceAmine Hilaly2019-05-291-2/+11
| | | | | | | | | | Add bridge params Change bridge.Configure signature
* | Sort bridges listAmine Hilaly2019-06-061-0/+3
|/
* Add importer testsAmine Hilaly2019-05-051-42/+5
| | | | | | Changes to Importer and exporter interface Improve importer Fix extra edits bug
* bridge: fix typoMichael Muré2019-03-011-6/+6
|
* WIP identity in gitMichael Muré2019-03-011-2/+4
|
* bridge: simplify regexMichael Muré2018-12-041-2/+2
|
* bridge: slightly better error messageMichael Muré2018-12-041-1/+1
|
* github: deal with the deleted user case where github return a null actorMichael Muré2018-10-061-27/+92
|
* add documentationMichael Muré2018-10-011-0/+10
|
* bridge: validate config before useMichael Muré2018-09-241-0/+5
|
* commands: add "bridge pull"Michael Muré2018-09-241-0/+41
|
* commands: add "bridge rm"Michael Muré2018-09-241-16/+15
|
* bridge: big refactor and cleanupMichael Muré2018-09-241-47/+118
|
* bridge: better interfaces, working github configuratorMichael Muré2018-09-211-16/+139
|
* bridge: add the beginning of a github importerMichael Muré2018-09-211-0/+26