This file contains 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 | |
set -eo pipefail | |
# Not thoroughly tested, please use with caution! Try with 'echo {}' first to confirm it works for you. | |
# | |
# exec git for-each-ref refs/heads/ "--format=%(refname:short)" | grep -v master | xargs -P 4 -I {} bash -c "( ! git cherry master {} | grep -q '^[^-]' ) && git branch -D {}" |
This file contains 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
global: | |
scrape_interval: 5s | |
evaluation_interval: 5s | |
scrape_configs: | |
- job_name: 'prometheus' | |
static_configs: | |
- targets: ['localhost:9090'] |
This file contains 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
package main | |
import ( | |
"fmt" | |
"net/url" | |
"os" | |
"code.google.com/p/goauth2/oauth" | |
drone "github.com/drone/drone/client" |
This file contains 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
[ | |
{ "userName": "alphagov", "repo": "blinken" }, | |
{ "userName": "alphagov", "repo": "boxes" }, | |
{ "userName": "alphagov", "repo": "cdn-acceptance-tests" }, | |
{ "userName": "alphagov", "repo": "ci-puppet" }, | |
{ "userName": "alphagov", "repo": "cloudflare-configure" }, | |
{ "userName": "alphagov", "repo": "fabric-scripts" }, | |
{ "userName": "alphagov", "repo": "ghtools" }, | |
{ "userName": "alphagov", "repo": "govuk_crawler_worker" }, | |
{ "userName": "alphagov", "repo": "govuk_mirror-puppet" }, |
This file contains 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
git pull --rebase upstream master | |
git push --force origin mypr-branch |