Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Return remote-url of created repo (by push) or allow setting the id of a newly created gist #178

Closed
bernhard-da opened this issue Dec 18, 2023 · 2 comments · Fixed by #216
Labels
enhancement New feature or request

Comments

@bernhard-da
Copy link

Hi @thomiceli. First of, thanks a lot for creating this wonderful and useful piece of software! Today I spent a bit of time to try to make use of initializing gists via git push (documented here) which generally works well. To make scripting a bit easier, it would be great if the

git push -u origin master

could somehow be wrapped into an API-call so that it actually returns the newly created Gist-url; Currently the created url (together with further instructions) is only printed in the output.

remote: Your new repository has been created here: {opengist.url}/{id}
remote: If you want to keep working with your gist, you could set the remote URL via:        
remote: git remote set-url origin {opengist.url}/{id}

If there was any way to get the {id} after the push-command or by allowing to set {id} directly by allowing something like

git remote add origin {opengist.url}/{id}/init

it would be much easier to automate the process of batch-importing.

@thomiceli thomiceli added the enhancement New feature or request label Dec 27, 2023
@thomiceli thomiceli linked a pull request Jan 29, 2024 that will close this issue
@thomiceli
Copy link
Owner

I went for something like this, involving Git push options

git push -o url=mygist # Will set the URL to https://opengist.example.com/user/mygist

@bernhard-da
Copy link
Author

@thomiceli great, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants