Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

GLab [Archived]

Archived: An open-source GitLab command line tool bringing GitLab's cool features to your command line
Collective - Host: opensource - https://opencollective.com/glab - Website: https://glab.rtfd.io - Code: https://github.com/profclems/glab

test(internal/utils/manip): test helper functions

github.com/profclems/glab - 295b81f3306a6e24747f1db4239fa0fcb0a94b4f authored about 4 years ago by Leo <[email protected]>
Merge pull request #517 from profclems/fix-newlines

fix: avoid printing unnecessary blank newlines

github.com/profclems/glab - 4a5b59da5dda53c50619fb126ff0187047127c94 authored about 4 years ago by Clement Sam <[email protected]>
fix: avoid printing unnecessary blank newlines

Closes #391

github.com/profclems/glab - 56bdf534326feaf50065a3bbf1dccd5dc81a8879 authored about 4 years ago by Clement Sam <[email protected]>
test(internal/config): test internal Prompt function

github.com/profclems/glab - 585ef6a483c0edb1a47879088a72b4a83b0986a3 authored about 4 years ago by Leo <[email protected]>
feat(commands/issue/update): add --unassign flag

github.com/profclems/glab - 91c0a9cb4a5c0c6cf2013d0417eeb9762d925076 authored about 4 years ago by Leo <[email protected]>
feat(commands/mr/update): add --unassign flag

github.com/profclems/glab - f11ddea982a28d2a948b470e753ac0a9d1d7880c authored about 4 years ago by Leo <[email protected]>
Merge pull request #512 from zemzale/fix-deb-rpm-releases

chore(rom/deb): Fix wrong install directory for rpm/deb

github.com/profclems/glab - 48acd838ee0344ed071eca1dc00c1056c53544ba authored about 4 years ago by Clement Sam <[email protected]>
set bindir to /usr

github.com/profclems/glab - 4b47d9c7d9874492d7f5c31a70ee06d33a2464fc authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #511 from maxice8/main-test

test(cmd/glab/main): test path where debug is active

github.com/profclems/glab - 187245ed48f27ed5664fa39f62d631c45aae94d6 authored about 4 years ago by maxice8 <[email protected]>
chore(rom/deb): Fix wrong install directory for rpm/deb

Since glab is built into a 'bin' directory it just ends up installing
into '/usr/local/bin/bin' ...

github.com/profclems/glab - 1a8ff09b479a70b9ca594b2665fb4a2390acf4b5 authored about 4 years ago by Alberts Zemzale <[email protected]>
test(cmd/glab/main): test path where debug is active

github.com/profclems/glab - a2efea805a8572b42f687171e96cefe0014659ce authored about 4 years ago by Leo <[email protected]>
Merge pull request #510 from profclems/mr-list-rehaul

refactor and add tests to `mr list`

github.com/profclems/glab - 4b2f390abcfe21a2f2be5ec6f73c106cdf14293b authored about 4 years ago by Clement Sam <[email protected]>
refactor and add tests to `mr list`

github.com/profclems/glab - d6b88506fc211a937a2dd181a826233f069c349b authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #509 from profclems/issue-list

test(commands/issue/list): add tests

github.com/profclems/glab - ea5dc2a23d5441f95a67532619b942d88e9fcb34 authored about 4 years ago by Clement Sam <[email protected]>
add more test cases

github.com/profclems/glab - cea9a28d6e444eb9412b727b07cd7e419829a80e authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #507 from maxice8/completion

refactor(commands/completion): always default to bash

github.com/profclems/glab - c2c23f5d54b0bdb6abebb25d2119f9e40211ae5e authored about 4 years ago by maxice8 <[email protected]>
refactor(commands/completion): always default to bash

github.com/profclems/glab - da5218d9a6d3852dd68ea14bef21031153201115 authored about 4 years ago by Leo <[email protected]>
test(commands/issue/list): add tests

github.com/profclems/glab - 4903840cc89d677dd557d05d1101544d3bbcfc4e authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #505 from maxice8/iostreams

Iostreams testing

github.com/profclems/glab - 41720e82933f6813f5dd535d0690f154bdd86579 authored about 4 years ago by maxice8 <[email protected]>
feat(internal/config/writefile): add tests

github.com/profclems/glab - f65f8a73b008a2780aa39e10e9ad0e90f6ac32f8 authored about 4 years ago by Leo <[email protected]>
Merge pull request #506 from profclems/issue-list

style(commands/issue/list): refactor `issue list`

github.com/profclems/glab - 6d6b26d7362cd9756a720af946af5081a378481b authored about 4 years ago by Clement Sam <[email protected]>
style(commands/issue/list): refactor `issue list`

Refactor `commands/issue/list/issue_list.go`.
This is done to make it much cleaner and also enha...

github.com/profclems/glab - ac34b5203549c0d1d356f6a6e2b010a78ddb358c authored about 4 years ago by Clement Sam <[email protected]>
test(internal/config/local_config): add tests

github.com/profclems/glab - 44af51a8e6cd7a7ebac0b5381bce0379a8e4adb1 authored about 4 years ago by Leo <[email protected]>
test(internal/utils/iostreams): test GLAB_PAGER=

github.com/profclems/glab - b16e92c480354e5c0dbc1f37f18b5eeca0d9c07e authored about 4 years ago by Leo <[email protected]>
Merge pull request #504 from maxice8/iostream-tests

test(internal/utils/iostreams): add tests

github.com/profclems/glab - ec99dc650f57e39d9e446115c4640a728b753611 authored about 4 years ago by maxice8 <[email protected]>
test(internal/utils/iostreams): reset checkedNoColor before related tests

github.com/profclems/glab - 20b30c79e36ac706003f846fb1b142cef9dbc14f authored about 4 years ago by Leo <[email protected]>
test(internal/utils/iostreams): fix values of a test

github.com/profclems/glab - 03adc9780fbb5ca48e7543b79e355249ba7a6031 authored about 4 years ago by Leo <[email protected]>
test(internal/utils/iostreams): test InitIOStreams()

github.com/profclems/glab - 1608037b2c59bc601f395711ab332b3b592293f3 authored about 4 years ago by Leo <[email protected]>
test(internal/config/file): add tests

github.com/profclems/glab - e946935bd82459cea43400047032b78776b0aa18 authored about 4 years ago by Leo <[email protected]>
refactor(internal/config/local_config): adapt to changes in ReadAndAppend()

github.com/profclems/glab - 5b3ea4995b255117ea21b1b23fcd086021702a03 authored about 4 years ago by Leo <[email protected]>
refactor(internal/config/file): return error instead of logging

github.com/profclems/glab - 159e8b894479a792cd6f9ca78c60e160541a7bdc authored about 4 years ago by Leo <[email protected]>
test(internal/utils/iostreams): add tests

github.com/profclems/glab - 940d12f6db620d54c479ae6a210786d5a8695d56 authored about 4 years ago by Leo <[email protected]>
chore(deps): bump github.com/otiai10/copy from 1.4.1 to 1.4.2 (#503)

github.com/profclems/glab - 15ece7e7422d87ade69af083b098120fafd4e226 authored about 4 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Merge pull request #502 from maxice8/display-test

test(internal/utils/display): implement tests for the basic functions

github.com/profclems/glab - 9964a90d95a6dc1216ffb30441926ab9c745835f authored about 4 years ago by maxice8 <[email protected]>
Merge pull request #500 from profclems/fix-gitlab-host-env

respect GITLAB_HOST when resolving remotes

github.com/profclems/glab - 770a3954ba8d96e46da3faeae1c125609e6ce21e authored about 4 years ago by Clement Sam <[email protected]>
test(internal/utils/display): test Describe()

github.com/profclems/glab - 6fd8c31def4445a6eab3225738dce6de7dcda93d authored about 4 years ago by Leo <[email protected]>
fix(internal/utils/display): add missing newline to output

github.com/profclems/glab - d5653a08707f222deca8c74bb686aa6fb554e8de authored about 4 years ago by Leo <[email protected]>
test(internal/utils/display): implement tests for the basic functions

github.com/profclems/glab - b232e07ffd44a2ae581171b76689a12c796c8de6 authored about 4 years ago by Leo <[email protected]>
Merge pull request #501 from profclems/fix-repo-host-ssh

fix(commands/cmdutils/factory): use hostname from ssh config

github.com/profclems/glab - 0aab84835ea3566bcb2fd9ca9d598f98c26019a4 authored about 4 years ago by Clement Sam <[email protected]>
fix(commands/cmdutils/factory): use hostname from ssh config

Resolves #354

github.com/profclems/glab - acd93745a562a458b32461b617f97d66bf04a38e authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #498 from maxice8/FindByRepo

test(internal/glinstance/host): test HostnameValidator()

github.com/profclems/glab - 7c030ffaffb3002aea8f245fb887cf3b68a66165 authored about 4 years ago by maxice8 <[email protected]>
respect GITLAB_HOST when resolving remotes

When GITLAB_HOST or GITLAB_URI has been set, we resolve only local remotes that match the set ho...

github.com/profclems/glab - b43849504ce46e19cde5f6a617a579478a3ddd13 authored about 4 years ago by Clement Sam <[email protected]>
test(internal/glinstance/host): test HostnameValidator()

github.com/profclems/glab - 9098b5a8afe98ba274a227f26a0552e6af584ce9 authored about 4 years ago by Leo <[email protected]>
test(internal/glinstance/host): test GraphQLEndpoint()

github.com/profclems/glab - 867c431672cf785982586ac6565c49d49647b225 authored about 4 years ago by Leo <[email protected]>
Merge pull request #497 from profclems/feat-support-ssh-include

feat(internal/git): Add support for ssh_config Include directives

github.com/profclems/glab - 3662eb32962a3e711b72c36fe0ac291784e62569 authored about 4 years ago by Clement Sam <[email protected]>
feat(internal/git): Add support for ssh_config Include directives

Resolves #496

github.com/profclems/glab - 9570eb2de5558fe2dc8f25035480f651aba0febd authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #495 from maxice8/FindByRepo

test(internal/git/url): test bad URLs for ParseURL()

github.com/profclems/glab - 85efa2c45c5f4ffe6d685e9839ddb23b7bf9e96f authored about 4 years ago by maxice8 <[email protected]>
test(internal/glrepo/remote): add tests for PushURL path

github.com/profclems/glab - 7a4c8a79990cfd0f49a28401766bb3d3b8f9f521 authored about 4 years ago by Leo <[email protected]>
test(internal/git/url): test bad URLs for ParseURL()

github.com/profclems/glab - 2a0eb8b8ca79edd0198e84afde7f27b49612480c authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/repo): test for invalid URL

github.com/profclems/glab - 09ca4686acc0b1bbddab54050d03d6c12b4be735 authored about 4 years ago by Leo <[email protected]>
Merge pull request #494 from maxice8/FindByRepo

test(internal/glrepo/remote): add tests for FindByRepo()

github.com/profclems/glab - cab7665668f5412b41e4ab8154f3dbe6c2ff49e2 authored about 4 years ago by maxice8 <[email protected]>
test(internal/glrepo/repo): add tests for oauth2 path

github.com/profclems/glab - e8c05e27648b7497182ae0d308c1927159b2cae2 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/repo): improve tests for FullNameFromURL()

github.com/profclems/glab - fb184c7f9ad0cccb078e48a42ea7eba4e88672e5 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/remote): add tests for Swap and Less

github.com/profclems/glab - b141646ecd3490487dcbedc2ed7bf8f837a754f0 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/remote): test function to get elements

github.com/profclems/glab - 19420b1f13e730d68de056e1ecd696aac3b12599 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/repo): test NewWithHost

github.com/profclems/glab - 7da9e38332e351151472b719fee20c4a477c7d17 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/remote): add tests for FindByRepo()

github.com/profclems/glab - 4497562158d6963eee1dd0338945ca60091ac701 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): use values that are normally written

github.com/profclems/glab - 6ea98207bc29fce0274f074330d6fbf74fef3cac authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): remove unwarranted whitespace

github.com/profclems/glab - 8242ad73fb97ee333444484f40327f83d224c1d0 authored about 4 years ago by Leo <[email protected]>
Merge pull request #492 from maxice8/no-color

No color

github.com/profclems/glab - 5e8929c8769e1c238b584e3211f23cb115bb0635 authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #493 from profclems/ch-fix-ci

chore(ci): fix go.yml workflow file

github.com/profclems/glab - c0e9342352fadd06baa0a689ce86fe253f0bf4f5 authored about 4 years ago by Clement Sam <[email protected]>
chore(ci): fix go.yml workflow file

github.com/profclems/glab - caa5870862fb8c6f9051f49eab99f72f4aed4c32 authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #490 from profclems/ch-fix-ci

chore(ci): ensure test runs on PRs

github.com/profclems/glab - 3127a695a904af77f80dc3c2d968b6190263cc2d authored about 4 years ago by Clement Sam <[email protected]>
chore(ci): ensure test runs on PRs

github.com/profclems/glab - 78e3063ca1cfa25e1eb28bfb61044e0793ffee81 authored about 4 years ago by Clement Sam <[email protected]>
test(internal/glrepo/resolver): make test actually test what it wants

github.com/profclems/glab - e85d05a6a218a8a43132247d2b85972cdcb5749a authored about 4 years ago by Leo <[email protected]>
Merge pull request #491 from maxice8/more-tests!

test(internal/glrepo/resolver): add more tests

github.com/profclems/glab - 86d602a72b2c97ec027d7234aaeb848728ec36a1 authored about 4 years ago by maxice8 <[email protected]>
test(internal/utils/color): test isColorEnabled()

github.com/profclems/glab - 90795241a0503f142ad345185347c9148c27663d authored about 4 years ago by Leo <[email protected]>
fix(internal/utils/color): fix support for NO_COLOR

From the spec:

```
All command-line software which outputs text with ANSI color added should ch...

github.com/profclems/glab - 382848c96b29834734a7ddfa414a6d2c9510cb90 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): add more tests

github.com/profclems/glab - 391a2e11e33974421817145ede39c81fa8286852 authored about 4 years ago by Leo <[email protected]>
chore(ci): ensure test runs on PRs

github.com/profclems/glab - 4d0b636cbad8aeb3215d2125917fb3b88f00b732 authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #489 from maxice8/resolver-testing

Resolver testing

github.com/profclems/glab - c1e41e6fbd9ee1c1ec58cee794d447a788441cda authored about 4 years ago by maxice8 <[email protected]>
refactor(internal/glrepo/resolver.go): remove code that is always false

This code is always false because of the following code that comes a bit
before.

```golang
if r...

github.com/profclems/glab - e32c510db444f09b5ae751c301895be98ab6ef8f authored about 4 years ago by Leo <[email protected]>
feat(pkg/prompt/stubber): allow passing an error as Value

this allows testing error paths in code:

Pass an `error` type as the Value, it will be reflect-...

github.com/profclems/glab - 70672aff1869ff7483e61cf2bf4897c71c648c6e authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): use assert.EqualError

assert.Error just checks if there is output, we want to check the output
against what we expect

github.com/profclems/glab - 8e19d3e75bcc8a37c8deff2f6d0b3bbe4c0cb7d2 authored about 4 years ago by Leo <[email protected]>
test(commands/cmdutils): test for prompt failures

github.com/profclems/glab - 386be421c1013a58382b034552fd931f129ed738 authored about 4 years ago by Leo <[email protected]>
Merge pull request #488 from profclems/ch-switch-test-job-to-github-action

chore(ci/test): switch test job from GitLab CI to GitHub action

github.com/profclems/glab - 3ad4190eedecd0b959f7eabe84044be1baaa6233 authored about 4 years ago by Clement Sam <[email protected]>
fix(commands/cmdtest/helper): get root dir via git

github.com/profclems/glab - baf9bae0e09a7c855f267f7d354ef90c4408326b authored about 4 years ago by Clement Sam <[email protected]>
chore(ci/test): switch test job from GitLab CI to GitHub action

Currently, GitLab CI does not run on forks per the discussion here https://gitlab.com/gitlab-org...

github.com/profclems/glab - 7705e8aa643dce070e7b9c978579bd9a74c20a8b authored about 4 years ago by Clement Sam <[email protected]>
Merge pull request #487 from maxice8/fix-usage-of-assert-equal

test(internal/glrepo/resolver): fix usage of assert()

github.com/profclems/glab - 8fd12b18dd191506db5571a3809c2c31453602cd authored about 4 years ago by maxice8 <[email protected]>
Merge pull request #486 from maxice8/test-remoteNameSortingScore

test(internal/glrepo/remote): test remoteNameSortingScore()

github.com/profclems/glab - 021dfbff74f7b4bd478eca24c70e40943c0a96a2 authored about 4 years ago by maxice8 <[email protected]>
test(internal/glrepo/resolver): fix usage of assert()

while it was not exactly wrong the function expects the expected output
to come before the actua...

github.com/profclems/glab - 3cf93fe4a2f2b6386fff19274be0d495fd760663 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/remote): test remoteNameSortingScore()

github.com/profclems/glab - e8131b5d67fb928d435960ba8a91b30be1950b9c authored about 4 years ago by Leo <[email protected]>
Merge pull request #485 from maxice8/add-more-tests

Add more tests, use `pkg/prompt` for prompts

github.com/profclems/glab - 2f84af0ba8546af74a69ae369ad03152d2dfc92c authored about 4 years ago by maxice8 <[email protected]>
Merge pull request #484 from maxice8/remove-impossible-to-reach-code

refactor(internal/glrepo/resolver): remove unreachable code

github.com/profclems/glab - 4564732422e0e559ad89bc143d42a91357612629 authored about 4 years ago by maxice8 <[email protected]>
test(internal/glrepo/resolver): test BaseRepo() and HeadRepo()

github.com/profclems/glab - e6898bec7b65d5fe80059f4210170ca254cd923f authored about 4 years ago by Leo <[email protected]>
refactor(internal/glrepo/resolver): use pkg/prompt in {Base,Head}Repo()

github.com/profclems/glab - 1bed44e1a9fab6b39e2ecd49cc48fbe9b98e0204 authored about 4 years ago by Leo <[email protected]>
feat(internal/git): make git.SetRemoteResolution a variable

so it can be more easily overridden for testing.

github.com/profclems/glab - 14bd905e2773849a0fe7db4f935b8a92b7f4338c authored about 4 years ago by Leo <[email protected]>
refactor(internal/glrepo/resolver): remove unused function HeadRepos()

Nothing anywhere uses it

github.com/profclems/glab - 3c5995f7f81e03104f60438ced7013c4a46979e3 authored about 4 years ago by Leo <[email protected]>
refactor(internal/glrepo/resolver): remove unreachable code

because of the loop condition:

```golang
for i := 0; i < len(result.remotes) && i < maxRemotesF...

github.com/profclems/glab - d48e2a51c5122615de25b7186376c2de16d54a14 authored about 4 years ago by Leo <[email protected]>
Merge pull request #482 from maxice8/test-more-stuff

Add testing for MilestonePrompt()

github.com/profclems/glab - e422613dd52d57bbeba42b3eabcfba460f8382b4 authored about 4 years ago by Clement Sam <[email protected]>
test(internal/glrepo/resolver): expand testing for resolveNetwork()

github.com/profclems/glab - 02f7c672eb141bbaffb98e0e7d4b88a9e466056e authored about 4 years ago by Leo <[email protected]>
fix(internal/glrepo/resolver): rewrite resolveNetwork()

- No longer return anything as the function before returned error but it
only ever returned `nil...

github.com/profclems/glab - e117cb4c50663fce247e497c5eab8aaa3153e344 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): add tests for resolveNetwork()

github.com/profclems/glab - bc88caf3465a1f1dfff7341d1aff001348f05514 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): add tests for ResolveRemotesToRepos()

github.com/profclems/glab - 42b2f3bec99f29439be5b6556ee1405a3ce0bd61 authored about 4 years ago by Leo <[email protected]>
test(internal/glrepo/resolver): add tests for RemoteForRepo()

github.com/profclems/glab - f20a9f8ff6d3ac09a07a232a3372ee4d00c84dfd authored about 4 years ago by Leo <[email protected]>
test(command/cmdutils): add tests for IDsFromUsers()

github.com/profclems/glab - 0d571f00b3b6ecbae7bbef592ff3a93e86f3f955 authored about 4 years ago by Leo <[email protected]>
test(commands/cmdutils): test error handling on MilestonesPrompt()

github.com/profclems/glab - 3f13766546c05fd4530b8023027500f34cf6052f authored about 4 years ago by Leo <[email protected]>
test(commands/cmdutils): test error output of MilestonesPrompt()

github.com/profclems/glab - e538026645314fa0c481b939aade5a114ddd062b authored about 4 years ago by Leo <[email protected]>
refactor(commands/cmdutils): remove redundant assignment of gitlab.Client{}

github.com/profclems/glab - 6dcc0766c6f13272b113e27d5eb79b8991dd4f60 authored about 4 years ago by Leo <[email protected]>
test(command/cmdutils): add tests for MilestonePrompt()

github.com/profclems/glab - cf9c82cab1489994f9bcb7f8f7e6a51607feb52e authored about 4 years ago by Leo <[email protected]>