* feat(git): Allow for overriding the TopLevelDir
This would allow us to use a different output for this command in tests.
Issue #923
* fix: Don't show non-templates when asking chosing
In cases where users have non template files in the .gitlab/[template]/
folder they might will be picked up and displayed.
This fixes that by filtering out all the files that are hidden and don't
end in .md
Issue #923
* feat(cmdutils): Sort templates in alphabetical order
* fix(git): remove surrounding quotes title
The return value from `--format='%h %s'` includes single quotes, which
seem not to be needed and causing the issue so this commit removes them
* fix trailing slash on mr title
* modify testdata
* fix tests
Co-authored-by: Clement Sam <clementsam75@gmail.com>
* chore(ci): set up gitlab ci for tests
* fix: disable authentication on config
* test: add tests to the remaining commands
* Format code with gofmt
This commit fixes the style issues introduced in bb0d2eb according to the output
from gofmt.
Details: https://deepsource.io/gh/profclems/glab/transform/4b2c1a87-6034-43fd-9f87-45f176fd9c6d/
* 🔥 tests
* Format code with gofmt
This commit fixes the style issues introduced in 57a9ded according to the output
from gofmt.
Details: https://deepsource.io/gh/profclems/glab/transform/00b78f3f-212e-4bd7-b0a3-39e3f3b70463/
* add more tests
* fix test failing on PR
Since tests are failing on PRs, I created a valid account for glab with an access token for test authentication
* Format code with gofmt
This commit fixes the style issues introduced in f37993a according to the output
from gofmt.
Details: https://deepsource.io/gh/profclems/glab/transform/00ba1041-2293-49e2-8194-a4c8308c9211/
* fix mr autofill test failing
* fix mr autofill test failing
* fix mr autofill test failing
* fix note test
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* feat: configuration enhancement
For a much cleaner usage of configuration command, `set` and `get`
commands have been added to the `config` command.
Set accepts two arguments <key> <value> and get accept one argument
<key> and prints the value.
Depreciation notice has been added to the former --flag=value config
format.
Added `init` command to `config` to prompt for basic glab
configuration.
* Format code with gofmt
This commit fixes the style issues introduced in 3c9325f according to the output
from gofmt.
Details: https://deepsource.io/gh/profclems/glab/transform/678475b8-f531-4973-9277-efbf29b03ed3/
* add long description
* add long description
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* refactor: fix module path
Change module path from glab to GitHub path in go.mod.
Tidy go.mod
Fix go imports.
Closes 189
* Format code with gofmt
This commit fixes the style issues introduced in 28e5336 according to the output
from gofmt.
Details: https://deepsource.io/gh/profclems/glab/transform/398ecee6-d38c-472d-a91b-21de49624c9f/
* fix: unused imported package
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>