renovatebot/renovate

Renovate PR Title bug when using `{{ ` and `}}`.

Open

#12449 opened on Nov 2, 2021

View on GitHub
 (13 comments) (0 reactions) (0 assignees)TypeScript (14,066 stars) (1,916 forks)batch import
help wantedpriority-4-low

Description

How are you running Renovate?

Self-hosted

Please select which platform you are using if self-hosting.

github.com

If you're self-hosting Renovate, tell us what version of Renovate you run.

27.18.1

Describe the bug

---- Updated bug report ----

Renovate PR Title bug

Given a repository with the structure:

root
—{{project_template}}/Pipfile
—project_template/Pipfile
.renovaterc.json

and upgrading packages using the Pipfile in {{project_template}} and project_template, and the relevant configuration parameters in renovaterc.json are set like:

"packageRules": [
    {
    "groupName": "\\{{parentDir}}",
    "matchPackagePatterns": [".*"]
    }]

The expect PR has the following properties:

PR Title 1 = “TicketID {{project_template}}: Upgrade depedencies” 

PR Title 2 = “TicketID project_template: Upgrade dependencies” 

The actual PR has the following properties:

PR Title 1 = “TicketID : Upgrade” 

PR Title 2 = “TicketID project_template: Upgrade dependencies” 

Hence, the expected PR Title 1 is different than the actual PR Title 1. PR Title 2 is handled correctly.

---- Original bug report ----

Renovate PR Title, CommitMessage and Branchname bug when using {{ and }}.

Given a repository with the structure:

root
—{{project_template}}/Pipfile
.renovaterc.json

and upgrading packages using the Pipfile in {{project_template}} and the relevant configuration parameters in renovaterc.json are set like:

"additionalBranchPrefix": "{{parentDir}}-",
"commitMessagePrefix": “TicketID- {{parentDir}}:",

The expect PR has the following properties:

PR Title = “TicketID {{project_template}}: Upgrade {{Project_Name}}” 
commit message = “TicketID {{project_template}}: Upgrade dependency `package` to `new_version`” 
branch name = renovate/{{project_name}}-parentdir

The actual PR has the following properties:

PR Title = “TicketID : Upgrade” 
commit message = “TicketID : Upgrade dependency” 
branch name = renovate/-parentdir

An identical project named project_template is added to showcase the expected Renovate behaviour.

Minimal repository: https://github.com/picnic-sven/Renovate-PRTitle-CommitMessage-Branchname-Bug Bug confirmed with Renovate versions 27.18.1 (self-hosted) and 28.21.4 (GH app)

Relevant debug logs

No response

Have you created a minimal reproduction repository?

I have linked to a minimal reproduction repository in the bug description

Contributor guide