Command line control over Redmine issue tracking system
Ruby
Pull request Compare This branch is 1 commit ahead, 5 commits behind textgoeshere:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.red
README.md
red.rb

README.md

Red creates Redmine issues from the command line.

0.3 (c) 2009 Dave Nolan

http://textgoeshere.org.uk

http://github.com/textgoeshere/redcmd

Released under MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Example

Add an issue:

red add -s "New feature" -d "Some longer description text" -t feature -p cashprinter -r high -a "Dave" -f /path/to/attachment
# =>
"Created Feature #999 New feature"

List some issues (you can reference a Redmine custom query here):

red list 3
# =>
Fix widget
Design thingy
Document Windows 95 compatibility issues

Command line arguments override settings in the configuration file, which override Redmine form defaults.

An example configuration file

username: dave
password: d4ve
url: http://www.myredmineinstance.com
project: redcmd
tracker: bug
priorty: normal   

I recommend creating a configuration file per-project, and sticking it in your path.

TODO

  • due, start, done, est. hours
  • custom fields
  • subcommands (list, update, etc.)