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

getBranchName.sh « analysis « scripts - github.com/nextcloud/talk-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0442b1a5ef84ee46ca6c9ef3bb54ada1d6bbe501 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# $1: username, $2: password/token, $3: pull request number

if [ -z $3 ] ; then
    echo "stable-14";
else
    curl 2>/dev/null -u $1:$2 https://api.github.com/repos/nextcloud/talk-android/pulls/$3 | grep \"ref\": | grep -v stable-14 | cut -d"\"" -f4
fi