"Send HTTP request at URL using METHOD with DATA.
AUTH is a cons (\"user\" . \"pwd\"). Return the server decoded
JSON response."
+ (message "%s %s %s" method url (prin1-to-string data))
(let* ((url-request-method method)
(url-request-data data)
(auth os-github-auth)
;; XXX: we need an actual markdown parser here...
(defun os-github-filter-desc (desc)
"Return a filtered description of a GitHub description."
- (setq desc (replace-regexp-in-string "^\\*" "-" desc))
- (replace-regexp-in-string "\\([^ \t\n]\\)[ \t\n]*\\'"
- "\\1\n"
- (replace-regexp-in-string "\r\n" "\n" desc)))
+ (setq desc (replace-regexp-in-string "\r\n" "\n" desc))
+ (setq desc (replace-regexp-in-string "\\([^ \t\n]\\)[ \t\n]*\\'"
+ "\\1\n" desc)))
(defun os-github-json-to-bug (data)
"Return DATA (in json) converted to a bug."