Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/talk-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Krüger <t@timkrueger.me>2022-09-29 18:49:59 +0300
committerTim Krüger <t@timkrueger.me>2022-09-29 18:49:59 +0300
commit193d6a2e251c0b7cfd273c06cb3b110a0207547c (patch)
treebfa5182e3dec1d0a23e9a7b8be5cda48af2497a0 /scripts
parent489dabe81ee5da8e705b92d4f04ea4654fdd804b (diff)
Get branch name from head instead of base
Not the name of the branch were the changes should pulled into is needed. The name of the current branch must be determined. Signed-off-by: Tim Krüger <t@timkrueger.me>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/analysis/getBranchName.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/analysis/getBranchName.sh b/scripts/analysis/getBranchName.sh
index c1fc70c95..226708e2a 100755
--- a/scripts/analysis/getBranchName.sh
+++ b/scripts/analysis/getBranchName.sh
@@ -7,5 +7,5 @@
if [ -z "$3" ] ; then
git branch | grep '\*' | cut -d' ' -f2
else
- curl 2>/dev/null -u "$1":"$2" "https://api.github.com/repos/nextcloud/talk-android/pulls/$3" | jq .base.ref
+ curl 2>/dev/null -u "$1":"$2" "https://api.github.com/repos/nextcloud/talk-android/pulls/$3" | jq .head.ref
fi