mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] runbot: fix pull info
This commit is contained in:
parent
2e77a55ddb
commit
f2d71a0b79
@ -119,7 +119,7 @@ class Branch(models.Model):
|
||||
branch.pull_head_name = pi['head']['label']
|
||||
branch.pr_title = pi['title']
|
||||
branch.pr_body = pi['body']
|
||||
branch.pr_author = pi['creator']['login']
|
||||
branch.pr_author = pi['user']['login']
|
||||
pull_head_repo_name = False
|
||||
if pi['head'].get('repo'):
|
||||
pull_head_repo_name = pi['head']['repo'].get('full_name')
|
||||
|
@ -15,7 +15,7 @@ class TestBranch(RunbotCase):
|
||||
'head': {'label': 'foo-dev:bar_branch', 'repo': {'full_name': 'foo-dev/bar'}},
|
||||
'title': '[IMP] Title',
|
||||
'body': 'Body',
|
||||
'creator': {
|
||||
'user': {
|
||||
'login': 'Pr author'
|
||||
},
|
||||
}
|
||||
@ -126,7 +126,7 @@ class TestBranchRelations(RunbotCase):
|
||||
'head': {'label': 'dev:master-test-tri-imp', 'repo': {'full_name': 'dev/server'}},
|
||||
'title': '[IMP] Title',
|
||||
'body': 'Body',
|
||||
'creator': {
|
||||
'user': {
|
||||
'login': 'Pr author'
|
||||
},
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ class TestRepo(RunbotCaseMinimalSetup):
|
||||
'head': {'label': 'dev:%s' % branch_name, 'repo': {'full_name': 'dev/server'}},
|
||||
'title': '[IMP] Title',
|
||||
'body': 'Body',
|
||||
'creator': {
|
||||
'user': {
|
||||
'login': 'Pr author'
|
||||
},
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ class Runbot(models.AbstractModel):
|
||||
},
|
||||
'title': '[IMP] Title',
|
||||
'body': 'Body',
|
||||
'creator': {
|
||||
'user': {
|
||||
'login': 'Pr author'
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user