maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r358351 - in /maven/sandbox/issue: rbot/dist/plugins/jira.rb rissue/lib/jiraruby.rb
Date Wed, 21 Dec 2005 19:28:06 GMT
Author: jvanzyl
Date: Wed Dec 21 11:28:00 2005
New Revision: 358351

URL: http://svn.apache.org/viewcvs?rev=358351&view=rev
Log:
o fix closing of issues
o cleanup faqbot

Modified:
    maven/sandbox/issue/rbot/dist/plugins/jira.rb
    maven/sandbox/issue/rissue/lib/jiraruby.rb

Modified: maven/sandbox/issue/rbot/dist/plugins/jira.rb
URL: http://svn.apache.org/viewcvs/maven/sandbox/issue/rbot/dist/plugins/jira.rb?rev=358351&r1=358350&r2=358351&view=diff
==============================================================================
--- maven/sandbox/issue/rbot/dist/plugins/jira.rb (original)
+++ maven/sandbox/issue/rbot/dist/plugins/jira.rb Wed Dec 21 11:28:00 2005
@@ -56,9 +56,10 @@
       m.reply "incorrect usage. " + help(m.plugin)
     end
     server = getServer()    
-    issue = params[:issue]
-    fields = issue = server.getIssue( issue.upcase! )
-    server.closeIssue( fields )    
+    issueId = params[:issue].upcase!
+    who = params[:who]
+    issue = server.getIssue( issueId )
+    server.closeIssue( issue, who )
   end
   
   def getServer
@@ -70,5 +71,5 @@
 plugin.map 'jira :issue'
 plugin.map 'faqa :who *phrase'
 plugin.map 'faqq :who *phrase'
-plugin.map 'faqc :issue'
+plugin.map 'faqc :who :issue'
 plugin.map 'issue :project :summary :description :assignee'

Modified: maven/sandbox/issue/rissue/lib/jiraruby.rb
URL: http://svn.apache.org/viewcvs/maven/sandbox/issue/rissue/lib/jiraruby.rb?rev=358351&r1=358350&r2=358351&view=diff
==============================================================================
--- maven/sandbox/issue/rissue/lib/jiraruby.rb (original)
+++ maven/sandbox/issue/rissue/lib/jiraruby.rb Wed Dec 21 11:28:00 2005
@@ -59,7 +59,7 @@
   # The issue is a struct with all the issue information
   def closeIssue( issue, assignee )
     id = issue.id
-    query = "#{@config['server']}/secure/CommentAssignIssue.jspa?resolution=1&action=2&id=#{id}&assignee=#{assignee}&Close%20Issue=Close%20Issue&os_username=#{@config['user']}&os_password=#{@config['password']}"
   
+    query = "#{@config['server']}/secure/CommentAssignIssue.jspa?resolution=1&action=2&id=#{id}&assignee=#{assignee}&Close%20Issue=Close%20Issue&os_username=#{@config['user']}&os_password=#{@config['password']}"
     url = URI.parse(query)
     res = Net::HTTP.get(url)
   end



Mime
View raw message