Skip to content

Commit

Permalink
fix(gerrit): quote the prTitle in search for changes (findPr)
Browse files Browse the repository at this point in the history
Fixes regression introduced in renovatebot#26745
  • Loading branch information
NiasSt90 committed Jan 19, 2024
1 parent 1dc9c12 commit d2a38e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/modules/platform/gerrit/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('modules/platform/gerrit/client', () => {
},
],
[
'message:fix(deps): update dependency react-router-dom to v6.21.2',
'message:"fix(deps): update dependency react-router-dom to v6.21.2"',
{
branchName: 'dependency-xyz',
prTitle: 'fix(deps): update dependency react-router-dom to v6.21.2',
Expand Down
4 changes: 3 additions & 1 deletion lib/modules/platform/gerrit/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ class GerritClient {
filters.push(`label:Code-Review=${searchConfig.label}`);
}
if (searchConfig.prTitle) {
filters.push(`message:${encodeURIComponent(searchConfig.prTitle)}`);
filters.push(
`message:${encodeURIComponent('"' + searchConfig.prTitle + '"')}`,
);
}
return filters;
}
Expand Down

0 comments on commit d2a38e1

Please sign in to comment.