aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/config.go
Commit message (Collapse)AuthorAgeFilesLines
* cache: tie up the refactor up to compilingMichael Muré2022-12-211-12/+0
|
* move {bug,identity} to /entities, move input to /commandsMichael Muré2022-08-181-1/+1
|
* feature: Github bridge mutation rate limit (#694)rng-dynamics2021-09-141-1/+1
| | | Unified handling of rate limiting of github graphql api
* CLI: Add non-interactive option to interactive commands (#651)Sascha2021-05-091-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Support new GitHub token formatsEllis Clayton2021-04-191-2/+3
| | | | | | | | | GitHub have introduced a new format for their access tokens, which does not fit within the rules of the previous regex. For the time being, the previous token format is still being supported by GitHub, so it makes sense to continue allowing legacy tokens. https://github.blog/changelog/2021-03-04-authentication-token-format-updates/
* github: minor cleanupsMichael Muré2021-04-091-1/+1
|
* github: minor cleanupsMichael Muré2020-11-221-12/+26
|
* Change return type from map to structAlexander Scharinger2020-11-181-13/+18
|
* Apply suggestions from code reviewrng-dynamics2020-11-181-2/+2
| | | Co-authored-by: Michael Muré <batolettre@gmail.com>
* Revision of Github bridge device authorization grantAlexander Scharinger2020-11-181-59/+72
|
* Replace Github authorization endpoint by device authorization grantAlexander Scharinger2020-11-181-100/+94
| | | | Fix issue #484
* bridge: store credentials in the Keyring instead of the git configMichael Muré2020-09-291-1/+1
|
* github: correct casing for user provided loginMichael Muré2020-02-291-22/+61
|
* Merge pull request #341 from MichaelMure/bridges-default-loginMichael Muré2020-02-231-2/+4
|\ | | | | bridge: record the login used during the configure and use it as default credential
| * bridge: record the login used during the configure and use it as default ↵Michael Muré2020-02-231-2/+4
| | | | | | | | | | | | credential fix #338
* | use regex.MustCompile instead of dealing with the errorMichael Muré2020-02-231-4/+1
|/
* bridges: more refactor and cleanupMichael Muré2020-02-151-21/+14
|
* bridges: massive refactorMichael Muré2020-02-151-139/+59
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* auth: refactor and introduce Login and LoginPassword, salt IDsMichael Muré2020-02-121-4/+4
|
* github/gitlab: many fixes and improvments at the config stepMichael Muré2020-02-101-34/+76
|
* it compiles \o/Michael Muré2020-02-081-9/+0
|
* gitlab also compileMichael Muré2020-02-081-1/+1
|
* more more wipMichael Muré2020-02-081-33/+4
|
* wipMichael Muré2020-02-081-2/+4
|
* more wipMichael Muré2020-02-081-1/+35
|
* more wipMichael Muré2020-02-081-2/+6
|
* WIPMichael Muré2020-02-081-39/+26
|
* input: better reusable prompt functionsMichael Muré2020-02-081-127/+12
|
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-251-5/+12
| | | | | | | | | | - 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/+4
|
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-72/+63
|
* gitlab: configurator cleanupMichael Muré2019-11-261-1/+1
|
* github: tiny cleanups of the configuratorMichael Muré2019-11-261-12/+24
|
* bridge: trim inputs during bridge configurationamine2019-11-251-7/+7
|
* bridge/core: add LoadTokensWithTarget and LoadOrCreateToken functionsamine2019-11-241-38/+16
| | | | bridge/github: global fixes
* commands: add bridge configure --token-id flagamine2019-11-231-15/+0
|
* bridge/github: configuration with global configsamine2019-11-231-14/+98
|
* github: sort project candidate in the interactive wizardMichael Muré2019-11-191-0/+3
|
* bridge/launchpad: add missing metadataamine2019-11-191-3/+3
| | | | bridge: use a specific key for origin metadata
* bridge/core: add tokenStdin field to bridgeParamsAmine Hilaly2019-09-021-1/+8
| | | | commands: move tokenStdin handling logic to bridge.Configure
* bridge/github: move cleaners to where is calledAmine Hilaly2019-09-011-10/+20
|
* bridge/github: recover terminal state in password promptsAmine Hilaly2019-08-311-0/+11
| | | | commands: error if a token is provide but not the bridge name and target
* commands: enhance flag description Amine2019-08-311-1/+1
| | | | | bridge/github: improve configuration logic Co-Authored-By: Michael Muré <batolettre@gmail.com>
* commands: read token from stdin in bridge configurationAmine Hilaly2019-08-311-1/+11
| | | | bridge: improve bridge config validation
* fix index out of range panic in github configurationAmine Hilaly2019-07-231-1/+1
|
* bridge/github: fix project visibility promptAmine Hilaly2019-07-221-2/+2
|
* bridge: use a single KeyTarget constant for all bridgesMichael Muré2019-07-071-4/+3
|
* Naming fixesAmine Hilaly2019-06-161-3/+5
|
* Store bridge type alongside the other params in the configAmine Hilaly2019-06-151-0/+6
|
* make token visible in configuration processAmine Hilaly2019-06-071-12/+16
| | | | | validate token global fixes