예제 #1
0
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
예제 #2
0
def buildGhiAddMsg(issueID):
	issueDisp = IssueDisplayBuilder(issueID)
	return "ghi-add Issue #" + issueDisp.getShortIdStr() + ": " + issueDisp.getTitle()