Sascha
1939949fcd
CLI: Add non-interactive option to interactive commands ( #651 )
...
* 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>
2021-05-09 11:14:45 +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
Michael Muré
aec81b7039
launchpad: fix a nil value access
2020-03-28 18:41:14 +01:00
Michael Muré
a8666bfeb8
launchpad: tighten the bug matching
2020-03-28 17:08:58 +01:00
Michael Muré
0b559bacd5
Merge pull request #344 from MichaelMure/github-lowercase-login
...
github: fix matching cred/identity with badly cased login
2020-02-29 17:26:33 +01:00
Michael Muré
fe38af05a8
github: correct casing for user provided login
2020-02-29 15:04:48 +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é
fe3d5c95e4
bridges: massive refactor
...
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +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é
74e9114410
more more wip
2020-02-08 17:19:57 +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
d6d5978b6d
bridge/launchpad: importer correctly emit NothingEvent
2019-11-19 20:33:20 +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 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
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
Michael Muré
99b5c58d43
finish the refactoring for the dedicated identifier type
2019-08-12 16:12:14 +02:00
Michael Muré
5b1a8cdefa
bridge: use a single KeyTarget constant for all bridges
2019-07-07 11:10:58 +02:00
Michael Muré
54e95cf36f
Merge pull request #171 from MichaelMure/graphql-mutation-relay
...
Graphql mutation relay
2019-06-23 21:36:42 +02:00
Amine Hilaly
041dc08d43
add target to launchpad configuration
2019-06-17 00:08:02 +02:00
Michael Muré
08c0e18ade
cache: expose the operation when creating a new bug
2019-06-16 21:04:36 +02:00
Amine Hilaly
ebebdfdf35
add unit tests for launchpad bridge configuration
...
add tests for validateUsername in Github bridge
panic when compile regex fail
2019-05-30 12:50:21 +02:00
Amine Hilaly
45d47a0966
Update configuration process and add unit tests
...
Update launchpad bridge
2019-05-29 22:58:01 +02:00
Amine
5ea0cb138b
Update documentation and function naming
...
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-05-29 22:58:01 +02:00
Amine
1022b9e536
Update flags descriptions
...
Enhance printing in prompt
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-05-29 22:58:01 +02:00
Amine Hilaly
43758a14fd
Add warning messages for launchpad-preview
...
fix --target flag description
improve comments
2019-05-29 22:58:01 +02:00
Amine Hilaly
0de2bd92b0
Launchpad bridge configuration from BridgeParams
Project and URL
...
Improve Github config comments
2019-05-29 22:58:01 +02:00
Amine Hilaly
5f80f242fa
Launchpad changes
...
Use bridge params to configure the bridge
2019-05-29 22:58:01 +02:00
Amine Hilaly
0d976f66e8
Add importer tests
...
Changes to Importer and exporter interface
Improve importer
Fix extra edits bug
2019-05-05 18:16:10 +02:00
Michael Muré
e100ee9f10
github: fix 3 edge-case failures
2019-03-01 22:48:50 +01:00
Michael Muré
864eae0d6b
identity: work on higher level now, cache, first two identity commands
2019-03-01 22:40:25 +01:00
Michael Muré
844616baf8
identity: more progress and fixes
2019-03-01 22:40:21 +01:00
Michael Muré
bdbe9e7e82
identity: more progress and fixes
2019-03-01 22:35:37 +01:00
Cyril Roelandt
49cc971dba
Launchpad bridge: fetch comments.
2019-02-27 04:40:15 +01:00
Michael Muré
47b2aa4cc1
launchpad: minor cleaning
2018-12-17 13:05:05 +01:00
Cyril Roelandt
d6ddf0ef5c
Initial Launchpad bridge.
...
This a just a preview. Not all features are expected to work.
2018-12-16 00:51:22 +01:00