You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2005/12/10 02:29:15 UTC

svn commit: r355682 - /maven/sandbox/issue/rbot/jira.rb

Author: jvanzyl
Date: Fri Dec  9 17:29:14 2005
New Revision: 355682

URL: http://svn.apache.org/viewcvs?rev=355682&view=rev
Log: (empty)

Modified:
    maven/sandbox/issue/rbot/jira.rb

Modified: maven/sandbox/issue/rbot/jira.rb
URL: http://svn.apache.org/viewcvs/maven/sandbox/issue/rbot/jira.rb?rev=355682&r1=355681&r2=355682&view=diff
==============================================================================
--- maven/sandbox/issue/rbot/jira.rb (original)
+++ maven/sandbox/issue/rbot/jira.rb Fri Dec  9 17:29:14 2005
@@ -54,6 +54,16 @@
     fields = getServer().createIssue2( 'MNGFAQ', summary, 'none', '1', who, 'minor' )
   end  
   
+  def faqc(m,params)
+    unless(m.params)
+      m.reply "incorrect usage. " + help(m.plugin)
+    end
+    issue = params[:issue]
+    fields = issue = getServer().getIssue( issue.upcase! )
+    puts fields
+    getServer().closeIssue( fields )    
+  end
+  
   def issue(m,params)
     fields = getServer().createIssue2( params[:project], params[:summary], params[:description], '1', params[:assignee], 'minor' )
     m.reply( fields['key'] )
@@ -72,4 +82,5 @@
 plugin.map 'jira :issue'
 plugin.map 'faqa :who *phrase'
 plugin.map 'faqq :who *phrase'
+plugin.map 'faqc :issue'
 plugin.map 'issue :project :summary :description :assignee'