Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions create-a-repository-ruleset-github-app-override.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# POST /repos/{owner}/{repo}/rulesets


set -x

# If the script is passed an argument $1 use that as the name
if [ -z "$1" ]
then
Expand All @@ -20,7 +22,7 @@ jq -n \
--arg name "The Power GitHub App Override" \
--arg target "${target}" \
--arg team_id ${team_id} \
--arg default_app_id ${default_app_id} \
--arg default_app_id ${app_id} \
--arg commit_message_pattern $commit_message_pattern \
--arg operator $operator \
--arg bypass_mode "${bypass_mode}" \
Expand All @@ -44,7 +46,7 @@ jq -n \
"conditions": {
"ref_name": {
"include": [
"refs/heads/main",
"refs/heads/main"
],
"exclude": [
"refs/heads/dev*"
Expand Down