diff --git a/lib/modules/platform/gerrit/client.spec.ts b/lib/modules/platform/gerrit/client.spec.ts index 620ec9d5baef57..44c304e7ebb3da 100644 --- a/lib/modules/platform/gerrit/client.spec.ts +++ b/lib/modules/platform/gerrit/client.spec.ts @@ -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) => { diff --git a/lib/modules/platform/gerrit/client.ts b/lib/modules/platform/gerrit/client.ts index 543328189ba7da..3fc6e348288592 100644 --- a/lib/modules/platform/gerrit/client.ts +++ b/lib/modules/platform/gerrit/client.ts @@ -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; } }