Check Ci
curl --request POST \
--url https://api.example.com/api/tasks/{task_id}/check-ciimport requests
url = "https://api.example.com/api/tasks/{task_id}/check-ci"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/tasks/{task_id}/check-ci', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/tasks/{task_id}/check-ci",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/tasks/{task_id}/check-ci"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/tasks/{task_id}/check-ci")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/tasks/{task_id}/check-ci")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"pr_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pr_number": 123,
"repository": "<string>",
"status": "success",
"failing": [],
"fix_when_ready": false,
"no_progress_runs": 0,
"passing": [],
"pending": [],
"total": 0
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Pull Requests & Deploys
Check Ci
Fetch GitHub CI status for every open PR on the task.
Previously this fired a synthetic agent turn that asked the model to
run gh pr checks and narrate the result. That cost an LLM round
trip and a chat message for what is a pure data lookup — and worse,
the model would sometimes hallucinate the verdict. Now the backend
queries GitHub directly via github_service.get_pr_check_status
and returns a flat per-PR list. The frontend renders the verdict on
each row’s button (passing / failing / pending) and only escalates
to the agent — via /fix-ci below — when the user clicks the failing
button to ask for a fix.
POST
/
api
/
tasks
/
{task_id}
/
check-ci
Check Ci
curl --request POST \
--url https://api.example.com/api/tasks/{task_id}/check-ciimport requests
url = "https://api.example.com/api/tasks/{task_id}/check-ci"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/tasks/{task_id}/check-ci', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/tasks/{task_id}/check-ci",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/tasks/{task_id}/check-ci"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/tasks/{task_id}/check-ci")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/tasks/{task_id}/check-ci")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"pr_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pr_number": 123,
"repository": "<string>",
"status": "success",
"failing": [],
"fix_when_ready": false,
"no_progress_runs": 0,
"passing": [],
"pending": [],
"total": 0
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}