Skip to content

opendownstream-pr.yml: render breaklines correctly#400

Merged
mtrmac merged 1 commit into
podman-container-tools:mainfrom
flouthoc:fix-workflow
Oct 20, 2025
Merged

opendownstream-pr.yml: render breaklines correctly#400
mtrmac merged 1 commit into
podman-container-tools:mainfrom
flouthoc:fix-workflow

Conversation

@flouthoc

@flouthoc flouthoc commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

Fix rendering breaklines in github PR description.

@flouthoc

Copy link
Copy Markdown
Contributor Author

@Luap99 PTAL

Comment thread .github/workflows/opendownstream-pr.yml Outdated
BRANCH_NAME="sync/container-libs-${{ github.event.pull_request.number }}"
PR_TITLE="Sync: ${SELF_REPO_PR_TITLE}"
PR_BODY="This PR automatically vendors changes from [container-libs#${SELF_REPO_PR_NUMBER}](${SELF_REPO_PR_URL}).\n This PR is intended solely for testing purposes and should not be merged. Ideally, upstream maintainers should review any failing tests here and close this PR once the upstream PR is merged. Maintainers of this repository do not need to take any action, but may review the changes and notify upstream maintainers of any breaking issues if they wish. \n\nThis PR is generated from a github actions workflow, please report any issues on https://github.com/containers/container-libs"
PR_BODY="This PR automatically vendors changes from [container-libs#${SELF_REPO_PR_NUMBER}](${SELF_REPO_PR_URL}).<br> This PR is intended solely for testing purposes and should not be merged. Ideally, upstream maintainers should review any failing tests here and close this PR once the upstream PR is merged. Maintainers of this repository do not need to take any action, but may review the changes and notify upstream maintainers of any breaking issues if they wish. <br><br>This PR is generated from a github actions workflow, please report any issues on https://github.com/containers/container-libs"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The github PR descriptions are markdown not html. Yes <br> are generally render correctly in markdown so this likely works but isn't the proper thing to just split the text in its paragraphs which then also makes it much more readable here in the source.
You should be able to have a multi line string just fine in bash here

@flouthoc

Copy link
Copy Markdown
Contributor Author

@Luap99 PTAL

Comment thread .github/workflows/opendownstream-pr.yml Outdated
Comment on lines +110 to +112
This PR is intended solely for testing purposes and should not be merged. Ideally, upstream maintainers should review any failing tests here and close this PR once the upstream PR is merged. Maintainers of this repository do not need to take any action, but may review the changes and notify upstream maintainers of any breaking issues if they wish.

This PR is generated from a github actions workflow, please report any issues on https://github.com/containers/container-libs"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that does not look like a valid yaml file, you must maintain the yaml indentation

Signed-off-by: flouthoc <flouthoc.git@gmail.com>

@Luap99 Luap99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mtrmac mtrmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading https://yaml.org/spec/1.2.2/#731-double-quoted-style , we might need one more empty line between paragraphs (newlines in non-empty lines are discarded) but let’s try this one first.

@mtrmac mtrmac merged commit 446b0f3 into podman-container-tools:main Oct 20, 2025
8 of 15 checks passed
@mtrmac

mtrmac commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Reading https://yaml.org/spec/1.2.2/#731-double-quoted-style , we might need one more empty line between paragraphs

I was wrong, podman-container-tools/buildah#6445 (comment) looks perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants