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

Add support to specify github api url #12

Closed
diasjorge opened this issue Aug 24, 2012 · 6 comments
Closed

Add support to specify github api url #12

diasjorge opened this issue Aug 24, 2012 · 6 comments

Comments

@diasjorge
Copy link

I'd be very good if we could specify the url for the github api. Where I work we use github enterprise and I'd like to have a variable where I could set the url, this way I could set in my .dir-locals file a different value for my work projects.

I tried to make the gh-api-v3 class to take the value for a variable but it didn't work, and this eieio module and the way of working feels too alien for me to tackle :(

@emschwar
Copy link

I'm in a similar situation; it would be handy for me to specify a list of github servers; sometimes I need to gist something privately, and sometimes it can go on github.com.

@mgalgs
Copy link

mgalgs commented Jan 14, 2013

👍

@sigma
Copy link
Owner

sigma commented Mar 13, 2013

this should now be supported, see gh-profile.el, and its gh-profile-alist custom option.
The global strategy is to dynamically bind `gh-profile-current-profile' around calls to api object constructors

gist.el support has been added as well.
Hope it doesn't work just for me :)

@mgalgs
Copy link

mgalgs commented Mar 15, 2013

Works for me!

@diasjorge
Copy link
Author

Would any of you mind posting a gist example on how to do this? or add it to the wiki maybe?

@mgalgs
Copy link

mgalgs commented Mar 15, 2013

M-x customize-group [enter] gh-profile, then click the buttons and stuff :). See also: http://www.gnu.org/software/emacs/manual/html_node/emacs/Easy-Customization.html

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

No branches or pull requests

4 participants