Skip to content

Commit 3c0b1cc

Browse files
committed
s/pr-alist/commit-alist/
1 parent 7dc28e8 commit 3c0b1cc

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

github-review.el

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ return a deferred object"
192192
(github-review-get-pr-object pr-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d)))
193193
d))
194194

195-
(defun github-review-get-commit-deferred (pr-alist needs-diff)
195+
(defun github-review-get-commit-deferred (commit-alist needs-diff)
196196
"Get a commit or its diff.
197-
PR-ALIST is an alist representing a PR,
197+
COMMIT-ALIST is an alist representing a PR,
198198
NEEDS-DIFF t to return a diff nil to return the pr object
199199
return a deferred object"
200200
(let ((d (deferred:new #'identity)))
201201
(if needs-diff
202-
(github-review-get-commit-diff pr-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d))
203-
(github-review-get-commit-object pr-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d)))
202+
(github-review-get-commit-diff commit-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d))
203+
(github-review-get-commit-object commit-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d)))
204204
d))
205205

206206
(defun github-review-post-review-commit (commit-alist review callback)
@@ -688,24 +688,24 @@ See ‘github-review-start’ for more information"
688688
(lambda (err)
689689
(message "Got an error from the GitHub API %s!" err)))))
690690

691-
(defun github-review-get-commit-comments (pr-alist callback)
691+
(defun github-review-get-commit-comments (commit-alist callback)
692692
"Get the top level comments on a PR.
693-
PR-ALIST is an alist representing a PR
693+
COMMIT-ALIST is an alist representing a PR
694694
CALLBACK will be called back when done"
695-
(ghub-get (github-review-format-commit-url 'get-commit-comments pr-alist)
695+
(ghub-get (github-review-format-commit-url 'get-commit-comments commit-alist)
696696
nil
697697
:auth 'github-review
698-
:host (github-review-api-host pr-alist)
698+
:host (github-review-api-host commit-alist)
699699
:errorback (lambda (&rest _) (message "Error talking to GitHub"))
700700
:callback callback))
701701

702-
(defun github-review-get-commit-comments-deferred (pr-alist)
702+
(defun github-review-get-commit-comments-deferred (commit-alist)
703703
"Get the top level comments on a PR.
704-
PR-ALIST is an alist representing a PR
704+
COMMIT-ALIST is an alist representing a PR
705705
CALLBACK will be called back when done
706706
return a deferred object"
707707
(let ((d (deferred:new #'identity)))
708-
(github-review-get-commit-comments pr-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d)) d))
708+
(github-review-get-commit-comments commit-alist (apply-partially (lambda (d v &rest _) (deferred:callback-post d v)) d)) d))
709709

710710

711711
;;;###autoload

0 commit comments

Comments
 (0)