nextcloud-android/scripts/analysis/getBranchBase.sh
Álvaro Brey f54d234626
Merge pull request #10279 from nextcloud/chore/analysis-github-token
workflows/analysis: Use GITHUB_TOKEN instead of GIT_TOKEN, and some cleanup
2022-05-31 10:07:03 +02:00

11 lines
204 B
Bash
Executable file

#!/bin/bash
PR_NUMBER=$1
source scripts/lib.sh
if [ -z "${PR_NUMBER}" ] ; then
echo "master";
else
curl_gh "https://api.github.com/repos/nextcloud/android/pulls/${PR_NUMBER}" | jq .base.ref
fi