LoginSignup
3
4

More than 5 years have passed since last update.

RedmineにREST apiでアクセスするgit subcommandをRubyのActiveResourceを使って作ってみた

Posted at

はじめに

Rubyは初めてさわりました。なんとかgitのsubcommandがつくれましたが、動作はするもののコード的に書き方が正しいのかよくわかりません。なのでとりあえずgistで公開。

置き場所

gist

使い方

git configに下記の設定をします。

git config redmine.url https://hoge.com/
git config redmine.apikey yourKey
git config redmine.project yourProjectName

チケット一覧表示

git redmine

n番のチケットタイトル表示

git redmine n

n番のチケットステータス変更

git redmine issue n status_id

バージョンのステータス変更

git redmine version versionName [open|closed]

予定

カスタムフィールドの設定、取得を作る必要があるので、公開するかも。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4