events: use branch from previous commit for repo push event commits
data so that grouping works, fixes #4233
This commit is contained in:
parent
aeb0d4526d
commit
aa8b5019b1
1 changed files with 5 additions and 0 deletions
|
|
@ -237,6 +237,11 @@ class RepoPushEvent(RepoVCSEvent):
|
|||
|
||||
commits = _commits_as_dict(
|
||||
commit_ids=self.pushed_commit_ids, repos=[self.repo])
|
||||
|
||||
last_branch = None
|
||||
for commit in reversed(commits):
|
||||
commit['branch'] = commit['branch'] or last_branch
|
||||
last_branch = commit['branch']
|
||||
issues = _issues_as_dict(commits)
|
||||
|
||||
branches = set(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue