Makes changelog generator send changelog to target branch

For some reason I was sure this was included in $payload['pull_request']['base']['repo']['url'], but i was wrong.
This commit is contained in:
Kyle Spier-Swenson
2016-03-28 12:53:26 -07:00
parent cc3ea6ddbb
commit e3eac6f3d5
+1
View File
@@ -262,6 +262,7 @@ function checkchangelog($payload, $merge = false) {
$content = array (
'message' => 'Automatic changelog generation for PR #'.$payload['pull_request']['number'],
'content' => base64_encode($file)
'branch' => $payload['pull_request']['base']['ref']
);
$scontext = array('http' => array(
'method' => 'PUT',