mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-05-18 19:59:12 +00:00
tools/merge-autoupdate.sh: mark current version only MR as draft
This commit is contained in:
parent
0375e15126
commit
a9bf257684
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,9 @@ glab="glab --repo fdroid/fdroiddata"
|
|||
mr_list=$($glab mr list --author checkupdates-bot -F json | jq -r 'map(.iid)[]')
|
||||
for mr in $mr_list; do
|
||||
$glab mr update $mr --label "fdroid-bot"
|
||||
if [[ $($glab mr view $mr -F json | jq -r '.title | test("bot: Update CurrentVersion of .*")') == "true" ]]; then
|
||||
$glab mr update --draft
|
||||
fi
|
||||
if [[ $($glab mr view $mr -F json | jq -r '.pipeline.status == "success" and .draft == false') == "true" ]]; then
|
||||
echo "Merging $mr..."
|
||||
./tools/auto-merge.sh $mr
|
||||
|
|
|
|||
Loading…
Reference in a new issue