Get one reviewed pull request with its review runs
curl --request GET \
--url https://api.runaether.dev/pr-reviews/{pullRequestID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/pr-reviews/{pullRequestID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/pr-reviews/{pullRequestID}', 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.runaether.dev/pr-reviews/{pullRequestID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.runaether.dev/pr-reviews/{pullRequestID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/pr-reviews/{pullRequestID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/pr-reviews/{pullRequestID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"group": {
"additions": 1,
"checks_failed": 1,
"checks_passed": 1,
"checks_total": 1,
"deletions": 1,
"html_url": "<string>",
"latest_created_at": "2023-11-07T05:31:56Z",
"needs_attention": true,
"pr_number": 2,
"pull_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repo_name": "<string>",
"repo_owner": "<string>",
"reviews": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"duration_seconds": 1,
"error": "<string>",
"head_sha": "<string>"
}
],
"title": "<string>",
"base_branch": "<string>",
"head_branch": "<string>",
"head_sha": "<string>"
},
"posted_reviews": [
{
"body": "<string>",
"html_url": "<string>",
"posted_at": "2023-11-07T05:31:56Z",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Pr Reviews
Get one reviewed pull request with its review runs
The single-PR read of listPRReviews: the same group shape plus the captured reviews posted to the PR (newest first), addressed by the pull_request_id every listed group carries. Reviews posted before capture shipped have no content row and are honestly absent. 404 covers both a pull request that does not exist and one the user has no review runs against — the two are deliberately indistinguishable.
GET
/
pr-reviews
/
{pullRequestID}
Get one reviewed pull request with its review runs
curl --request GET \
--url https://api.runaether.dev/pr-reviews/{pullRequestID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/pr-reviews/{pullRequestID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/pr-reviews/{pullRequestID}', 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.runaether.dev/pr-reviews/{pullRequestID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.runaether.dev/pr-reviews/{pullRequestID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/pr-reviews/{pullRequestID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/pr-reviews/{pullRequestID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"group": {
"additions": 1,
"checks_failed": 1,
"checks_passed": 1,
"checks_total": 1,
"deletions": 1,
"html_url": "<string>",
"latest_created_at": "2023-11-07T05:31:56Z",
"needs_attention": true,
"pr_number": 2,
"pull_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repo_name": "<string>",
"repo_owner": "<string>",
"reviews": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"duration_seconds": 1,
"error": "<string>",
"head_sha": "<string>"
}
],
"title": "<string>",
"base_branch": "<string>",
"head_branch": "<string>",
"head_sha": "<string>"
},
"posted_reviews": [
{
"body": "<string>",
"html_url": "<string>",
"posted_at": "2023-11-07T05:31:56Z",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}List reviewed pull requests with their review runsGet the changed files of a reviewed pull request with unified-diff patches
⌘I