项目作者: uphy

项目描述 :
Redmine CLI tool for import/export of issues.
高级语言: Go
项目地址: git://github.com/uphy/redmine-sync.git
创建时间: 2018-07-17T12:53:30Z
项目社区:https://github.com/uphy/redmine-sync

开源协议:

下载


redmine-sync

redmine-sync is a command to import/export redmine issues.

Settings

Set the endpoint and api key to your environment variables.

  1. $ export REDMINE_ENDPOINT=http://localhost:8080/
  2. $ export REDMINE_APIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXX

Commands

Export

redmine-sync export exports issues as csv or yaml.

YAML example:

  1. $ redmine-sync export --format yaml
  2. projects:
  3. - id: 1
  4. tickets:
  5. - id: 1
  6. subject: parent ticket
  7. assignee: Yuhi Ishikura
  8. status: New
  9. done_ratio: 55
  10. description: foo
  11. tracker: Docs
  12. start_date: "2018-07-17"
  13. due_date: "2018-10-20"
  14. priority: High
  15. children:
  16. - id: 20
  17. subject: doc1
  18. assignee: null
  19. status: New
  20. done_ratio: 10
  21. description: doc1
  22. ...

CSV example:

  1. $ redmine-sync export --format csv
  2. Project,ID,Parent ID,Subject,Assignee,Status,Done Ratio,Description,Tracker,Start Date,Due Date,Priority
  3. aaaa,28,0,ticket20,Redmine Admin,New,0,hogehoge,Bug,2018-07-23,,Normal
  4. aaaa,34,0,ticket4,,New,0,,Bug,2018-07-23,,Normal
  5. aaaa,36,0,ticket6,,New,0,,Bug,2018-07-23,,Normal
  6. aaaa,37,0,test,,New,0,,Bug,2018-07-25,,Normal
  7. ...

Import

redmine-sync import imports issues with the file.

  1. $ redmine-sync export --format yaml > issues.yml
  2. $ vi issues.yml
  3. $ redmine-sync import issues.yml

Watch

redmine-sync watch watch the file modification and automatically import the updates.

  1. $ redmine-sync export --format yaml > issues.yml
  2. $ redmine-sync watch issues.yml