This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gitlab_notes [2013-05-27 13:07] – created nik | gitlab_notes [2013-05-27 16:51] (current) – [Gitlab Notes] nik | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| http:// | http:// | ||
| | | ||
| + | add new issues | ||
| + | |||
| + | <code lisp> | ||
| + | (require 'web) | ||
| + | |||
| + | ;; Add new tickets | ||
| + | ;; | ||
| + | |||
| + | ;; 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 ' | ||
| + | (auth " | ||
| + | (puthash ' | ||
| + | (puthash 'title title query-data) | ||
| + | (puthash ' | ||
| + | (puthash ' | ||
| + | (puthash ' | ||
| + | | ||
| + | (web-http-post | ||
| + | | ||
| + | | ||
| + | :url " | ||
| + | :data query-data))) | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Trac to gitlab migration ==== | ||
| + | * export tickets from trac using xls export -> http:// | ||
| + | * (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 | ||
| + | |||