Skip to content

Instantly share code, notes, and snippets.

View a88zach's full-sized avatar

Zach Tindall a88zach

View GitHub Profile
#!/bin/bash
# modified from https://gist.github.com/bartoszmajsak/1396344
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master main develop test release)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_TYPE=$(printf "${BRANCH_NAME%/*}")