Commit a0fdf476 authored by Calcul Bot's avatar Calcul Bot
Browse files

Fixing target branch

parent 48abc689
......@@ -71,7 +71,7 @@ def create_job_request(gl, job_offer):
project = gl.projects.get(gitlab_source_id)
# Creating new branch
branch = project.branches.create({"branch" : branch_name, "ref" : "master"})
branch = project.branches.create({"branch" : branch_name, "ref" : gitlab_target_branch})
# Creating commit
data = {
......@@ -103,7 +103,7 @@ def create_job_request(gl, job_offer):
# Creating merge request
project.mergerequests.create({
'source_branch': branch_name,
'target_branch': 'master',
'target_branch': gitlab_target_branch,
'target_project_id': gitlab_target_id,
'title': 'New job offer {}'.format(branch_name),
'description': str(job_offer),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment