Skip to content

Use the v3 API for creating gists #203

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

Merged
merged 4 commits into from
Jul 3, 2013
Merged

Conversation

jdelStrother
Copy link

Hi there,
As far as I can tell, the "Gist it" button has been dead for a while. This series of commits fixes it up to use the latest version of the github API.

The one part I'm not too sure about is using github.token. If you haven't set this in your config, it'll just post anonymous gists. If you obtain a personal token from https://github.com/settings/applications and set github.token to it, it'll create gists tied to your account. However, github.token dates back from ancient times, and I'm not sure if I should be reusing it in this way (or if old github.token's are still valid for OAuth authentication). Perhaps it should be a new UI field in GitX's preferences rather than a git config value...

Jonathan del Strother added 4 commits June 26, 2013 11:34
Previously would only show errors with HTTP 2xx responses
v1 & v2 have been dead for quite a while
Can be created at https://github.com/settings/applications, then set with "git config --global github.token bef91b559df0014f71c212fc44171b5bc6de12e9a"
@rowanj
Copy link
Owner

rowanj commented Jun 27, 2013

Thanks!

@rowanj
Copy link
Owner

rowanj commented Jun 27, 2013

Changes seem good.

I'll be adding some other fun settings soon, so I'll take a look at the UI for this if it hasn't been done by then.

@rowanj
Copy link
Owner

rowanj commented Jul 3, 2013

I had some issues with running this just sat on the upload spinner indefinitely, but it seems to have cleared up now; so perhaps that was just some caching/webservice weirdness.

Merging as-is because it seems to be working just fine now. Thanks for the fix!

rowanj added a commit that referenced this pull request Jul 3, 2013
@rowanj rowanj merged commit f3e7e59 into rowanj:master Jul 3, 2013
rowanj added a commit that referenced this pull request Jul 3, 2013
Also, put pull request #203 under the correct version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants