-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into random_subset_etc
- Loading branch information
Showing
520 changed files
with
5,551 additions
and
6,765 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
# Merge open PRs from sagemath/sage labeled "blocker". | ||
REPO="sagemath/sage" | ||
GH="gh -R $REPO" | ||
PRs="$($GH pr list --label "p: blocker / 1" --json number --jq '.[].number')" | ||
if [ -z "$PRs" ]; then | ||
echo 'Nothing to do: Found no open PRs with "blocker" status.' | ||
else | ||
echo "Found PRs: " $PRs | ||
export GIT_AUTHOR_NAME="ci-sage workflow" | ||
export GIT_AUTHOR_EMAIL="[email protected]" | ||
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" | ||
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" | ||
git tag -f test_base | ||
git commit -q -m "Uncommitted changes" --no-allow-empty -a | ||
for a in $PRs; do | ||
echo "::group::Merging PR https://github.com/$REPO/pull/$a" | ||
git tag -f test_head | ||
$GH pr checkout -b pr-$a $a | ||
git fetch --unshallow --all | ||
git checkout -q test_head | ||
if git merge --no-edit --squash -q pr-$a; then | ||
echo "::endgroup::" | ||
if git commit -q -m "Merge https://github.com/$REPO/pull/$a" -a --no-allow-empty; then | ||
echo "Merged #$a" | ||
else | ||
echo "Empty, skipped" | ||
fi | ||
else | ||
echo "::endgroup::" | ||
echo "Failure merging #$a, resetting" | ||
git reset --hard | ||
fi | ||
done | ||
git log test_base..HEAD | ||
fi |
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
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
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
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
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
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
Oops, something went wrong.