We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e7f14 commit dc97dc3Copy full SHA for dc97dc3
pkg/lockdown/lockdown.go
@@ -8,6 +8,9 @@ import (
8
"github.com/shurcooL/githubv4"
9
)
10
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.
14
func ShouldRemoveContent(ctx context.Context, client *githubv4.Client, username, owner, repo string) (bool, error) {
15
isPrivate, hasPushAccess, err := repoAccessInfo(ctx, client, username, owner, repo)
16
if err != nil {
0 commit comments