Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create an Atlascode Integration so VSCode can create a Bitbucket pull request?

Barry Rafkind
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2019

By default, VSCode asks for an Atlascode Integration with the following permissions:

  • Read your account information
  • Read and modify your repositories' issues
  • Access your repositories' build pipelines
  • Read your team's project settings and read repositories contained within your team's projects
  • Read and modify your repositories and their pull requests
  • Read and modify your snippets
  • Read your team membership information

I can view pull requests. However, when creating a pull request from the VSCode Atlassian extension, it fails with this error:

Something went wrong

exitCode:128

gitCommand:fetch

gitErrorCode:RemoteConnectionError

message:Failed to execute git

stderr:Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

stdout:

1 answer

1 accepted

0 votes
Answer accepted
Pramod Busam
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 1, 2019

@Barry Rafkind Looks like an error occurred when the extension tries to execute a git command. Could you check a couple of things?

- Can you run a git command (eg. Git: Fetch) from VS Code's command palette and see if that works?

- If you haven't cloned using ssh, can you try setting that up? https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html

 

There are some suggestions in another community question which might help - https://community.atlassian.com/t5/Sourcetree-questions/Permission-denied-publickey/qaq-p/594966

Barry Rafkind
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 1, 2019

Thanks, Pramod! Actually, I was not able to run git commands from the command palette although I had ssh-agent running with my ssh key. I was able to solve this according to the advice here https://github.com/Microsoft/vscode/issues/13680 by using the built-in OpenSSH service in Windows 10.

Like Pramod Busam likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events