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

fix(gerrit): quote the prTitle in search for changes (findPr) #26750

Merged
merged 1 commit into from Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/modules/platform/gerrit/client.spec.ts
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
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