Add a new script that helps dealing with `integration`

This commit is contained in:
Laurent Rineau 2020-07-01 16:37:32 +02:00
parent 3e6499700e
commit 0f51c426d3
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
: ${GITHUB_HUB:=$(which hub)}
if ! [ -x "${GITHUB_HUB}" ]; then
echo 'Needs Github hub: https://github.com/github/hub' >&2
exit 1
fi
for pr in $(python3 ./Scripts/developer_scripts/list_pull_requests.py "$1" --unmerged); do
if ! hub merge $pr; then
echo $p;
break
fi
done