Skip to content

Instantly share code, notes, and snippets.

@mithereal
Last active August 8, 2018 22:56
Show Gist options
  • Save mithereal/a3ded8e9a941c1c0da331564e6579538 to your computer and use it in GitHub Desktop.
Save mithereal/a3ded8e9a941c1c0da331564e6579538 to your computer and use it in GitHub Desktop.
fix for mergeify
#!/bin/bash
GIT=`which git`
for d in $(find -name \.mergify.yml);
do (
DIR=${d//.mergify.yml}
cd "$DIR" &&
${GIT} add --all .
${GIT} commit -m "fix mergify"
${GIT} push
)
done
#!/bin/bash
IFS='' read -r -d '' String <<"EOF"
rules:
default:
merge_strategy:
method: merge
protection:
required_pull_request_reviews:
required_approving_review_count: null
required_status_checks:
contexts: []
EOF
for i in $(find -name \.mergify.yml); do
echo "${String}" > "${i}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment