php-integration #21
@ -33,14 +33,14 @@
|
|||||||
"accept: application/json",
|
"accept: application/json",
|
||||||
$giteaKey,
|
$giteaKey,
|
||||||
"Content-Type: application/json"
|
"Content-Type: application/json"
|
||||||
)
|
);
|
||||||
|
|
||||||
// Prepare the request
|
// Prepare the request
|
||||||
$issueData = array(
|
$issueData = array(
|
||||||
'body' => $_POST["subject"],
|
'body' => $_POST["subject"],
|
||||||
'title' => $_POST["detail"],
|
'title' => $_POST["detail"],
|
||||||
'closed' => 'false'
|
'closed' => 'false'
|
||||||
)
|
);
|
||||||
|
|
||||||
// Prepare CURL
|
// Prepare CURL
|
||||||
$curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues');
|
$curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues');
|
||||||
@ -92,7 +92,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p>You have submitted:</p>
|
<p>You have submitted:</p>
|
||||||
<p><?php echo $giteaResponse?>
|
<p><?php echo $giteaResponse;?>
|
||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer>
|
<footer>
|
||||||
|
Reference in New Issue
Block a user