82 | @@ -83,12 +83,13 @@ function cleanup() {
83 |
84 | # Create unsigned merge commit.
85 | (
86 | - echo "Merge pull request #$PULL"
87 | + PRTITLE=`curl -s https://api.github.com/repos/$REPO/pulls/$PULL | grep -e ' "title": ".*",'| awk -F'"' '{print $4}'`
This needs to have the organisation in the URL. i.e api.github.com/repos/bitcoin/bitcoin/pulls/5623 As is, it just returns "Not Found" messages.
$REPO is supposed to be something like bitcoin/bitcoin as per this
Right, forgot we already had that defined. Although I still can't get the script to run. Only get "ERROR: Creating merge failed (already merged?)."
Disregard last message, there is a problem.
Fixed. TIL: bash has scoping.