Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiline string in pullrequest_body_suffix #1054

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion concourse/steps/update_component_deps.mako
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ version_lookup = cnudie.retrieve.version_lookup(
# we at most need to do this once
os.environ['DOCKERD_STARTED'] = 'no'

% if pullrequest_body_suffix:
import textwrap
% endif

# find components that need to be upgraded
for from_ref, to_version in determine_upgrade_prs(
upstream_component_name=upstream_component_name,
Expand Down Expand Up @@ -186,7 +190,7 @@ for from_ref, to_version in determine_upgrade_prs(
after_merge_callback='${after_merge_callback}',
% endif
% if pullrequest_body_suffix:
pullrequest_body_suffix='${pullrequest_body_suffix}',
pullrequest_body_suffix=textwrap.dedent('''${pullrequest_body_suffix}'''),
% endif
% if set_version_script_image:
container_image='${set_version_script_image}',
Expand Down
Loading