File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -33,24 +33,30 @@ parse_url() {
33
33
export RELEASE_TRACKER_PR=${PARTS[4]}
34
34
}
35
35
36
- RELEASE_TRACKER=
36
+ RELEASE_TRACKER=${RELEASE_TRACKER:- }
37
+ GITHUB_BASE_REF=${GITHUB_BASE_REF:- }
37
38
38
39
while IFS=$' : \r\t ' read -r -u9 marker v; do
39
40
case $marker in
40
41
Release-tracker)
41
- export RELEASE_TRACKER=$v
42
+ export RELEASE_TRACKER=$( echo $v | tr -d ' \r\t ' )
42
43
;;
43
44
Release)
44
- export RELEASE=$v
45
+ export RELEASE=$( echo $v | tr -d ' \r\t ' )
45
46
;;
46
47
esac
47
48
done 9< <( git show -s --format=%b)
48
49
49
- [ ! -z $RELEASE_TRACKER ] || {
50
+ [ ! -z " $RELEASE_TRACKER " ] || {
50
51
echo " Release-tracker url not found."
51
52
exit 0
52
53
}
53
54
55
+ [ ! -z " $GITHUB_BASE_REF " ] || {
56
+ echo " GitHub base ref not found."
57
+ exit 0
58
+ }
59
+
54
60
parse_url $RELEASE_TRACKER
55
61
api_url=" repos/${RELEASE_TRACKER_OWNER} /${RELEASE_TRACKER_REPO} /issues/${RELEASE_TRACKER_PR} /comments"
56
62
You can’t perform that action at this time.
0 commit comments