pullrequests: select a ref if one exists matching the commit id
This commit is contained in:
parent
dca811d6cb
commit
a31dc2a19e
1 changed files with 4 additions and 2 deletions
|
|
@ -1054,8 +1054,10 @@ class PullRequestModel(BaseModel):
|
||||||
ref_key = '%s:%s:%s' % (group_key, ref_name, ref_id)
|
ref_key = '%s:%s:%s' % (group_key, ref_name, ref_id)
|
||||||
group_refs.append((ref_key, ref_name))
|
group_refs.append((ref_key, ref_name))
|
||||||
|
|
||||||
if not selected and match in (ref_id, ref_name):
|
if not selected:
|
||||||
selected = ref_key
|
if set([commit_id, match]) & set([ref_id, ref_name]):
|
||||||
|
selected = ref_key
|
||||||
|
|
||||||
if group_refs:
|
if group_refs:
|
||||||
groups.append((group_refs, group_name))
|
groups.append((group_refs, group_name))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue