Skip to content

Commit 447c902

Browse files
committed
.
1 parent c8d5b6c commit 447c902

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pkg/github/issues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func GetIssueComments(ctx context.Context, client *github.Client, cache *lockdow
398398
if err != nil {
399399
return mcp.NewToolResultError(fmt.Sprintf("failed to check lockdown mode: %v", err)), nil
400400
}
401-
if !isSafeContent {
401+
if isSafeContent {
402402
filteredComments = append(filteredComments, comment)
403403
}
404404
}
@@ -458,7 +458,7 @@ func GetSubIssues(ctx context.Context, client *github.Client, cache *lockdown.Re
458458
if err != nil {
459459
return mcp.NewToolResultError(fmt.Sprintf("failed to check lockdown mode: %v", err)), nil
460460
}
461-
if !isSafeContent {
461+
if isSafeContent {
462462
filteredSubIssues = append(filteredSubIssues, subIssue)
463463
}
464464
}

pkg/github/pullrequests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func GetPullRequestReviewComments(ctx context.Context, client *github.Client, ca
307307
if err != nil {
308308
return mcp.NewToolResultError(fmt.Sprintf("failed to check lockdown mode: %v", err)), nil
309309
}
310-
if !isSafeContent {
310+
if isSafeContent {
311311
filteredComments = append(filteredComments, comment)
312312
}
313313
}
@@ -353,7 +353,7 @@ func GetPullRequestReviews(ctx context.Context, client *github.Client, cache *lo
353353
if err != nil {
354354
return nil, fmt.Errorf("failed to check lockdown mode: %w", err)
355355
}
356-
if !isSafeContent {
356+
if isSafeContent {
357357
filteredReviews = append(filteredReviews, review)
358358
}
359359
reviews = filteredReviews

pkg/lockdown/lockdown.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type RepoAccessInfo struct {
3636
}
3737

3838
const (
39-
defaultRepoAccessTTL = 5 * time.Minute
39+
defaultRepoAccessTTL = 20 * time.Minute
4040
defaultRepoAccessCacheKey = "repo-access-cache"
4141
)
4242

0 commit comments

Comments
 (0)