Skip to content

Commit dc97dc3

Browse files
committed
Add function signature
1 parent 34e7f14 commit dc97dc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/lockdown/lockdown.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import (
88
"github.com/shurcooL/githubv4"
99
)
1010

11+
// ShouldRemoveContent determines if content should be removed based on
12+
// lockdown mode rules. It checks if the repository is private and if the user
13+
// has push access to the repository.
1114
func ShouldRemoveContent(ctx context.Context, client *githubv4.Client, username, owner, repo string) (bool, error) {
1215
isPrivate, hasPushAccess, err := repoAccessInfo(ctx, client, username, owner, repo)
1316
if err != nil {

0 commit comments

Comments
 (0)