Commit Graph

2160 Commits

Author SHA1 Message Date
Michael Muré
3e41812ddb commands: different pattern to detect changed flags 2023-01-18 19:09:32 +01:00
Michael Muré
2484867089
Merge pull request #998 from MichaelMure/fix/996/create-env-once
fix(commands): create env.Env once for all Cobra commands
2023-01-18 08:21:08 +01:00
Steve Moyer
723b3c4147
fix(commands): replace missing import 2023-01-17 20:35:59 -05:00
Steve Moyer
331e80f2ef
Merge branch 'master' of github.com:MichaelMure/git-bug 2023-01-17 20:31:58 -05:00
Steve Moyer
0bddfe1d9d
fix(commands): create env.Env once for all Cobra commands
Resolves #996
2023-01-17 20:18:56 -05:00
Michael Muré
0290091317
Merge pull request #993 from MichaelMure/cmd-adapt
command: adapt the output of the bug list to the terminal size
2023-01-17 22:05:29 +01:00
Michael Muré
f23a7f07cc commands: remove compact style for "bug", as the width adaptive default renderer cover that usage 2023-01-17 22:04:34 +01:00
Michael Muré
9fc8dbf4e1 command: adapt the output of the bug list to the terminal size 2023-01-17 20:19:54 +01:00
Michael Muré
e689cc5067
Merge pull request #994 from MichaelMure/feat/detect-stdin-stdout-mode
feat: detect `os.Stdin`/`os.Stdout` redirection/pipe mode
2023-01-17 20:14:10 +01:00
Michael Muré
f011452a2d execenv: move terminal detection to Out, introduce the compagnion In 2023-01-17 20:02:31 +01:00
Steve Moyer
a73640150d
feat: use isatty to detect a Termios instead 2023-01-17 06:38:00 -05:00
Steve Moyer
1460377334
feat: detect os.Stdin/os.Stdout mode 2023-01-16 10:57:51 -05:00
Michael Muré
2a78fd9c94
Merge pull request #990 from buestad/master
added EventMentionedInCommit
2023-01-14 14:49:36 +01:00
Michael Muré
6e5ea512ac
Merge pull request #987 from MichaelMure/cache-progress-bar
commands: add a nice terminal progress bar when building the cache
2023-01-14 14:49:25 +01:00
Michael Muré
a1eec9aadf
Merge pull request #992 from MichaelMure/dependabot/go_modules/github.com/dustin/go-humanize-1.0.1
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
2023-01-14 14:42:59 +01:00
dependabot[bot]
6dd6e534e3
build(deps): bump github.com/dustin/go-humanize from 1.0.0 to 1.0.1
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/dustin/go-humanize/releases)
- [Commits](https://github.com/dustin/go-humanize/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-14 13:22:10 +00:00
Michael Muré
98eb1c111e
Merge pull request #933 from zinderic/feat-cleanup-subcommand
add cleanup sub-command that remove local bugs and identities
2023-01-14 14:21:01 +01:00
Michael Muré
5bf274e64a
repo: don't forget to close a file 2023-01-14 13:23:02 +01:00
Michael Muré
03dcd7eea2
repo: temporary use a fork of go-git due to https://github.com/go-git/go-git/pull/659 2023-01-14 13:01:54 +01:00
Henrik Buestad
119fdeefc4 added EventMentionedInCommit 2023-01-13 15:25:07 +01:00
Kalin Staykov
fc266b733c
add wipe sub-command that remove local bugs and identities 2023-01-11 14:58:58 +01:00
Michael Muré
7df34aa7a4
commands: add a nice terminal progress bar when building the cache
One issue remaining is that writing the cache takes significant time, but I don't know how to reflect that nicely to the user.
2023-01-11 14:31:22 +01:00
Michael Muré
9c50a35970
Merge pull request #989 from MichaelMure/fix-tests
repo: check error when closing a repo in tests
2023-01-11 14:30:52 +01:00
Michael Muré
ace0f05507
properly close files in edge cases in various places 2023-01-11 14:22:58 +01:00
Michael Muré
2664332bfd
repo: check error when closing a repo in tests 2023-01-11 14:22:58 +01:00
Michael Muré
7610038097
Merge pull request #988 from MichaelMure/fix-cache-test
cache: fix tests?
2023-01-11 13:36:10 +01:00
Michael Muré
637071a84b
make go1.19 fmt happy 2023-01-11 13:28:07 +01:00
Michael Muré
70b0c5b81c
cache: fix tests? 2023-01-11 13:19:03 +01:00
Michael Muré
5d7a10fbb2
Merge pull request #983 from MichaelMure/dependabot/go_modules/github.com/go-git/go-git/v5-5.5.2
build(deps): bump github.com/go-git/go-git/v5 from 5.5.1 to 5.5.2
2023-01-08 12:14:56 +01:00
Michael Muré
978552bb69
Merge pull request #984 from MichaelMure/fix/926/tests-fail-with-color
fix(commands): run tests in ./commands/... without ANSI color
2023-01-08 12:12:51 +01:00
Michael Muré
c7662a13ac
Merge pull request #976 from MichaelMure/fix/975/patch-security-vulnerabilities
fix: resolve Go vulnerabilities
2023-01-08 12:11:53 +01:00
Steve Moyer
e4707cd8d5
fix(commands): run tests in ./commands/... without ANSI color
Resolves #926
2023-01-07 11:01:35 -05:00
Steve Moyer
51161a8fdb
Merge pull request #979 from MichaelMure/fix/eliminate-tempdir-test-failures
refactor(TestCache): guarantee test caches are closed when tests finish
2023-01-06 05:44:27 -05:00
dependabot[bot]
bde79c6c94
build(deps): bump github.com/go-git/go-git/v5 from 5.5.1 to 5.5.2
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.5.1 to 5.5.2.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.5.1...v5.5.2)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 04:03:32 +00:00
Steve Moyer
5c45e70aab
chore(TestCache): cleanup per PR review
Resolves #979
2023-01-05 22:09:51 -05:00
Michael Muré
30198e17b6
Merge pull request #982 from MichaelMure/dependabot/go_modules/golang.org/x/crypto-0.5.0
build(deps): bump golang.org/x/crypto from 0.4.0 to 0.5.0
2023-01-05 15:42:02 +01:00
dependabot[bot]
7bb6d6655c
build(deps): bump golang.org/x/crypto from 0.4.0 to 0.5.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-05 14:30:52 +00:00
Michael Muré
87ceccb054
Merge pull request #980 from MichaelMure/dependabot/go_modules/golang.org/x/text-0.6.0
build(deps): bump golang.org/x/text from 0.5.0 to 0.6.0
2023-01-05 15:29:33 +01:00
dependabot[bot]
6e6ae6a1df
build(deps): bump golang.org/x/text from 0.5.0 to 0.6.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-05 04:04:48 +00:00
Steve Moyer
0f12b901e7
refactor(TestCache): guarantee test caches are closed when tests finish 2023-01-04 17:32:59 -05:00
Michael Muré
b1253bd238
Merge pull request #978 from MichaelMure/fix/eliminate-tempdir-test-failures
fix(TestCache): eliminate hanging Windows tests
2023-01-04 14:57:18 +01:00
Steve Moyer
ea9b3aa060
fix(TestCache): eliminate hanging Windows tests 2023-01-03 20:47:58 -05:00
Steve Moyer
59684d7477
style(TestCache): remove empty trailing line from function 2023-01-03 20:41:57 -05:00
Steve Moyer
4cee3a7278
test(cache): close second instance of RepoCache 2023-01-03 20:17:17 -05:00
Steve Moyer
58a6962f4e
ci: use Go 1.19.4 and setup-go@v3 2023-01-03 19:48:38 -05:00
Michael Muré
5b9f88208f
Merge pull request #974 from MichaelMure/fix/972/gokart-panic
fix(972): use prerelease of GoKart with repaired panic
2023-01-03 18:52:40 +01:00
Steve Moyer
33e3e4b65e
fix: resolve Go vulnerabilities
Resolves #975
2023-01-03 10:20:08 -05:00
Steve Moyer
7601e79d2b
deps: fix merge conflicts in dependencies 2023-01-03 08:37:21 -05:00
Steve Moyer
344438b9cb
fix(972): use prerelease of GoKart with repaired panic 2023-01-03 08:31:43 -05:00
Steve Moyer
3915d2b76e
Merge pull request #969 from MichaelMure/dependabot/go_modules/github.com/go-git/go-billy/v5-5.4.0
build(deps): bump github.com/go-git/go-billy/v5 from 5.3.1 to 5.4.0
2023-01-02 13:25:26 -05:00