Gitlab Notes

using the API

examples

http://repo.fo.am/api/v3/projects?private_token=xX

add new issues

(require 'web)
 
;; Add new tickets
;;   https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/issues.md
 
;; id (required) - The ID of a project
;; title (required) - The title of an issue
;; description (optional) - The description of an issue
;; assignee_id (optional) - The ID of a user to assign issue
;; milestone_id (optional) - The ID of a milestone to assign issue
;; labels (optional) - Comma-separated label names for an issue
 
(defun new-issue (title description assignee_id labels)
  "NOTE: default project number is 23"
  (let ((query-data (make-hash-table :test 'equal))
	(auth "xxxxxxxxxxxxxxxxx"))
    (puthash 'private_token auth query-data)
    (puthash 'title title query-data)
    (puthash 'description description query-data)
    (puthash 'assignee_id assignee_id query-data)
    (puthash 'labels labels query-data)
 
    (web-http-post
     (lambda (cons header data)
       (message "data received is: %s" data))
     :url "http://repo.fo.am/api/v3/projects/23/issues"
     :data query-data)))

Trac to gitlab migration