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)))
  • export tickets from trac using xls export → http://trac-hacks.org/wiki/ExportImportXlsPlugin
    • (download, easy_install xlwt, python setup.py bdist_egg, etc+)
  • emacs for text mogrificaiton and auto slonking via csv
  • tweaking of individual issues in gitlab
  • gitlab_notes.txt
  • Last modified: 2013-05-27 16:51
  • by nik