question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose git.publish as a command through Git API

See original GitHub issue

The git.publish command would be very helpful to have in the API itself. Right now, push is very limited in that everything needs to already be set up for the user before we can push, but publish has a really great UI experience to help the user with everything.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nturinskicommented, Nov 6, 2020

Yes, but I haven’t been able to catch any errors (if the repo you try to publish has no commits, for instance).

On a side-note, it would be nice if the publishRepository didn’t await the information window to view the repo in GitHub since it’s easy for a user to miss, but if used as part of a step, won’t proceed to the next step until a user clicks something (either view or X)

0reactions
joaomorenocommented, Nov 11, 2020

Another unrelated note, but publish also defaults to the authenticated user so a user can’t create a repo in an authorized organization through VS Code.

https://github.com/microsoft/vscode/issues/98349

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with the REST API - GitHub Docs
To make a request using GitHub CLI, use the api subcommand along with the path. Use the --method or -X flag to specify...
Read more >
GitHub REST API Tutorial - REST API Support In GitHub
This GitHub Tutorial will explain how to use REST API for various actions to GET, PUT, POST, PATCH, DELETE data using the CURL...
Read more >
4.1 Git on the Server - The Protocols
In order for a repository to be served over the Git protocol, you must create a git-daemon-export-ok file — the daemon won't serve...
Read more >
How to create repository in github through github API?
Step 2: On command line use the given API as a POST request https://api.github.com/orgs/<organisation_name>/repos?access_token=<generated token>.
Read more >
Make Git Your API - Fusebit
Consider using git as part of your APIs ... This post describes your options and introduces fusebit/cloud-git, a pure JavaScript git server ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found