From a9278419f2f0c890da67e12d8fbab00587911665 Mon Sep 17 00:00:00 2001 From: pdogra1299 Date: Wed, 4 Jun 2025 17:54:42 +0530 Subject: [PATCH] fix: correct author filter for Bitbucket Server using role.1 and username.1 parameters --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9948ad3..9ec4dd0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -251,6 +251,7 @@ class BitbucketMCPServer { is_open: pr.open, is_closed: pr.closed, author: pr.author.user.displayName, + author_username: pr.author.user.name, author_email: pr.author.user.emailAddress, source_branch: pr.fromRef.displayId, destination_branch: pr.toRef.displayId, @@ -486,7 +487,9 @@ class BitbucketMCPServer { start, }; if (author) { - params['username'] = author; + // Use role.1=AUTHOR and username.1=author to filter by author + params['role.1'] = 'AUTHOR'; + params['username.1'] = author; } } else { // Bitbucket Cloud API