Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update of issue updates milestone and assignee

  • Loading branch information...
commit 85a9ae104fcdc3dbf7a2dce3ca5cb2e6dab1eb60 1 parent 0da85a5
Raimon Grau kidd authored

Showing 1 changed file with 11 additions and 7 deletions. Show diff stats Hide diff stats

  1. +11 7 gh-issues.el
18 gh-issues.el
@@ -155,13 +155,17 @@
155 155 (format "/repos/%s/%s/issues/%s" user repo id)))
156 156
157 157 (defmethod gh-issues-issue-req-to-update ((req gh-issues-issue))
158   - `(("title" . ,(oref req title))
159   - ("body" . ,(oref req body))
160   - ; ("assignee" . ,(oref (oref req assignee) login) )
161   - ; ("labels" . ,(oref (oref req assignee) labels) )
162   - ; ("state" . ,(oref req state) )
163   - ; ("milestone" . ,(oref req milestone))
164   - ))
  158 + (let ((assignee (oref req assignee))
  159 + ;; (labels (oref req labels))
  160 + (milestone (oref req milestone))
  161 + (to-update `(("title" . ,(oref req title))
  162 + ("state" . ,(oref req state))
  163 + ("body" . ,(oref req body)))))
  164 +
  165 + ;; (when labels (nconc to-update `(("labels" . ,(oref req labels) ))))
  166 + (when milestone (nconc to-update `(("milestone" . ,(oref milestone number)))))
  167 + (when assignee (nconc to-update `(("assignee" . ,(oref assignee login) ))))
  168 + to-update))
165 169
166 170 (defmethod gh-issues-issue-update ((api gh-issues-api) user repo id req)
167 171 (gh-api-authenticated-request

0 comments on commit 85a9ae1

Please sign in to comment.
Something went wrong with that request. Please try again.