php-integration #21

Closed
fred.boniface wants to merge 146 commits from php-integration into main
Showing only changes of commit b5da264ce6 - Show all commits

View File

@ -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>