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
- Host: GitHub
- URL: https://github.com/lujun9972/org2issue
- Owner: lujun9972
- Created: 2016-03-23T15:55:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-31T09:41:37.000Z (about 7 years ago)
- Last Synced: 2025-02-09T15:11:59.019Z (over 1 year ago)
- Language: Emacs Lisp
- Homepage:
- Size: 23.4 KB
- Stars: 11
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
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