Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Created April 9, 2010 11:29
Show Gist options
  • Save olleolleolle/361069 to your computer and use it in GitHub Desktop.
Save olleolleolle/361069 to your computer and use it in GitHub Desktop.
diff --git a/bin/trac b/bin/trac
index 33bc8a2..993e1d9 100755
--- a/bin/trac
+++ b/bin/trac
@@ -61,6 +61,9 @@ command [:newticket] do |c|
c.desc 'component'
c.flag [:c,:component]
+ c.desc 'milestone'
+ c.flag [:m,:milestone]
+
c.desc 'type'
c.flag [:t,:type]
@@ -72,6 +75,7 @@ command [:newticket] do |c|
query_params['priority'] = options[:p] if options[:p]
query_params['component'] = options[:c] if options[:c]
query_params['type'] = options[:t] if options[:t]
+ query_params['milestone'] = options[:m] if options[:m]
query_params['summary'] = args.join(' ')
query_string = ''
query_params.each do |key,value|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment