Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gitlab_notes [2013-05-27 13:07] – created nikgitlab_notes [2013-05-27 16:51] (current) – [Gitlab Notes] nik
Line 9: Line 9:
   http://repo.fo.am/api/v3/projects?private_token=xX   http://repo.fo.am/api/v3/projects?private_token=xX
      
 +add new issues
 +
 +<code lisp> 
 +(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)))
 +
 +</code> 
 + 
 + 
 +==== Trac to gitlab migration ====
 +  * 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.1369660037.txt.gz
  • Last modified: 2013-05-27 13:07
  • by nik