Bug 1635488 - part 2: Add missing branch in version bump payload (#16650)

upstream-sync
Johan Lorenzo 4 years ago committed by GitHub
parent 9cdfb6db4a
commit 72a745a5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,9 @@ def resolve_keys(config, tasks):
@transforms.add
def build_worker_definition(config, tasks):
for task in tasks:
worker_definition = {}
worker_definition = {
"branch": config.params["head_ref"].decode("utf-8"),
}
task["worker"].update(worker_definition)
yield task

@ -172,6 +172,7 @@ def build_github_release_payload(config, task, task_def):
Required("bump"): bool,
Optional("bump-files"): [text_type],
Optional("push"): bool,
Optional("branch"): text_type,
},
)
def build_version_bump_payload(config, task, task_def):
@ -196,3 +197,6 @@ def build_version_bump_payload(config, task, task_def):
if worker.get('force-dry-run'):
task_def['payload']['dry_run'] = True
if worker.get("branch"):
task_def["payload"]["branch"] = worker["branch"]

Loading…
Cancel
Save