amine
f6b4830c0b
bridge/gitlab: support self-hosted GitLab instance
2019-12-10 21:05:55 +01:00
Michael Muré
da6591e480
cmd: "user create" only assign the user identity if not set
2019-12-10 20:13:49 +01:00
Michael Muré
f1ed857cbd
Merge pull request #271 from MichaelMure/bridge-credentials
...
bridge: huge refactor to accept multiple kind of credentials
2019-12-10 00:42:23 +01:00
Michael Muré
8f7f89561b
bridge: fix incorrect last import time on context cancel
2019-12-09 01:03:37 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials
2019-12-08 21:28:27 +01:00
Michael Muré
1a1e313f30
bridge: move export event handling to the CLI
2019-11-26 20:46:00 +01:00
amine
7cb772095e
bridge: trim inputs during bridge configuration
2019-11-25 15:08:48 +01:00
amine
09db1cda71
commands: add bridge configure --token-id flag
2019-11-23 19:26:27 +01:00
Michael Muré
60427f066a
bridge configure: no default name if the default has already been created
2019-11-19 20:20:19 +01:00
Michael Muré
e0b15ee764
cli: rename "token" into "auth"
2019-11-10 17:33:44 +01:00
Michael Muré
f8cf3fea03
cli: add bridge token show
2019-11-10 15:50:56 +01:00
Michael Muré
e2445edcb9
bridge: various improvement on the global token PR
2019-11-10 14:53:40 +01:00
amine
bbbf3c6c7f
bridge/core: store token in the global config and replace scopes with create date
2019-11-09 14:52:20 +01:00
amine
4dc7b8b06e
tokens: use entity.Id as id type
2019-11-09 13:26:52 +01:00
amine
baefa687b5
tokens: use a hash as token identifier instead of the token it self
2019-11-09 13:26:52 +01:00
Michael Muré
3984919a3d
bridge: various cleanups
2019-11-09 13:26:48 +01:00
Amine
3433fa5def
commands: use token value as identifier
2019-11-09 13:25:07 +01:00
Amine
967e168333
bridge/core: use token id instead of name
...
commands: add bridge token rm/add
commands: improve bridge token printing
2019-11-09 13:25:07 +01:00
Amine
9370e1292b
commands: add bridge token subcommand
2019-11-09 13:25:07 +01:00
Michael Muré
57e23c8ada
bridge: improvement on the import resume feature
2019-11-03 17:23:05 +01:00
amine
614bc5a2c5
commands: support bridge imports after a given date and resumable imports
2019-11-03 17:21:27 +01:00
Michael Muré
8c7c9880b1
Merge pull request #228 from ludovicm67/patch-cli-label-colors
...
Display label colors in termui
2019-11-03 13:09:55 +00:00
Michael Muré
f72a9dc62b
switch to go-term-text to fix bad underflow for label rendering
2019-11-03 14:00:35 +01:00
amine
60c6bd360f
bridge: use new repository configuration interface
...
commands/webui: use new repository configuration interface
2019-11-01 22:44:11 +01:00
ludovicm67
809abf9244
ls: add labels color + formatting for comments
2019-10-28 12:43:24 +01:00
Amine
e5b33ca39c
commands: silence usage when cobra commands return an error
2019-09-06 11:01:09 +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
Amine Hilaly
be94780315
bridge/github: recover terminal state in password prompts
...
commands: error if a token is provide but not the bridge name and target
2019-08-31 23:02:20 +02:00
Amine
65d7ce7c05
commands: enhance flag description
...
bridge/github: improve configuration logic
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-08-31 23:02:20 +02: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
Michael Muré
c7792a5d12
commands: add a "tui" alias for "termui"
2019-08-31 13:25:44 +02:00
Michael Muré
2b14bb253c
Merge pull request #205 from seeduvax/issue-178
...
issue 178: fetch the repo dir with rev-parse --git-dir
2019-08-31 13:23:26 +02:00
Sebastien Devaux
7e123fbfca
issue 178: fetch the repo dir with rev-parse --git-dir
...
Since is returns the .git dir directly, it is not more needed to
concatenate .git.
2019-08-24 22:42:25 +02:00
Michael Muré
35c6cb6e36
readme: tweaking
2019-08-24 14:18:22 +02:00
Amine Hilaly
03b6afa2f3
docs: update implementation table
...
docs: add bridge usage examples
2019-08-24 13:55:49 +02:00
Amine Hilaly
514dc30c20
bridge/gitlab: fix edit comment request and remove label functionalities
2019-08-19 23:56:50 +02:00
Amine Hilaly
e6931aaf6f
commands: silence export and import nothing events
2019-08-19 00:19:58 +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é
2e1a5e246e
bug: compute op's ID based on the serialized data on disk
2019-08-08 19:02:46 +02:00
Michael Muré
eef7333243
commands: fix a missing line break
2019-07-07 12:50:23 +02:00
Michael Muré
dc289876c6
bridge: detect when trying to configure a bridge with a name already taken
2019-07-07 12:15:01 +02:00
Amine Hilaly
1f365b2369
[core] Implement ExportResults
...
Use ExportResult chan to send export events
Remove exportedBugs and exportedLabels
2019-06-30 15:42:45 +02:00
Amine Hilaly
6d9ba4aba2
rebase & fix push command
2019-06-24 21:28:43 +02:00
Amine Hilaly
0424a0fa19
[commands] bridge: add push sub command
...
[commands] bridge: use cobra max args
2019-06-24 21:19:43 +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
07cc5e4100
Rebase & Update commands/bridge_rm.go
...
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-17 23:33:48 +02:00
Amine Hilaly
ee2ca519e6
Changes to Repo.RmConfigs
...
RmConfigs try to remove key/value or section from keyPrefix
2019-06-17 23:33:32 +02:00
Amine Hilaly
319b648d0f
Naming fixes
2019-06-16 23:02:59 +02:00
Michael Muré
bc03a89aa7
fix tests
2019-06-16 21:40:45 +02:00
Michael Muré
08c0e18ade
cache: expose the operation when creating a new bug
2019-06-16 21:04:36 +02:00
Amine Hilaly
f70e775dbd
Store bridge type alongside the other params in the config
2019-06-15 02:33:06 +02:00
Amine Hilaly
8d6bdb6507
rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKEN
2019-06-07 01:43:48 +02:00
Amine Hilaly
a6c8b6b78d
make token visible in configuration process
...
validate token
global fixes
2019-06-07 01:17:59 +02:00
Amine
c52a467302
Allow cancelling configuration
...
correct error message
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-05 01:40:37 +02:00
Amine Hilaly
630bbc6753
Update bridge configure long description and examples
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 Hilaly
aa439fae06
Add bridge configure documentation and examples
2019-05-29 22:58:01 +02:00
Amine Hilaly
99b6107487
Disable bridgeConfigure
sort flags option
...
rename `validateGithubURLRemotes` to `getValideGithubRemoteURLs`
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
f01b9bca12
Fix typo in github bridge rm
2019-05-29 22:58:01 +02:00
Amine Hilaly
f124df7e73
changes to the BridgeImpl Interface
...
Add bridge params
Change bridge.Configure signature
2019-05-29 22:58:01 +02:00
Michael Muré
8bfc65df6c
commands: add flags/config to control the automatic opening in the default browser
2019-05-27 21:47:26 +02:00
Michael Muré
c7abac388a
repo: refactor how test repo are created/cleaned
2019-05-27 21:14:55 +02:00
Yongwen Zhuang
5f0123d138
commands: ls fix CJK characters out of alignment
...
#85
2019-05-14 23:01:49 +08: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é
c0c8b11549
commands: fix ls-id description
2019-05-04 19:55:22 +02:00
Michael Muré
5eeeae7cdf
commands: fix ls not displaying the new Identities properly
2019-04-11 20:04:44 +02:00
Amine Hilaly
14ce66f0dd
integrate actors and participant filters into ls and show commands
2019-04-05 17:18:47 +02:00
Michael Muré
5b0a92dea4
commands: add a --field flag to "git bug user" to display users details individually
2019-04-03 21:33:53 +02:00
Michael Muré
96d356a34d
commands: add "show --field humanId"
2019-04-03 21:33:04 +02:00
Michael Muré
a64aaacc03
commands: fix labels no showing properly in "git bug show <id> -f labels"
...
fix #119
2019-04-03 21:07:15 +02:00
Michael Muré
0a71e6d269
commands: display comment's id in "git bug comment"
2019-03-28 01:21:41 +01:00
Michael Muré
029861fa0e
commands: fix a bad output in "bug comment"
2019-03-28 01:02:12 +01:00
Michael Muré
bdf8523dc0
commands: only return the error (not the function help) when no identity is set
...
... to avoid misleading a user into thinking the usage was incorrect
2019-03-27 21:54:58 +01:00
Michael Muré
24d6714dd5
cache: properly push/pull identities and bugs
2019-03-27 21:44:11 +01:00
Jocelyn FACCHINI
0d4167a296
Renamed user id to user-id and metioned bug for some commands
2019-03-23 18:07:27 +00:00
Jocelyn FACCHINI
146b6b8599
Select and Label command documentation
...
- Informed that label command adds/removes a label to a given bug.
- Added suggestion to use select command when omitting to provide a bug id as argument.
- Added a bit more detail for the select command documentation, giving a hint to "deselect" command.
2019-03-23 16:59:40 +00:00
Sladyn
2f06e76f92
Added Register.Cleaner
2019-03-06 17:25:32 +05:30
Sladyn
cdd8167aa0
Combined variable declaration and assignment
2019-03-05 17:50:58 +05:30
Sladyn
a45ece05e6
ls-id.go: Fixing ls-id
...
Adding check for length of args
Pulling bugIds from correct backend.
2019-03-05 00:03:38 +05:30
Sladyn
f1d5ca4ff4
Rebased and updated.
2019-03-02 23:58:15 +05:30
Sladyn
beecd2dbe4
Made requested changes
...
Made changes to the doc files and remaining areas which required updation.
2019-03-02 23:06:55 +05:30
Sladyn
43e56692e8
ls.go:git bug ls
should be faster
...
Added `Title` to BugExcerpt
Added `TitleFilter` to `filter.go`
Used BugExcerpt in `ls` command to improve performance.
Closes https://github.com/MichaelMure/git-bug/issues/98
2019-03-02 23:04:45 +05:30
Michael Muré
f6eb838159
commands: "user ls" also show metadata
2019-03-01 22:52:54 +01:00
Michael Muré
bad05a4f3d
cache: better API to access excerpts
2019-03-01 22:52:54 +01:00
Michael Muré
c235d89d36
commands: show the last modification time in "user"
2019-03-01 22:52:54 +01:00
Michael Muré
46beb4b886
identity: another round of cleanups
2019-03-01 22:52:53 +01:00
Michael Muré
2fd5f71b59
commands: add a "." at the end of Short commands usage
2019-03-01 22:52:52 +01:00
Michael Muré
304a334930
commands: add a "user adopt" command to use an existing identity
2019-03-01 22:48:51 +01:00
Michael Muré
7a80d8f849
commands: add a super-fast "user ls" command
2019-03-01 22:48:51 +01:00
Michael Muré
e100ee9f10
github: fix 3 edge-case failures
2019-03-01 22:48:50 +01:00
Michael Muré
b8caddddc7
identity: some UX cleanup
2019-03-01 22:40:28 +01:00
Michael Muré
71f9290fda
identity: store the times properly
2019-03-01 22:40:27 +01:00
Michael Muré
54f9838f0a
identity: working identity cache
2019-03-01 22:40:26 +01:00
Michael Muré
976af3a4e8
identity: fix tests
2019-03-01 22:40:25 +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é
da558b05ef
identity: all tests green o/
2019-03-01 22:40:24 +01:00
Michael Muré
d2483d83dd
identity: I can compile again !!
2019-03-01 22:40:24 +01:00
Michael Muré
328a4e5abf
identity: wip push/pull
2019-03-01 22:40:23 +01:00
Michael Muré
14b240af8f
identity: more cleaning and fixes after a code review
2019-03-01 22:40:22 +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
Michael Muré
feab9412df
WIP identity in git
2019-03-01 22:35:36 +01:00
Michael Muré
5e4a656f85
Merge pull request #97 from sladyn98/ls_id_branch
...
A command to list matching bug id from a prefix
2019-02-25 20:18:15 +01:00
Sladyn
3c0c13bbbe
ls-id.go:Add ls-id [<prefix>] command
...
This file adds the ls-id command which returns
the bug id matching the prefix the user enters.
If no prefix entered it lists all the BugId's
Closes #47
2019-02-25 21:20:51 +05:30
Michael Muré
59ea2e018e
add a "version" command with various outputs, including the git hash and tag
2019-02-20 21:56:33 +01:00
Sladyn
f70f38c8ee
ls-id.go: Add ls-id [<prefix>] command
...
This file adds the ls-id command which returns
the bug id matching the prefix the user enters.
If no prefix entered it lists all the BugId's
Closes https://github.com/MichaelMure/git-bug/issues/47
2019-02-14 00:32:40 +05:30
Michael Muré
43d0fe5cae
commands: show: change for a single valued --field flag
2019-01-07 23:08:48 +01:00
Sebastien Devaux
5850116c0d
Simplified show commadn error handling.
...
Exit on first unknown field found in query.
2019-01-07 18:56:29 +01:00
Sebastien Devaux
68cbde492d
Fixed golangci check error about new error from format string
2019-01-04 15:38:47 +01:00
Sebastien Devaux
1787f959ff
Adding fields switch to show command to select fields to display.
2019-01-04 15:15:42 +01:00
Cyril Roelandt
11e04748b9
Allow empty messages in comments.
...
Some bug trackers, like Launchpad, allow messages to be empty (when adding a
file to the bug, for instance).
2018-12-26 23:23:07 +01:00
Rafael Ascensão
8dcd3d21cd
tests: configure user ident in repos used by tests
...
Some git operations require the user to have an identity configured and
will exit with failure if none is set (or if git can't guess it). As a
direct consequence of this, the test suite may fail depending on the
user local configuration.
The error itself is justified as regular users *should* configure their
identity themselves. However, when building in chrooted environments
it's unlikely the git identity will be set making the test suite fail
unnecessarily.
To prevent such unnecessary failures, let's make a dummy identity for
repos created and used by the test suite.
2018-12-10 22:14:27 +00:00
Rafael Passos
f72b18496b
moved cleaner function to util/interrupt
2018-10-24 18:36:39 -03:00
Rafael Passos
c38f8f1c30
Registering lock clearing functions to Cleaner
2018-10-23 18:01:00 -03:00
Michael Muré
2ab2412771
version 0.4.0
2018-10-21 12:33:08 +02:00
Michael Muré
d37ffa6bd4
commands: unify the processing from editor/file/stdin for "add" and "comment add"
...
fix #68
2018-10-17 21:42:13 +02:00
Michael Muré
f67c57c084
commands: check the bug id before the user write the message for "comment add"
2018-10-17 20:59:36 +02:00
Michael Muré
b08e28e67e
commands: fix "comment add" flags set on the wrong command
2018-10-17 20:47:31 +02:00
Michael Muré
7a511f9a13
commands: don't load the repo for commands that don't need it
...
fix #67
2018-10-17 20:39:35 +02:00
Marc Chantreux
fa23ccc5e5
a better introduction message for the help page
2018-10-17 20:05:46 +02:00
Michael Muré
7cb7994cda
github: also pull users email
2018-10-07 18:27:23 +02:00
Michael Muré
64133ee5ba
github: deal with the deleted user case where github return a null actor
2018-10-06 11:55:16 +02:00
Luke Adams
bc8e6754a7
Make addCommentWithEditor accept a preMessage
2018-10-04 10:29:19 -06:00
Michael Muré
f37155d00f
commands: better multi choice prompt to select the target for "bridge configure"
2018-10-03 21:05:19 +02:00
Michael Muré
a4be82cae3
commands: "bridge" don't take arguments
2018-10-01 21:47:42 +02:00
Michael Muré
66f3b37c94
select: clear the selected bug when invalid
2018-09-26 16:50:10 +02:00
Michael Muré
86792d7892
commands: don't forget to treat the error when selecting a bug
2018-09-26 16:49:42 +02:00
Michael Muré
04ddeef90f
commands: add a "deselect" command to deselect a previously selected bug
2018-09-26 16:49:00 +02:00
Michael Muré
18f5c1632f
commands: detect when an edit title doesn't change it and abort the operation
2018-09-26 16:28:57 +02:00
Michael Muré
2282cbb595
commands: add "bridge pull"
2018-09-24 17:11:50 +02:00
Michael Muré
061e83d4b4
commands: add "bridge rm"
2018-09-24 16:24:38 +02:00
Michael Muré
43bda202fa
commands: add the "bridge" and "bridge configure" commands
2018-09-24 15:25:57 +02:00
Michael Muré
a122d533f6
commands: cleanup file name
2018-09-24 15:20:19 +02:00
Michael Muré
82eaceffc1
repo: split the Repo interface to avoid abstraction leak in RepoCache
2018-09-21 18:53:37 +02:00
Michael Muré
6e44759413
commands: add a "ls-labels" command that output valid labels
2018-09-21 14:02:05 +02:00
Michael Muré
cfce3a9914
commands: description cleanup
2018-09-21 13:37:22 +02:00
Michael Muré
7c63417e8f
webui: serve the index.html file by default to deal with the SPA router requirements
...
fix #50
2018-09-21 11:57:45 +02:00
Michael Muré
d71411f917
commands: ls now accept queries without quote
2018-09-19 21:51:16 +02:00
Michael Muré
d57e2fdd19
commands: fix a panic on merge invalid
2018-09-19 21:45:52 +02:00
Michael Muré
4c576470a8
pull: don't stop the process when one merge fail
2018-09-19 21:45:52 +02:00
Michael Muré
2daf2ddcf3
webui: explain how to quit
2018-09-19 21:45:52 +02:00
Michael Muré
544b9cc0c4
commands: convert compatible commands to the implicit select mechanism
2018-09-18 13:28:01 +02:00
Michael Muré
5f9fd2a2d9
commands: add a "select" command to select a bug for future implicit use
2018-09-18 13:17:39 +02:00
Michael Muré
0d5998eb67
commands: add a package to handle implicit bug selection
2018-09-18 12:49:16 +02:00
Michael Muré
5eaf9e83e7
commands: add a "label rm" command to remove labels from a bug
2018-09-17 14:36:51 +02:00
Michael Muré
2965b70f4f
commands: add a "label add" command to add new label to a bug
2018-09-17 14:33:34 +02:00
Michael Muré
cc086ebae9
commands: make "label" display the current labels
2018-09-17 14:32:33 +02:00