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

prow retitle appends "\r" to the bug title #16319

Closed
danwinship opened this issue Feb 15, 2020 · 2 comments · Fixed by #16348
Closed

prow retitle appends "\r" to the bug title #16319

danwinship opened this issue Feb 15, 2020 · 2 comments · Fixed by #16348
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@danwinship
Copy link
Contributor

When you use /retitle to retitle a PR, the PR will end up with a carriage return at the end of the title. This is not visible on the HTML page, but it shows up in the source, and in email related to the bug.

eg, openshift/sdn#108 had the command /retitle Bug 1803149: Rebase SDN to kubernetes 1.17.2 run on it, and now you can see the CR in the source:

danw@p50:~> curl -s -o- https://github.com/openshift/sdn/pull/108 | cat -v | grep js-issue-title
  <a class="js-issue-title css-truncate css-truncate-target link-gray-dark width-fit" href="#">Bug 1803149: Rebase SDN to kubernetes 1.17.2^M</a>

and also as "=0D" in emails related to the PR:

Subject: Re: [openshift/sdn] Bug 1803149: Rebase SDN to kubernetes 1.17.2=0D (#108)
@danwinship danwinship added the kind/bug Categorizes issue or PR as related to a bug. label Feb 15, 2020
@alvaroaleman
Copy link
Member

@danwinship while I can see the issue as you described in the PR you linked I can not see it on others that were retitled, i.E.:

$ curl -Ss https://github.com/kubernetes/test-infra/issues/16328| cat -v | grep js-issue-title
      <span class="js-issue-title">
  <a class="js-issue-title css-truncate css-truncate-target link-gray-dark width-fit" href="#">hook: re-evaluate cherry-pick labels when a base branch changes for a PR</a>

Do you have more examples of retitled PRs where this happened? I can not really see anything in the retitle plugins code (which is fairly simple) that would explain this.

@danwinship
Copy link
Contributor Author

You know, I originally had "(sometimes?)" in the summary and then removed it...

searching my trash folder for "=0D", I also find:

openshift/cluster-network-operator#466
openshift/sdn#102
openshift/cluster-openshift-apiserver-operator#296
openshift/cluster-network-operator#401

and I see that in all of those cases, there were additional commands/comments after the /retitle, whereas in the one you pointed out the /retitle was the entire comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants