An open API service indexing awesome lists of open source software.

https://github.com/lujun9972/org2issue

export org to github issue
https://github.com/lujun9972/org2issue

Last synced: 6 months ago
JSON representation

export org to github issue

Awesome Lists containing this project

README

          

* org2issue
export org to github issue

so you can use org to write github issue based blog
* Usage
1. specify ~org2issue-user~ as your github username
2. specify ~org2issue-blog-repo~ as the blog repository name
3. open the org file
4. execute =M-x org2issue= will add/update the issue
5. execute =C-u M-x org2issue= will close the issue
6. if ~org2issue-browse-issue~ is non-nil, the new/updated issue will be browsed by =browse-url=
7. if specified ~org2issue-update-file~, org2issue will insert the issue-url into the file
8. usually, ~org2issue-update-file~ is the absolote path to =README.org= in the local blog repo directory
9. Also, you can use =M-x org2issue-regenerate-readme= to regenerate the ~org2issue-update-file~.
It will fetch issue list and use them to rewrite ~org2issue-update-file~
* BUGS
+ It can't add issue labels.

To add issue labels. You have to redefine the method `gh-issues-issue-req-to-update` as below:
#+BEGIN_SRC emacs-lisp
(defmethod gh-issues-issue-req-to-update ((req gh-issues-issue))
(let ((assignee (oref req assignee))
(labels (oref req labels))
(milestone (oref req milestone))
(to-update `(("title" . ,(oref req title))
("state" . ,(oref req state))
("body" . ,(oref req body)))))

(when labels (nconc to-update `(("labels" . ,(oref req labels) ))))
(when milestone
(nconc to-update `(("milestone" . ,(oref milestone number)))))
(when assignee
(nconc to-update `(("assignee" . ,(oref assignee login) ))))
to-update))
#+END_SRC