Skip to content
Snippets Groups Projects
Unverified Commit faa1618f authored by Markus Schulz's avatar Markus Schulz Committed by GitHub
Browse files

fix(gerrit): include prTitle in search for changes (findPr) (#26745)

parent d59316e1
No related merge requests found
......@@ -111,6 +111,13 @@ describe('modules/platform/gerrit/client', () => {
state: 'closed' as FindPRConfig['state'],
},
],
[
'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',
},
],
])(
'query contains %p',
async (expectedQueryPart: string, config: GerritFindPRConfig) => {
......
......@@ -234,6 +234,9 @@ class GerritClient {
if (searchConfig.label) {
filters.push(`label:Code-Review=${searchConfig.label}`);
}
if (searchConfig.prTitle) {
filters.push(`message:${encodeURIComponent(searchConfig.prTitle)}`);
}
return filters;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment