This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Name this file 'bb', put it somehwere in your PATH and make it executable. | |
# | |
if [[ $# -eq 0 ]]; then | |
echo "" | |
echo " Create a pull request on BitBucket" | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
generate_label () { | |
SHA=$(git rev-parse --short HEAD) | |
if [ -z "$(git status --porcelain | wc -l)" ]; then | |
STATE="clean" | |
else | |
STATE="dirty" | |
fi | |
LABEL="deployment-${SHA}-${STATE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Pull down the current project config from production and overwrite the local | |
# config files with it. | |
cd "$(git rev-parse --show-toplevel)" || exit 1 | |
if [ -n "$(git status --porcelain config/project)" ]; then | |
echo "You have uncommitted changes to your local project config." | |
exit 1 | |
fi |
OlderNewer