add a note to new github oauth requests #13

Merged
merged 1 commit into from Sep 30, 2012
View
@@ -98,7 +98,9 @@
(defmethod gh-oauth-auth-new ((api gh-oauth-api) &optional scopes)
(gh-api-authenticated-request
api (gh-object-reader (oref api auth-cls)) "POST"
- (format "/authorizations") (list (cons 'scopes scopes))))
+ (format "/authorizations") (list (cons 'scopes scopes)
+ (cons 'note (format "gh.el - %s"
+ (system-name))))))
(defmethod gh-oauth-auth-update ((api gh-oauth-api) id &optional scopes)
(gh-api-authenticated-request