项目作者: tzneal

项目描述 :
A tool to extract gitlab issues in text and CSV format
高级语言: Go
项目地址: git://github.com/tzneal/gitlab-issues.git
创建时间: 2017-04-05T23:23:52Z
项目社区:https://github.com/tzneal/gitlab-issues

开源协议:MIT License

下载


gitlab-issues

A simple tool to export gitlab issues in both text and CSV format. It uses the
handy xanzy/go-gitlab library to pull
the issues from gitlab.

Note

Requires go 1.7+

Installation

go install github.com/tzneal/gitlab-issues

Usage

  1. Usage of gitlab-issues:
  2. -csv
  3. format output as CSV
  4. -label string
  5. issues with any maching label will be returned, multiple labels can be separated by a comma
  6. -milestone string
  7. project milestone
  8. -o string
  9. specify filename to write output to instead of stdout
  10. -project string
  11. project name
  12. -token string
  13. gitlab token from User Settings->Account page
  14. -url string
  15. base URL to connect to (default "https://gitlab.com/")

Examples

  • Extract Issues from a particular milestone

gitlab-issues --url https://gitlab.xyz.com --token my-secret-token --project my/project --milestone "Release 1.0"

  • Export as CSV

gitlab-issues --url https://gitlab.xyz.com --token my-secret-token --project my/project --csv -o issues.csv

  • Pull issues with particular labels

gitlab-issues --url https://gitlab.xyz.com --token my-secret-token --project my/project --label Planned,Development

FAQ

  • Where do I find the token to use for my gitlab instance?

    If you click Profile -> Settings in gitlab, and look at the ‘Account’ tab, it’s listed as your ‘Private token’.