GithubHelp home page GithubHelp logo

gk-cli's People

Contributors

alexs-gitk avatar jbuinfo avatar jkelroy avatar justinrobots avatar sergiolms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gk-cli's Issues

[BUG] Security vulnerability issue

Description

Please check the PDF file attached and answer the following:
Our internal security scanning found this vulnerability. we would like Atlassian to go thru the findings (attached PDF) and response us back:
a. Do you accept the finding/is it valid?
a. If so, what is the remediation plan, timeline, and was an internal ticket opened that we could reference?
b. If not, provide justification.

GitKraken CLI Version

4.1.1

OS Version

No response

Git Version

No response

Logs, Screenshots, Screen Captures, URLs, etc

Jira-vulnerability4-GitIntegration.pdf

User Info incorrect

After logging in, I wanted to see what user-info would display and it tells me that my license has expired
image
but according to my Account setting page I am active
image

[FEAT]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[FEAT] Build from source?

Is it possible to build this from source? Binaries for macOS are only for aarch64 and x86_64, there are none for PowerPC or i386.

[FEAT] Add docs explaining how to log into gk on a terminal-only system

Is your feature request related to a problem? Please describe.
There's no documented way to log in to gk on a terminal-only system (i.e. that has no browser).

Describe the solution you'd like
I'd like the documentation of the gk login command to include instructions on how to log in to gk using the terminal, and possibly another system where a token can be obtained using a browser.

Describe alternatives you've considered
Disassembling the executable to find the flags of the gk login command.

Additional context
On a terminal only system, calling gk login fails silently with no comment/warning/error.

[BUG] Unable to create a cloud workspace for our company GitHub Enterprise Server

Description

  1. Try to create a cloud workspace for GitHub Enterprise Server
  2. The workspace is created but no repositories can be added
  3. The following error is displayed in the main windows: We are having trouble connecting to GitHub Enterprise Server. Please check your integration settings for GitHub Enterprise Server to access this workspace.
  4. The following error is displayed as a popup window: Gitkraken GitHub Enterprice server failed to initialize {"error": "Not Found"}

I confirmed that I can manually clone, pull, push from the single repositories (I do it on a daily basis). It is just the cloud workspace feature which is not working.

If there is any additional setting that our IT department need to do on the GitHub side, please let us know.

GitKraken CLI Version

9.13.0

OS Version

  • OS: Windows 10 Pro
  • Version: 10.0.19045 Build 19045
  • Laptop: Dell XPS 15 9510 amd64

Git Version

git version 2.44.0.windows.1

Logs, Screenshots, Screen Captures, URLs, etc

image
image

[BUG] Constant Errors, can't use most commands

Description

I've just installed the CLI on my Ubuntu WSL2, logged in with a PRO subscription, gave oAuth permissions to Gitkraken on my GitHub account and in the organization I'm in.

Most commands return the error message

Error: Something went wrong
invalid credentials

GitKraken CLI Version

1.5.1

OS Version

Windows 11 Pro, version 10.0.22631 Build 22631 with WLS2
Ubuntu 22.04.4
x86_64

Git Version

git version 2.43.2

Logs, Screenshots, Screen Captures, URLs, etc

image

[BUG] Errors when using commands that require interacting with Bitbucket Server

Description

A go error happens when trying to ls pr from bitbucket server

GitKraken CLI Version

2.01

OS Version

windows 10

Git Version

git version 2.36.1.windows.1

Logs, Screenshots, Screen Captures, URLs, etc

PS C:\xxxx\gir_repo>gk pr view
Workspace: Data Engineering
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x98 pc=0x142f30b]

goroutine 77 [running]:
github.com/gitkraken/cli/pkg/infrastructure/domain.PullRequestRestRepository.listFromRepos.func1.1(0x1, {{0x0, 0x0}, {0x0, 0x0}, {0xc000784380, 0x20}, {0x0, 0x0}, {0xc0007ce473, ...}, ...})
/Users/runner/work/cli/cli/pkg/infrastructure/domain/pull_request_rest_repository.go:174 +0x6ab
created by github.com/gitkraken/cli/pkg/infrastructure/domain.PullRequestRestRepository.listFromRepos.func1 in goroutine 8
/Users/runner/work/cli/cli/pkg/infrastructure/domain/pull_request_rest_repository.go:146 +0x453

[BUG] `gk focus` panic in local workspace

Description

  1. Having a default local workspace with 2 repos, I added Github as a provider
  2. Use gk focus command
PS D:\dev\Elkiwa\Main> gk settings
- Default workspace: ScoopInstaller
- Max display items: 30
- Max concurrency: 3
- Clone protocol: ssh
- Open default:

GitKraken CLI Version

1.2.2

OS Version

  • OS: Windows 11
  • Version: 23H2 22631.2715
  • Arch: x86_64

Git Version

git version 2.43.0.windows.1

Logs, Screenshots, Screen Captures, URLs, etc

PS D:\dev\Elkiwa\Main> gk focus
Using default workspace: ScoopInstaller
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x40 pc=0x18cb134]

goroutine 1 [running]:
github.com/gitkraken/cli/pkg/infrastructure/domain.UserRestRepository.GetProviderUserInfo({{_, _}, {_, _}, {_, _}, {_, _}}, {{0xc000031050, 0x24}, ...}, ...)
        /Users/runner/work/cli/cli/pkg/infrastructure/domain/user_rest_repository.go:94 +0xf4
github.com/gitkraken/cli/pkg/cmd/focus.NewCmdFocus.func2(0xc000144000, {0x1b7115b?, 0x4?, 0x1b71083?})
        /Users/runner/work/cli/cli/pkg/cmd/focus/focus.go:69 +0x448
github.com/spf13/cobra.(*Command).execute(0xc000144000, {0x375c5e0, 0x0, 0x0})
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916 +0x87c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000145500)
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(0xc000122db0?, {0x2b0df88?, 0x375c5e0?})
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:961 +0x47
main.main()
        /Users/runner/work/cli/cli/cmd/gk/main.go:55 +0x63a

[BUG] "ws -s" does nothing?

Description

Just installed cli. Shell is zsh.
Created a workspace and wanted to add a number of repos to it.
Because I have many repos I figured I loop over a directory where all my repos are sitting in.

Setup default ws: gk ws switch (Your default workspace is now xxxx)

Loop through folders:

find . -maxdepth 1 -type d -exec gk ws -s add-repo {} \;
(example output: gk ws -s add-repo ./folder_name)

Yet I get asked each time which ws I want to use. I tried the long version of -s and also on different places (before ad-repo and after). Its a local ws.
Pressing enter to confirm selection works (I only have 1 ws currently) and adds repo correctly.

Is this the intended behavior? I assume the command uses my "currently in use ws" (hence from switch).

GitKraken CLI Version

1.3.0

OS Version

Mac

Git Version

2.43.0

Logs, Screenshots, Screen Captures, URLs, etc

brew info gitkraken-cli
==> gitkraken-cli: 1.3.0
https://github.com/gitkraken/gk-cli
/opt/homebrew/Caskroom/gitkraken-cli/1.3.0 (47.0MB)

[BUG] Push Failed cannot read properties undefined (reading 'pushUrl')

Description

In the GUI 9.13.0 on debian.

I think this is related to my gitconfig url
[remote "origin"]
url = MyUserName%git%Myhost.FQDN.TLD@GITSERVERHOSTNAME:public/REPOGROUP/REPONAME

I changed the url to an unknown host and saved and tried to push and got a host not found error.
Then I changed the url back to the above format (but real values) and saved and it went through.

I did not originally clone or create this branch with git kraken.

But now I can't easily reproduce this issue.

GitKraken CLI Version

Dont know

OS Version

Debian

Git Version

git version 2.43.0

Logs, Screenshots, Screen Captures, URLs, etc

shot-2024-04-30_08-46-56

Not opening correct repo from graph command

Describe the bug
Not opening correct repo from graph command

To Reproduce
Steps to reproduce the behavior:

  1. Open a repo in GitKraken Client
  2. Close GitKtaken Client
  3. from command line run gk graph from a different repo
  4. GitKraken opens but the repo you are in is not opened

Expected behavior
GitKraken Client opens the repo you ran the command in.

Screencast.from.2023-05-25.17-23-24.webm

[BUG] Github Integration - SSH key missmatch in github

Description

I want to connect to GitHub (github.com).

I pair my GitKraken with the token, then provide my SSH key generated by this command: "ssh-keygen -t ed25519" and add it to GitHub using GitKraken, along with a comment to name my key.
So far, so good.

But once I've done this, the key name isn't the one I added and the connection to GitHub doesn't work.
It's as if GitKraken was trying to make my SSH key work with the wrong GitHub key.

I'd like to point out that the Github account has several SSH keys, since several of us are working on it, and that yesterday (17/01), during the 1st creation, it worked.

Example: I create and add an SSH key that I name "AXEL_GitKraken", then once I've added it, GitKraken tells me that my key is called "Local FPO" and that it was added on 24/11/2023 instead of today, which is the date the "Local FPO" key was added to Github, but not the "AXEL_GitKraken" key.

GitKraken CLI Version

9.11.1

OS Version

Windows 11

Git Version

No response

Logs, Screenshots, Screen Captures, URLs, etc

No response

[BUG] Error when doing any `gk.exe` command inside the GitKraken terminal on Windows

Description

In the Terminal Panel of GitKraken 9.6.0 (x64 64-bit), running any gk commands gives an error:

gk version
v1.0.7
Error: unknown command "setCwd" for "gk"
Run 'gk --help' for usage.

I'm current (as far as I know) on both GitKraken, and as-of today current on gk-cli as well (oops).

GitKraken CLI Version

1.0.7

OS Version

Microsoft Windows [Version 10.0.22631.2048]
Processor Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz 2.30 GHz
Installed RAM 32.0 GB (31.9 GB usable)
System type 64-bit operating system, x64-based processor
Edition Windows 11 Pro
Version 23H2
OS build 22631.2048
Experience Windows Feature Experience Pack 1000.22658.1000.0

Git Version

git version 2.41.0.windows.2

Logs, Screenshots, Screen Captures, etc

No response

[BUG] attempting to create a patch from an untracked file gives an error

Description

On Windows using Powershell, if you attempt to create a patch from an untracked file, you get the response Error: patch data cannot be blank.

  1. Open a repository and create a new file
  2. Attempt to create a patch using gk patch create and follow the prompts or use gk patch create --from-wip --title <title

Error: patch data cannot be blank

Creating a patch with the repository in the same state from GitKraken Client works as expected. Also, if you commit the file and create a patch from this commit it works as expected.

GitKraken CLI Version

1.4.0

OS Version

Windows 11 Pro v10.0.22621 Build 22621

Git Version

git version 2.41.0.windows.3

Logs, Screenshots, Screen Captures, URLs, etc

image

[BUG] "gk login" does not respond after authenticating in browser

Description

  1. Warp Terminal (I tried with iTerm 2 also)
  2. gk login
  3. login browser
  4. nothing happens

It just looks like the "gk login" process is still waiting for login after the browser said "you can now close the window"/

GitKraken CLI Version

1.0.8

OS Version

MacOS Ventura 13.5.2

Git Version

git version 2.39.2 (Apple Git-143)

Logs, Screenshots, Screen Captures, etc

2023 09 15 @ 09 48 55AM
2023 09 15 @ 09 49 03AM@2x
2023 09 15 @ 09 49 26AM

[FEAT]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[BUG] Panic when checking the version in Linux

Description

Env: Linux

Command: gk version

Error:

panic: interface conversion: interface {} is nil, not version.NewVersionInfo

goroutine 1 [running]:
github.com/gitkraken/cli/pkg/cmd.endVersionCheck(0x254aff8?, {0x252b690, 0xc0001ccbd0}, {0x2526c40, 0xc000070038}, 0x40?)
        /Users/runner/work/cli/cli/pkg/cmd/root_command.go:139 +0x11a
github.com/gitkraken/cli/pkg/cmd.NewCmdRoot.func2(0xc00062e300?, {0x1592f34?, 0x4?, 0x1592ef0?})
        /Users/runner/work/cli/cli/pkg/cmd/root_command.go:56 +0x69
github.com/spf13/cobra.(*Command).execute(0xc00062e300, {0x314a480, 0x0, 0x0})
        /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:936 +0xa22
github.com/spf13/cobra.(*Command).ExecuteC(0xc0006cd200)
        /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(0x2526050?, {0x2531388?, 0x314a480?})
        /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:961 +0x47
main.main()
        /Users/runner/work/cli/cli/cmd/gk/main.go:30 +0x12e

image

GitKraken CLI Version

1.2.0

OS Version

EndeavourOS Linux

Git Version

2.43.0

Logs, Screenshots, Screen Captures, URLs, etc

No response

[FEAT] allow multiple providers of the same kind.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

gk provider seems to be limited to only 1 github account.

What if I have multiple github.com accounts and/or github enterprise accounts?

Describe the solution you'd like
A clear and concise description of what you want to happen.

All the provider categories (azure, bitbucket, gitlab, github, jira, trello) should support the possibility of multiple accounts for a given category.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[FEAT] gk pr list --json

Is your feature request related to a problem? Please describe.
would like to get the output in a machine readable format for further processing, eg to list specific fields only. Eg to use in WTF

Describe the solution you'd like
all output can have a --json or so like flag

Describe alternatives you've considered
scraping with sed/awk

Additional context
havng some additional info in the json (optionally), like tags, author, would be nice extra

[BUG] GITHUB STUDENT PACK

Description

Tried to get pro with github student pack used my github account has student stuff yet still dont have pro >:(

GitKraken CLI Version

1.0.6

OS Version

MacOS Big Sur

Git Version

No response

Logs, Screenshots, Screen Captures, URLs, etc

No response

[BUG] Workspace operations flags do not work in powershell

Description

Using the CLI in powershell, when doing workspace commands like fetch, the -a and --all flags do not work. They appear to be missing/unsupported.

GitKraken CLI Version

1.5.1

OS Version

Windows 11

Git Version

git version 2.44.0.windows.1

Logs, Screenshots, Screen Captures, URLs, etc

image

image

[FEAT]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Tasks

  1. trevor-polidore
  2. type: feature request

MacOS install process

Is your feature request related to a problem? Please describe.
After installing the CLI on MacOS and moving it to /usr/local/bin/, I get the following error when running gk:

zsh: command not found: gitk

Describe the solution you'd like
The readme should probably be updated with more information about installing on MacOS.

Describe alternatives you've considered
Eventually, it would be great to be able to install this using HomeBrew!

Happy to provide any other information you need.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.