comment = os.getenv("comment")
package = os.getenv("package")
if submission and comment:
- if action in ("accept", "reject"):
- state = "accepted" if action == "accept" else "declined"
+ if action in ("accept", "accepted", "reject", "declined"):
+ state = "accepted" if action == "accept" or action == "accepted" else "declined"
print "Submission %s has been %sed" % (submission, action)
return accept_or_reject(build, submission, state,
target_project, comment)