def __init__(self, data): NotificationDispatcher.__init__(self, data) self._deltacommits = data.get('deltacommits') self._pullreq = data.get('pullreq') self._ticket = data.get('ticket') self._sender = self._pullreq.from_proj.owner_name self._target = self._pullreq.to_proj
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._sender = data.get('sender') self._content = data.get('content') self._issue = data.get('issue') self._issue_id = self._issue.issue_id self._target = self._issue.target
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._comment = data.get('comment') # TODO: get commit author by sha # ...现在应该是 None self._commit_author = data.get('commit_author') self._is_line_comment = data.get('is_line_comment') # no use self._proj = CodeDoubanProject.get(self._comment.project_id)
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._sender = data.get('sender') self._identity = data.get('identity', '') self._team_uid = data.get('team_uid', '') self._team_name = data.get('team_name', '') self._receiver = data.get('receiver')
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._sender = data.get('sender') self._comment = data.get('comment') self._content = self._comment.content if self._comment else data.get('content', '') self._ticket = data.get('ticket') self._pullreq = PullRequest.get_by_ticket(self._ticket) self._target = self._pullreq.to_proj self._is_ticketcomment = isinstance(self._comment, TicketComment)
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._sha = data.get('sha') self._project = data.get('project') self._state = data.get('state') self._pull = data.get('pull') self._qaci_url = data.get('url') self._ticket = self._pull.ticket self._target = self._pull.to_proj url = self._qaci_url if url.endswith('/'): url = url[:-1] self.build_number = url.rpartition('/')[-1]
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._recommend = data.get('recommend')
def __init__(self, data): NotificationDispatcher.__init__(self, data) self._team_id = data.get('team_id') self._last_week = data.get('last_week') self._team = Team.get(self._team_id)