Skip to content

Commit 176dada

Browse files
committed
Fix use of 'target_branch'
1 parent 848a78f commit 176dada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update-submodule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ def main():
2222
gl = gitlab.Gitlab(base_url, private_token=gen_gitlab_token()["token"])
2323
project = gl.projects.get(project_name)
2424
mr_branch = f"automated-submodule-update-{target_commit}"
25-
project.branches.create({"branch": mr_branch, "ref": target_branch.name})
25+
project.branches.create({"branch": mr_branch, "ref": target_branch})
2626
project.update_submodule(
2727
"why3", mr_branch, target_commit_long, commit_message=commit_message
2828
)
2929
mr = project.mergerequests.create(
3030
{
3131
"source_branch": mr_branch,
32-
"target_branch": target_branch.name,
32+
"target_branch": target_branch,
3333
"title": mr_title,
3434
"description": mr_body,
3535
}

0 commit comments

Comments
 (0)