@@ -21,7 +21,7 @@ import (
2121func Test_GetPullRequest (t * testing.T ) {
2222 // Verify tool definition once
2323 mockClient := github .NewClient (nil )
24- tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper )
24+ tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
2525 require .NoError (t , toolsnaps .Test (tool .Name , tool ))
2626
2727 assert .Equal (t , "pull_request_read" , tool .Name )
@@ -102,7 +102,7 @@ func Test_GetPullRequest(t *testing.T) {
102102 t .Run (tc .name , func (t * testing.T ) {
103103 // Setup client with mock
104104 client := github .NewClient (tc .mockedClient )
105- _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper )
105+ _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
106106
107107 // Create call request
108108 request := createMCPRequest (tc .requestArgs )
@@ -1133,7 +1133,7 @@ func Test_SearchPullRequests(t *testing.T) {
11331133func Test_GetPullRequestFiles (t * testing.T ) {
11341134 // Verify tool definition once
11351135 mockClient := github .NewClient (nil )
1136- tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper )
1136+ tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
11371137 require .NoError (t , toolsnaps .Test (tool .Name , tool ))
11381138
11391139 assert .Equal (t , "pull_request_read" , tool .Name )
@@ -1236,7 +1236,7 @@ func Test_GetPullRequestFiles(t *testing.T) {
12361236 t .Run (tc .name , func (t * testing.T ) {
12371237 // Setup client with mock
12381238 client := github .NewClient (tc .mockedClient )
1239- _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper )
1239+ _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
12401240
12411241 // Create call request
12421242 request := createMCPRequest (tc .requestArgs )
@@ -1277,7 +1277,7 @@ func Test_GetPullRequestFiles(t *testing.T) {
12771277func Test_GetPullRequestStatus (t * testing.T ) {
12781278 // Verify tool definition once
12791279 mockClient := github .NewClient (nil )
1280- tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper )
1280+ tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
12811281 require .NoError (t , toolsnaps .Test (tool .Name , tool ))
12821282
12831283 assert .Equal (t , "pull_request_read" , tool .Name )
@@ -1404,7 +1404,7 @@ func Test_GetPullRequestStatus(t *testing.T) {
14041404 t .Run (tc .name , func (t * testing.T ) {
14051405 // Setup client with mock
14061406 client := github .NewClient (tc .mockedClient )
1407- _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper )
1407+ _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
14081408
14091409 // Create call request
14101410 request := createMCPRequest (tc .requestArgs )
@@ -1566,7 +1566,7 @@ func Test_UpdatePullRequestBranch(t *testing.T) {
15661566func Test_GetPullRequestComments (t * testing.T ) {
15671567 // Verify tool definition once
15681568 mockClient := github .NewClient (nil )
1569- tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper )
1569+ tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
15701570 require .NoError (t , toolsnaps .Test (tool .Name , tool ))
15711571
15721572 assert .Equal (t , "pull_request_read" , tool .Name )
@@ -1658,7 +1658,7 @@ func Test_GetPullRequestComments(t *testing.T) {
16581658 t .Run (tc .name , func (t * testing.T ) {
16591659 // Setup client with mock
16601660 client := github .NewClient (tc .mockedClient )
1661- _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper )
1661+ _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
16621662
16631663 // Create call request
16641664 request := createMCPRequest (tc .requestArgs )
@@ -1700,7 +1700,7 @@ func Test_GetPullRequestComments(t *testing.T) {
17001700func Test_GetPullRequestReviews (t * testing.T ) {
17011701 // Verify tool definition once
17021702 mockClient := github .NewClient (nil )
1703- tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper )
1703+ tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
17041704 require .NoError (t , toolsnaps .Test (tool .Name , tool ))
17051705
17061706 assert .Equal (t , "pull_request_read" , tool .Name )
@@ -1788,7 +1788,7 @@ func Test_GetPullRequestReviews(t *testing.T) {
17881788 t .Run (tc .name , func (t * testing.T ) {
17891789 // Setup client with mock
17901790 client := github .NewClient (tc .mockedClient )
1791- _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper )
1791+ _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
17921792
17931793 // Create call request
17941794 request := createMCPRequest (tc .requestArgs )
@@ -2789,7 +2789,7 @@ func TestGetPullRequestDiff(t *testing.T) {
27892789
27902790 // Verify tool definition once
27912791 mockClient := github .NewClient (nil )
2792- tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper )
2792+ tool , _ := PullRequestRead (stubGetClientFn (mockClient ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
27932793 require .NoError (t , toolsnaps .Test (tool .Name , tool ))
27942794
27952795 assert .Equal (t , "pull_request_read" , tool .Name )
@@ -2847,7 +2847,7 @@ index 5d6e7b2..8a4f5c3 100644
28472847
28482848 // Setup client with mock
28492849 client := github .NewClient (tc .mockedClient )
2850- _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper )
2850+ _ , handler := PullRequestRead (stubGetClientFn (client ), translations .NullTranslationHelper , stubFeatureFlags ( map [ string ] bool { "lockdown-mode" : false }) )
28512851
28522852 // Create call request
28532853 request := createMCPRequest (tc .requestArgs )
0 commit comments