def buildGhiEditMsg(issueID): indexIssue = Issue(issueID) headIssue = Issue(issueID,"HEAD") issueDisp = IssueDisplayBuilder(indexIssue) if indexIssue.getStatus() != headIssue.getStatus(): headIssueDisp = IssueDisplayBuilder(headIssue) msg = ("ghi-edit " + "(" + headIssueDisp.getStatusStr() + "->" + issueDisp.getStatusStr() + ") " + "Issue #" + issueDisp.getShortIdStr() + ": " + issueDisp.getTitle()) else: msg = "ghi-edit Issue #" + issueDisp.getShortIdStr() + ": " + issueDisp.getTitle() return msg
def buildGhiAddMsg(issueID): issueDisp = IssueDisplayBuilder(issueID) return "ghi-add Issue #" + issueDisp.getShortIdStr() + ": " + issueDisp.getTitle()