pullreq_to_mantisbt.py

changeset 5
9d63b4f82112
parent 4
7c02e457e6ab
--- a/pullreq_to_mantisbt.py	Sun Jun 08 19:24:37 2014 +0300
+++ b/pullreq_to_mantisbt.py	Sun Jun 08 23:24:46 2014 +0300
@@ -34,11 +34,11 @@
 suds_client = Client ('https://%s/api/soap/mantisconnect.php?wsdl' % bturl, \
 	plugins=[ImportDoctor (suds_import)])
 
-data = suds_client.service.mc_issue_get (btuser, btpass, ticket)
+data={}
+data["status"]={}
 data["status"]["id"] = 60
 suds_client.service.mc_issue_update (btuser, btpass, ticket, data)
 note = {}
 note["text"] = "https://bitbucket.org/%s/%s/pull-request/%s" % (match.group(1), match.group(2), match.group(3))
 noteid = suds_client.service.mc_issue_note_add (btuser, btpass, ticket, note)
-print "Pullrequest notice posted to mantisbt: https://%s/view.php?id=%s#c%s" % (bturl, ticket, noteid)
-
+print "Pull request notice posted to mantisbt: https://%s/view.php?id=%s#c%s" % (bturl, ticket, noteid)

mercurial