Commit Graph

16 Commits

Author SHA1 Message Date
Gary Holtz a09c60159e
test: fix issue with environment variables being set 2024-04-20 16:19:20 -05:00
Gary Holtz 5263e4b2a5
refactor: Refactor code that returns buffer contents in tests 2024-03-20 10:55:11 -05:00
Sebastian Krebs 8057b90615 fix: remove executable flag from non-executables 2023-04-27 01:56:44 +00:00
Gary Holtz 7999fa80aa chore: fix testing repo to a local GitLab one 2023-04-04 20:53:37 +00:00
Jay McCure ec5d885c70 docs: self-managed doc improvements 2023-03-07 20:30:33 +00:00
Jay McCure c3d3a6a419 chore(ci/test): separate integration tests 2023-03-07 13:28:38 +00:00
Oscar Tovar 40a5436789 chore: update module path 2022-09-19 20:23:45 +00:00
zemzale a5f4099291
fix: Don't show non-templates when asking chosing (#927)
* 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
2022-01-31 18:20:22 +00:00
Clement Sam e486e09be1 fix lint errors 2020-12-04 01:59:53 +00:00
Clement Sam 85f02d8a17 fix: 'remotes error' on repo create command
Running glab repo create fails with error 'no remotes found'.
This PR fixes this issue.
2020-12-02 16:44:38 +00:00
Guy Edwards 248520e9aa
fix(git): remove surrounding quotes title (#309)
* 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>
2020-11-30 20:49:08 +00:00
Clement Sam 37a6299a6b
test: add tests to the remaining commands (#242)
* 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>
2020-10-02 17:10:58 +00:00
Clement Sam 6c4fe1c2e8
Isolate commands into separate sub-packages (#229)
* refactor: organize commands into separate subfolders

* Format code with gofmt

This commit fixes the style issues introduced in d1f70d5 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/1ce57d1c-4f1e-48c2-a4d8-00c1bce7fb49/

* 🔥 sub-packaging

* Format code with gofmt

This commit fixes the style issues introduced in ca0bff4 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/11379011-98c6-43ea-8baa-4fefa9b775e4/

* 🔥 sub-packaging

* Format code with gofmt

This commit fixes the style issues introduced in 00e5936 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/c912f945-acf3-48d2-a550-0895c0153df0/

* Done with sub-packaging 🔥

* 🔥 tests

* Format code with gofmt

This commit fixes the style issues introduced in 56a8ff4 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/24498865-4980-479f-90c7-7ddd228c2bb4/

* fix bug risks

* fix tests

* fix tests

* Format code with gofmt

This commit fixes the style issues introduced in c947d02 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/cb2ac46a-f857-40d5-8508-eacc253b3614/

* Format code with gofmt

This commit fixes the style issues introduced in 902ff7b according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/f60ba0d6-94d3-47c0-ae27-568a5cc5d9e5/

* fix tests

* fix tests

* 🔥 gookit/color

* Format code with gofmt

This commit fixes the style issues introduced in 5a129ea according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/8f1c8327-f5c6-4ff5-97d2-3c8a23f0a1e2/

* Autofix issues in 1 files

Resolved issues in the following files via DeepSource Autofix:
1. commands/cmdtest/helper.go

* add tests for MR

* Format code with gofmt

This commit fixes the style issues introduced in 758af28 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/d55a4867-aa23-4202-b2cc-a7ceafbaa53e/

* migrate old config to new config

* fix bug risks

* Format code with gofmt

This commit fixes the style issues introduced in 0ea8eb2 according to the output
from gofmt.

Details: https://deepsource.io/gh/profclems/glab/transform/f90cf664-8396-4b78-814d-3167ce898164/

* refactoring

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2020-09-29 05:55:34 +00:00
Clement Sam fbd5822450
feat: configuration enhancement (#214)
* 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>
2020-09-08 10:42:53 +00:00
Clement Sam b8e5b6716e
refactor: fix module path (#190)
* 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>
2020-09-02 12:20:33 +00:00
Clement Sam 29408f32c3
test: commands tests (#173)
* test: commands tests

* Format code with gofmt

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2020-09-02 11:04:56 +00:00