Permalink
Browse files

add missing autoloads

  • Loading branch information...
sigma committed Jul 25, 2016
1 parent 2b6f0f0 commit a5cc3f169bee98392cd6c8185d24ddd33b2dbb6a
Showing with 33 additions and 0 deletions.
  1. +5 −0 gh-api.el
  2. +1 −0 gh-auth.el
  3. +2 −0 gh-cache.el
  4. +1 −0 gh-comments.el
  5. +4 −0 gh-common.el
  6. +1 −0 gh-gist.el
  7. +6 −0 gh-issues.el
  8. +3 −0 gh-oauth.el
  9. +2 −0 gh-orgs.el
  10. +3 −0 gh-pulls.el
  11. +1 −0 gh-repos.el
  12. +1 −0 gh-search.el
  13. +3 −0 gh-url.el
View
@@ -118,9 +118,11 @@
(or (oref api :auth)
(funcall gh-api-v3-authenticator "auth")))))
;;;###autoload
(defclass gh-api-request (gh-url-request)
((default-response-cls :allocation :class :initform gh-api-response)))
;;;###autoload
(defclass gh-api-response (gh-url-response)
())
@@ -136,10 +138,12 @@
(defmethod gh-url-response-set-data ((resp gh-api-response) data)
(call-next-method resp (gh-api-json-decode data)))
;;;###autoload
(defclass gh-api-paged-request (gh-api-request)
((default-response-cls :allocation :class :initform gh-api-paged-response)
(page-limit :initarg :page-limit :initform -1)))
;;;###autoload
(defclass gh-api-paged-response (gh-api-response)
())
@@ -237,6 +241,7 @@
(oref req default-response-cls)
:transform transformer))))))
;;;###autoload
(defclass gh-api-callback (gh-url-callback)
((cache :initarg :cache)
(key :initarg :key)
View
@@ -103,6 +103,7 @@
(defmethod gh-auth-modify-request ((auth gh-authenticator) req)
req)
;;;###autoload
(defclass gh-auth-2fa-callback (gh-url-callback)
((req :initarg :req :initform nil))
"2-factor callback")
View
@@ -41,6 +41,7 @@
(defconst gh-cache-version-constant
(format "%s/gh-%s" pcache-version-constant gh-cache-internal-version-constant))
;;;###autoload
(defclass gh-cache (pcache-repository)
((version-constant :allocation :class)
(entries :initarg :entries :initform (make-hash-table :test 'equal))
@@ -51,6 +52,7 @@
(oset-default 'gh-cache version-constant gh-cache-version-constant)
;;;###autoload
(defclass gh-cache-entry (pcache-entry)
((etag :initarg :etag :initform nil)
(outdated :initarg :outdated :initform nil)
View
@@ -35,6 +35,7 @@
(require 'gh-common)
(require 'gh-api)
;;;###autoload
(defclass gh-comments-api-mixin ()
((comment-cls :allocation :class :initform gh-comment))
:abstract t)
View
@@ -82,6 +82,7 @@
`(marshal-defclass ,name ,superclass ,slots ,@options-and-doc
:marshal-default-spec gh-marshal-default-spec))
;;;###autoload
(gh-defclass gh-object ()
())
@@ -108,6 +109,7 @@
(if (eq fn 'oref) nil
(call-next-method)))
;;;###autoload
(gh-defclass gh-ref-object (gh-object)
((id :initarg :id)
(url :initarg :url)
@@ -124,11 +126,13 @@
(if (stringp obj) obj
(error "illegal input for `gh-ref-object-base'")))
;;;###autoload
(gh-defclass gh-user (gh-ref-object)
((login :initarg :login)
(gravatar-url :initarg :gravatar-url))
"Github user object")
;;;###autoload
(gh-defclass gh-comment (gh-ref-object)
((body :initarg :body)
(user :initarg :user :initform nil :marshal-type gh-user)
View
@@ -81,6 +81,7 @@
(forks :initarg :forks :initform nil :type list :marshal-type (list gh-gist-fork-entry)))
"Gist object")
;;;###autoload
(gh-defclass gh-gist-gist-file (gh-object)
((filename :initarg :filename)
(size :initarg :size)
View
@@ -48,13 +48,15 @@
(require 'gh-repos)
;;;###autoload
(defclass gh-issues-api (gh-api-v3 gh-comments-api-mixin)
((issue-cls :allocation :class :initform gh-issues-issue)
(milestone-cls :allocation :class :initform gh-issues-milestone)
(label-cls :allocation :class :initform gh-issues-label)
(comment-cls :allocation :class :initform gh-issues-comment))
"Github Issues api")
;;;###autoload
(gh-defclass gh-issues-issue (gh-ref-object)
((number :initarg :number)
(state :initarg :state)
@@ -71,11 +73,13 @@
(updated-at :initarg :updated-at))
"issues request")
;;;###autoload
(gh-defclass gh-issues-pull-request (gh-object)
((html-url :initarg :html-url)
(diff-url :initarg :diff-url)
(patch-url :initarg :patch-url)))
;;;###autoload
(gh-defclass gh-issues-label (gh-ref-object)
((name :initarg :name)
(color :initarg :color)))
@@ -84,6 +88,7 @@
`(("name" . ,(oref label :name))
("color" . ,(oref label :color))))
;;;###autoload
(gh-defclass gh-issues-milestone (gh-ref-object)
((number :initarg :number)
(state :initarg :state)
@@ -96,6 +101,7 @@
(due-on :initarg :due-on))
"github milestone")
;;;###autoload
(gh-defclass gh-issues-comment (gh-comment)
())
View
@@ -41,6 +41,7 @@
((auth-cls :allocation :class :initform gh-oauth-authorization))
"OAuth API")
;;;###autoload
(defclass gh-oauth-password-authenticator (gh-password-authenticator)
((remember :allocation :class :initform nil)))
@@ -49,13 +50,15 @@
(let ((gh-api-v3-authenticator 'gh-oauth-password-authenticator))
(call-next-method)))
;;;###autoload
(gh-defclass gh-oauth-authorization (gh-ref-object)
((scopes :initarg :scopes)
(token :initarg :token)
(app :initarg :app :initform nil :marshal-type gh-oauth-app)
(updated-at :initarg :updated-at)
(created-at :initarg :created-at)))
;;;###autoload
(gh-defclass gh-oauth-app (gh-object)
((url :initarg :url)
(name :initarg :name)))
View
@@ -47,11 +47,13 @@
(avatar-url :initarg :avatar-url)
(description :initarg :description)))
;;;###autoload
(gh-defclass gh-orgs-plan (gh-object)
((name :initarg :name)
(space :initarg :space)
(private-repos :initarg :private-repos)))
;;;###autoload
(gh-defclass gh-orgs-org (gh-orgs-org-stub)
((name :initarg :name)
(company :initarg :company)
View
@@ -39,6 +39,7 @@
(require 'gh-repos)
;;;###autoload
(defclass gh-pulls-cache (gh-cache)
((invalidation-chain :allocation :class
:initform '(("^/repos/.*/.*/pulls$" . "\0")
@@ -52,6 +53,7 @@
(comment-cls :allocation :class :initform gh-pulls-comment))
"Git pull requests API")
;;;###autoload
(gh-defclass gh-pulls-comment (gh-comment)
((path :initarg :path)
(diff-hunk :initarg :diff-hunk)
@@ -71,6 +73,7 @@
("position" . ,(oref req position)))))
to-update))
;;;###autoload
(gh-defclass gh-pulls-request-stub (gh-ref-object)
((diff-url :initarg :diff-url)
(patch-url :initarg :patch-url)
View
@@ -80,6 +80,7 @@
(has-downloads :initarg :has-downloads))
"Class for GitHub repositories")
;;;###autoload
(gh-defclass gh-repos-ref (gh-object)
((label :initarg :label)
(ref :initarg :ref :initform nil)
View
@@ -25,6 +25,7 @@
(require 'gh-users)
(require 'gh-repos)
;;;###autoload
(defclass gh-search-api (gh-api-v3)
((repo-cls :allocation :class :initform gh-repos-repo)
(user-cls :allocation :class :initform gh-users-user)))
View
@@ -34,6 +34,7 @@
(require 'url-http)
;;;###autoload
(defclass gh-url-request ()
((method :initarg :method :type string)
(url :initarg :url :type string)
@@ -46,6 +47,7 @@
(default-response-cls :allocation :class :initform gh-url-response)))
;;;###autoload
(defclass gh-url-response ()
((data-received :initarg :data-received :initform nil)
(data :initarg :data :initform nil)
@@ -63,6 +65,7 @@
data))
(oset resp :data-received t)))
;;;###autoload
(defclass gh-url-callback ()
nil)

0 comments on commit a5cc3f1

Please sign in to comment.