mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes:
This commit is contained in:
@@ -4,7 +4,7 @@ version = 1.17.1-R0.1-SNAPSHOT
|
|||||||
mcVersion = 1.17.1
|
mcVersion = 1.17.1
|
||||||
packageVersion = 1_17_R1
|
packageVersion = 1_17_R1
|
||||||
|
|
||||||
paperCommit = 244b392f390afa7a4880e2207c7358fe195bd431
|
paperCommit = d4318a6ebca2a3f2859ca0ef1b274192633c7d5e
|
||||||
|
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
|
|||||||
@@ -1,26 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# requires curl & jq
|
||||||
|
|
||||||
|
# upstreamCommit <oldHash> <newHash>
|
||||||
|
# param: bashHash - the commit hash to use for comparing commits (baseHash...HEAD)
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
PS1="$"
|
PS1="$"
|
||||||
|
|
||||||
function changelog() {
|
paper=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/PaperMC/Paper/compare/$1...$2 | jq -r '.commits[] | "PaperMC/Paper@\(.sha[:7]) \(.commit.message | split("\r\n")[0] | split("\n")[0])"')
|
||||||
base=$(git ls-tree HEAD $1 | cut -d' ' -f3 | cut -f1)
|
|
||||||
cd $1 && git log --oneline ${base}...HEAD
|
|
||||||
}
|
|
||||||
paper=$(changelog .gradle/caches/paperweight/upstreams/paper)
|
|
||||||
|
|
||||||
updated=""
|
updated=""
|
||||||
logsuffix=""
|
logsuffix=""
|
||||||
if [ ! -z "$paper" ]; then
|
if [ ! -z "paper" ]; then
|
||||||
logsuffix="$logsuffix\n\nPaper Changes:\n$paper"
|
logsuffix="$logsuffix\n\nPaper Changes:\n$paper"
|
||||||
updated="Paper"
|
updated="Paper"
|
||||||
fi
|
fi
|
||||||
disclaimer="Upstream has released updates that appear to apply and compile correctly"
|
disclaimer="Upstream has released updates that appear to apply and compile correctly"
|
||||||
|
|
||||||
if [ ! -z "$1" ]; then
|
|
||||||
disclaimer="$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${disclaimer}${logsuffix}"
|
log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${disclaimer}${logsuffix}"
|
||||||
|
|
||||||
echo -e "$log" | git commit -F -
|
echo -e "$log" | git commit -F -
|
||||||
|
|||||||
Reference in New Issue
Block a user