2018-08-30 13:24:50 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-03-29 18:56:51 +03:00
|
|
|
# SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-FileCopyrightText: 2016 Tobias Kaminsky <tobias@kaminsky.me>
|
2024-03-29 21:22:56 +03:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2024-03-29 18:56:51 +03:00
|
|
|
|
2022-05-31 11:07:03 +03:00
|
|
|
PR_NUMBER=$1
|
2018-08-30 13:24:50 +03:00
|
|
|
|
2022-05-31 11:07:03 +03:00
|
|
|
source scripts/lib.sh
|
|
|
|
|
|
|
|
if [ -z "${PR_NUMBER}" ] ; then
|
2018-08-30 13:24:50 +03:00
|
|
|
echo "master";
|
|
|
|
else
|
2022-05-31 11:07:03 +03:00
|
|
|
curl_gh "https://api.github.com/repos/nextcloud/android/pulls/${PR_NUMBER}" | jq .base.ref
|
2018-08-30 13:24:50 +03:00
|
|
|
fi
|