mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-19 14:59:30 +00:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@f9edc4b Update paperweight to 1.5.11 PaperMC/Paper@2f92d4e Updated Upstream (Bukkit/CraftBukkit) PaperMC/Paper@8d8eb3b optimise explosion damage further PaperMC/Paper@7606e6d fixup tests and add missing API detected by those tests PaperMC/Paper@f17622c more cleanup and resource pack api fixes PaperMC/Paper@9051fc3 remove redundant patch PaperMC/Paper@abfb6b2 more work on adventure codecs PaperMC/Paper@b42a1da Use uuid param in setResourcePack PaperMC/Paper@bcbe5dc Fix `PlayerInteractEvent#getClickedBlock()` returning wrong block in adventure mode (#10019)
28 lines
813 B
Bash
Executable File
28 lines
813 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# requires curl & jq
|
|
|
|
# upstreamCommit <baseHash> <newHash>
|
|
# param: bashHash - the commit hash to use for comparing commits (baseHash...newHash)
|
|
# param: newHash - the commit hash to use for comparing commits
|
|
|
|
(
|
|
set -e
|
|
PS1="$"
|
|
|
|
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])"')
|
|
|
|
updated=""
|
|
logsuffix=""
|
|
if [ ! -z "paper" ]; then
|
|
logsuffix="$logsuffix\n\nPaper Changes:\n$paper"
|
|
updated="Paper"
|
|
fi
|
|
disclaimer="Upstream has released updates that appear to apply and compile correctly"
|
|
|
|
log="${UP_LOG_PREFIX}Updated Upstream ($updated)\n\n${disclaimer}${logsuffix}"
|
|
|
|
echo -e "$log" | git commit -F -
|
|
|
|
) || exit 1
|