mirror of https://github.com/CGAL/cgal
16 lines
318 B
Bash
Executable File
16 lines
318 B
Bash
Executable File
#!/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 $pr;
|
|
break
|
|
fi
|
|
done
|