1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 07:07:46 +00:00

Update branch-protections.nu (#251)

# was missing from shebang
This commit is contained in:
Yethal 2022-06-14 17:58:10 +02:00 committed by GitHub
parent e053faaab8
commit 2e41bcc947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
!/usr/bin/env nu
#!/usr/bin/env nu
let protections = {
required_status_checks: {
strict: true
@ -39,4 +39,4 @@ gh api $"orgs/($env.OWNER)/repos"
$protections
|to json
|gh api -X PUT $"repos/($env.OWNER)/($repo.name)/branches/($repo.default_branch)/protection" --input -
}
}