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 2e247a4 commit 14f3f83
Show file tree
Hide file tree
Showing 2 changed files with 2 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
2 changes: 1 addition & 1 deletion lib/modules/platform/gerrit/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ 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 14f3f83

Please sign in to comment.