Commit Graph

1325 Commits

Author SHA1 Message Date
Vojtěch Káně
8a81b9fec7 termui: fix a crash when trying to open a bug when there are none
Nothing prevented you from pressing Enter in bug listing even when there
were no open bugs. Doing so resulted in:

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/MichaelMure/git-bug/termui.(*bugTable).openBug(0xc00007aa80, 0xc000354000, 0xc00036c120, 0x2, 0x2)
        /build/source/termui/bug_table.go:440 +0x17f
github.com/awesome-gocui/gocui.(*Gui).execKeybinding(0xc000354000, 0xc00036c120, 0xc0003102a0, 0xc00007a001, 0xc000225b2c, 0xc000000180)
        /build/go/pkg/mod/github.com/awesome-gocui/gocui@v0.6.1-0.20191115151952-a34ffb055986/gui.go:808 +0x65
github.com/awesome-gocui/gocui.(*Gui).execKeybindings(0xc000354000, 0xc00036c120, 0xc000225b38, 0x3, 0x4, 0x3)
        /build/go/pkg/mod/github.com/awesome-gocui/gocui@v0.6.1-0.20191115151952-a34ffb055986/gui.go:787 +0xed
github.com/awesome-gocui/gocui.(*Gui).onKey(0xc000354000, 0xc000225b38, 0x2, 0x0)
        /build/go/pkg/mod/github.com/awesome-gocui/gocui@v0.6.1-0.20191115151952-a34ffb055986/gui.go:745 +0x164
github.com/awesome-gocui/gocui.(*Gui).handleEvent(...)
        /build/go/pkg/mod/github.com/awesome-gocui/gocui@v0.6.1-0.20191115151952-a34ffb055986/gui.go:506
github.com/awesome-gocui/gocui.(*Gui).MainLoop(0xc000354000, 0x0, 0x0)
        /build/go/pkg/mod/github.com/awesome-gocui/gocui@v0.6.1-0.20191115151952-a34ffb055986/gui.go:466 +0x202
github.com/MichaelMure/git-bug/termui.initGui(0x0)
        /build/source/termui/termui.go:113 +0x12c
github.com/MichaelMure/git-bug/termui.Run(0xc000228000, 0xc000078b30, 0x0)
        /build/source/termui/termui.go:66 +0x185
github.com/MichaelMure/git-bug/commands.runTermUI(0x1211bc0, 0x12478e0, 0x0, 0x0, 0x0, 0x0)
        /build/source/commands/termui.go:18 +0xd5
github.com/spf13/cobra.(*Command).execute(0x1211bc0, 0x12478e0, 0x0, 0x0, 0x1211bc0, 0x12478e0)
        /build/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:840 +0x453
github.com/spf13/cobra.(*Command).ExecuteC(0x1210960, 0x0, 0x0, 0x0)
        /build/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
        /build/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
github.com/MichaelMure/git-bug/commands.Execute()
        /build/source/commands/root.go:54 +0x2d
main.main()
        /build/source/git-bug.go:14 +0x20
2020-04-16 18:59:42 +02:00
dependabot-preview[bot]
308810c827
build(deps): bump github.com/go-errors/errors from 1.0.1 to 1.0.2
Bumps [github.com/go-errors/errors](https://github.com/go-errors/errors) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/go-errors/errors/releases)
- [Commits](https://github.com/go-errors/errors/compare/v1.0.1...v1.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 05:03:55 +00:00
Michael Muré
d3fc94a650
Merge pull request #371 from mindriot101/config-reads-includes
Supports git config includes
2020-04-12 19:40:54 +02:00
Simon Walker
e062d9aedf Supports git config includes
I like to have "private" settings in a git include file, and store the
main .gitconfig under version control. I do not want any authentication
keys or tokens (even if encrypted) in version control, so I have by main
.gitconfig include another file which is local and not tracked.

The current implementation calls `git config --global --get-regexp
<keyPrefix>` and for some reason, this command does not follow git
include files.

The changes suggested in this PR add the `--includes` flag to the
command, which then reads any included files.
2020-04-11 23:49:01 +01:00
Michael Muré
28c3ee3b71
Merge pull request #364 from MichaelMure/dependabot/go_modules/github.com/spf13/cobra-0.0.7
build(deps): bump github.com/spf13/cobra from 0.0.6 to 0.0.7
2020-04-10 12:04:56 +02:00
Michael Muré
a8aecec6ee
readme: better phrasing 2020-04-04 18:15:54 +02:00
Michael Muré
e43920bc87
readme: fix image links 2020-04-04 14:09:27 +02:00
Michael Muré
685a4fdc0c
readme: document workflows 2020-04-04 14:05:53 +02:00
Michael Muré
2d64b85db7
Merge pull request #363 from MichaelMure/gitlab-iterator
gitlab: refactor the iterator, fix bug
2020-04-04 12:48:24 +02:00
Michael Muré
903549cadf
gitlab: fix iterator (paginate with first index 1) and avoid the trailing API call 2020-04-04 12:42:08 +02:00
dependabot-preview[bot]
53038648a5
build(deps): bump github.com/spf13/cobra from 0.0.6 to 0.0.7
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.6 to 0.0.7.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v0.0.6...0.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-30 05:06:13 +00: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é
38b42bc867
jira/gitlab: fix a bad login handling in the configurator 2020-03-28 20:10:52 +01:00
Michael Muré
fec9ea09f6
drop support of go 1.11 due to bad dep handling without mod support 2020-03-28 19:52:16 +01:00
Michael Muré
ecde909b0a
query: more robust tokenizer 2020-03-28 19:22:27 +01:00
Michael Muré
aec81b7039
launchpad: fix a nil value access 2020-03-28 18:41:14 +01:00
Michael Muré
7c04f7fb3a
Merge pull request #354 from MichaelMure/dependabot/npm_and_yarn/webui/acorn-5.7.4
build(deps): [security] bump acorn from 5.7.3 to 5.7.4 in /webui
2020-03-28 17:29:34 +01:00
Michael Muré
93f44cb027
Merge pull request #362 from MichaelMure/dependabot/go_modules/github.com/xanzy/go-gitlab-0.29.0
build(deps): bump github.com/xanzy/go-gitlab from 0.27.0 to 0.29.0
2020-03-28 17:20:13 +01:00
Michael Muré
390e66eb2b
Merge pull request #355 from MichaelMure/query-parser-ast
replace the all-in-one query parser by a complete one with AST/lexer/parser
2020-03-28 17:17:13 +01:00
dependabot-preview[bot]
3e4b1844e3
build(deps): bump github.com/xanzy/go-gitlab from 0.27.0 to 0.29.0
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.27.0 to 0.29.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.27.0...v0.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-28 16:14:39 +00:00
Michael Muré
314fcbb229
query: no need for an ast package 2020-03-28 17:13:28 +01:00
Michael Muré
5e4dc87ffe
cache: replace the all-in-one query parser by a complete one with AST/lexer/parser 2020-03-28 17:13:27 +01:00
Michael Muré
58abc6b0a3
Merge pull request #358 from MichaelMure/gitlab-tests
gitlab: fix issues import url
2020-03-28 17:11:16 +01:00
Michael Muré
a8666bfeb8
launchpad: tighten the bug matching 2020-03-28 17:08:58 +01:00
Michael Muré
fae3b2e7db
github: tighten the import matching 2020-03-28 17:08:27 +01:00
Michael Muré
4397766800
jira: tag bugs with the base URL, tighten the matching 2020-03-28 17:07:57 +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é
5491d12873
Merge pull request #361 from MichaelMure/dependabot/go_modules/github.com/mattn/go-runewidth-0.0.9
build(deps): bump github.com/mattn/go-runewidth from 0.0.8 to 0.0.9
2020-03-23 16:58:02 +01:00
dependabot-preview[bot]
82e2f2dd6d
build(deps): bump github.com/mattn/go-runewidth from 0.0.8 to 0.0.9
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.8 to 0.0.9.
- [Release notes](https://github.com/mattn/go-runewidth/releases)
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.8...v0.0.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-23 05:09:36 +00:00
Michael Muré
61e6b361d4
Merge pull request #359 from MichaelMure/dependabot/go_modules/github.com/MichaelMure/go-term-text-0.2.8
build(deps): bump github.com/MichaelMure/go-term-text from 0.2.7 to 0.2.8
2020-03-16 12:28:42 +01:00
dependabot-preview[bot]
9dd7bb54b9
build(deps): bump github.com/MichaelMure/go-term-text
Bumps [github.com/MichaelMure/go-term-text](https://github.com/MichaelMure/go-term-text) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/MichaelMure/go-term-text/releases)
- [Commits](https://github.com/MichaelMure/go-term-text/compare/v0.2.7...v0.2.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 05:02:14 +00:00
amine
49285b03c9 gitlab: fix bugs import url 2020-03-15 19:32:32 +01:00
dependabot-preview[bot]
dc8d28df7e
build(deps): [security] bump acorn from 5.7.3 to 5.7.4 in /webui
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-13 20:59:45 +00:00
Michael Muré
05c968ca24
makefile: add target to clean remote identities 2020-03-05 22:02:58 +01:00
Michael Muré
e0a702f41d
cache: fix missing login in LegacyAuthorExcerpt causing panic 2020-03-05 21:57:55 +01:00
Michael Muré
17ca28c2df
Merge pull request #348 from MichaelMure/dependabot/go_modules/github.com/xanzy/go-gitlab-0.27.0
build(deps): bump github.com/xanzy/go-gitlab from 0.26.0 to 0.27.0
2020-03-03 19:27:45 +01:00
dependabot-preview[bot]
bc40bebc87
build(deps): bump github.com/xanzy/go-gitlab from 0.26.0 to 0.27.0
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.26.0 to 0.27.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.26.0...v0.27.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 05:08:03 +00:00
Michael Muré
e4f501c010
github-howto: change title 2020-03-01 17:17:38 +01:00
Michael Muré
4096cb05f6
travis: build with go-1.14, release with go-1.13 2020-03-01 16:48:09 +01:00
Michael Muré
71580c41a9
Merge pull request #281 from MichaelMure/howto-github
add a how-to to explain usage with Github
2020-03-01 14:46:52 +01:00
Michael Muré
f82ad38671
howto: link to other ressources 2020-03-01 14:45:39 +01:00
Michael Muré
eeeb932b71
git: fix GetRemote to not break when there is no remotes 2020-03-01 13:53:12 +01:00
Michael Muré
e53d7c6561
add workflow diagrams 2020-03-01 12:59:42 +01:00
Michael Muré
8365c6334e
doc: refresh the github howto 2020-03-01 12:50:22 +01:00
Michael Muré
710d85664e
doc: fix typos 2020-03-01 12:47:47 +01:00
Michael Muré
19f3c21428
add a how-to to explain usage with Github 2020-03-01 12:47:47 +01:00
Michael Muré
60bf8e0d6e
update readme 2020-02-29 23:38:12 +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é
a90954ae1a
github: fix tests 2020-02-29 17:21:46 +01:00
Michael Muré
fe38af05a8
github: correct casing for user provided login 2020-02-29 15:04:48 +01:00