mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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.pull_head_name = pi['head']['label']
|
||||||
branch.pr_title = pi['title']
|
branch.pr_title = pi['title']
|
||||||
branch.pr_body = pi['body']
|
branch.pr_body = pi['body']
|
||||||
branch.pr_author = pi['creator']['login']
|
branch.pr_author = pi['user']['login']
|
||||||
pull_head_repo_name = False
|
pull_head_repo_name = False
|
||||||
if pi['head'].get('repo'):
|
if pi['head'].get('repo'):
|
||||||
pull_head_repo_name = pi['head']['repo'].get('full_name')
|
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'}},
|
'head': {'label': 'foo-dev:bar_branch', 'repo': {'full_name': 'foo-dev/bar'}},
|
||||||
'title': '[IMP] Title',
|
'title': '[IMP] Title',
|
||||||
'body': 'Body',
|
'body': 'Body',
|
||||||
'creator': {
|
'user': {
|
||||||
'login': 'Pr author'
|
'login': 'Pr author'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ class TestBranchRelations(RunbotCase):
|
|||||||
'head': {'label': 'dev:master-test-tri-imp', 'repo': {'full_name': 'dev/server'}},
|
'head': {'label': 'dev:master-test-tri-imp', 'repo': {'full_name': 'dev/server'}},
|
||||||
'title': '[IMP] Title',
|
'title': '[IMP] Title',
|
||||||
'body': 'Body',
|
'body': 'Body',
|
||||||
'creator': {
|
'user': {
|
||||||
'login': 'Pr author'
|
'login': 'Pr author'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ class TestRepo(RunbotCaseMinimalSetup):
|
|||||||
'head': {'label': 'dev:%s' % branch_name, 'repo': {'full_name': 'dev/server'}},
|
'head': {'label': 'dev:%s' % branch_name, 'repo': {'full_name': 'dev/server'}},
|
||||||
'title': '[IMP] Title',
|
'title': '[IMP] Title',
|
||||||
'body': 'Body',
|
'body': 'Body',
|
||||||
'creator': {
|
'user': {
|
||||||
'login': 'Pr author'
|
'login': 'Pr author'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ class Runbot(models.AbstractModel):
|
|||||||
},
|
},
|
||||||
'title': '[IMP] Title',
|
'title': '[IMP] Title',
|
||||||
'body': 'Body',
|
'body': 'Body',
|
||||||
'creator': {
|
'user': {
|
||||||
'login': 'Pr author'
|
'login': 'Pr author'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user