Skip to content

Create testsuite for GithubClient #1698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -115,6 +115,21 @@ You need to sign up for a free account, and also deal with configuring the GitHu
* Secret: Enter a shared secret (some longish random text)
* Events: "Send me everything"

## Tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehuss by reading this README snippet I don't easily understand at a glance how the testsuite is meant to be used and maintained. Is the documentation actually meant to be in tests/github_client/mod.rs as rustdoc's comments?

A few questions ahead. Sorry for the perhaps vague comments 🙂, I'm trying to squint and understand these changes and their mainteinance cost for future other contributors:

  • What is needed to test a new handler under ./src/handlers (which is something I'm currently doing)? I assume little to nothing if the new handler is just using the same Github API already tested, right?

  • (echoing the comment from Mark) What is needed to do to update tests? Say, we change a little something in how we interpret Github responses in some structs under ./src/github.rs?

  • is there a way to regenerate these JSON files automatically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the documentation actually meant to be in tests/github_client/mod.rs as rustdoc's comments?

I'm not quite sure I understand the question. The documentation in README.md is intended as a high-level overview of testing of triagebot, and includes a link to tests/github_client/mod.rs to read more details of that specific test suite. If and when more suites are added, they could be linked here, too.

What is needed to test a new handler under ./src/handlers (which is something I'm currently doing)? I assume little to nothing if the new handler is just using the same Github API already tested, right?

Right, handler testing isn't part of this PR. Testing of handlers is implemented in #1678, but I'm finding them to be even harder to wield than these tests, so I broke out just the github side of things to try to make some progress.

What is needed to do to update tests? Say, we change a little something in how we interpret Github responses in some structs under ./src/github.rs?

As mentioned above. The general process is to point the test at one of your personal repos, and re-record the live data.

is there a way to regenerate these JSON files automatically?

Also mentioned above. I can take a look at making it easier to regenerate them.


When possible, writing unittests is very helpful and one of the easiest ways to test.
For more advanced testing, there is an integration test called `testsuite` which provides a testing environment for testing triagebot.
At this time, there is one part to it:

* [`github_client`](tests/github_client/mod.rs) — Tests specifically targeting `GithubClient`.
This sets up an HTTP server that mimics api.github.com and verifies the client's behavior.

Other parts may be added in the future, such as testing the database or the triagebot server itself.

The real GitHub API responses are recorded in JSON files that the tests can later replay to verify the behavior of triagebot.
These recordings are enabled with the `TRIAGEBOT_TEST_RECORD_DIR` environment variable.
See the documentation in `github_client` for the steps for setting up recording to write a test.

## License

Triagebot is distributed under the terms of both the MIT license and the
3 changes: 1 addition & 2 deletions src/actions.rs
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ use std::collections::HashMap;
use std::sync::Arc;

use async_trait::async_trait;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use tera::{Context, Tera};

@@ -87,7 +86,7 @@ pub fn to_human(d: DateTime<Utc>) -> String {
#[async_trait]
impl<'a> Action for Step<'a> {
async fn call(&self) -> anyhow::Result<String> {
let gh = GithubClient::new_with_default_token(Client::new());
let gh = GithubClient::new_from_env();

// retrieve all Rust compiler meetings
// from today for 7 days
202 changes: 134 additions & 68 deletions src/github.rs

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/handlers/docs_update.rs
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ use crate::github::{self, GitTreeEntry, GithubClient, Issue, Repository};
use anyhow::Context;
use anyhow::Result;
use cron::Schedule;
use reqwest::Client;
use std::fmt::Write;
use std::str::FromStr;

@@ -63,7 +62,7 @@ pub async fn handle_job() -> Result<()> {
}

pub async fn docs_update() -> Result<Option<Issue>> {
let gh = GithubClient::new_with_default_token(Client::new());
let gh = GithubClient::new_from_env();
let work_repo = gh.repository(WORK_REPO).await?;
work_repo
.merge_upstream(&gh, &work_repo.default_branch)
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ pub mod payload;
pub mod rfcbot;
pub mod team;
mod team_data;
pub mod test_record;
pub mod triage;
pub mod zulip;

4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@ use anyhow::Context as _;
use futures::future::FutureExt;
use futures::StreamExt;
use hyper::{header, Body, Request, Response, Server, StatusCode};
use reqwest::Client;
use route_recognizer::Router;
use std::{env, net::SocketAddr, sync::Arc};
use tokio::{task, time};
@@ -239,8 +238,7 @@ async fn run_server(addr: SocketAddr) -> anyhow::Result<()> {
.await
.context("database migrations")?;

let client = Client::new();
let gh = github::GithubClient::new_with_default_token(client.clone());
let gh = github::GithubClient::new_from_env();
let oc = octocrab::OctocrabBuilder::new()
.personal_token(github::default_token_from_env())
.build()
3 changes: 2 additions & 1 deletion src/team_data.rs
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@ use rust_team_data::v1::{Teams, ZulipMapping, BASE_URL};
use serde::de::DeserializeOwned;

async fn by_url<T: DeserializeOwned>(client: &GithubClient, path: &str) -> anyhow::Result<T> {
let url = format!("{}{}", BASE_URL, path);
let base = std::env::var("TEAMS_API_URL").unwrap_or(BASE_URL.to_string());
let url = format!("{}{}", base, path);
for _ in 0i32..3 {
let map: Result<T, _> = client.json(client.raw().get(&url)).await;
match map {
231 changes: 231 additions & 0 deletions src/test_record.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
//! Support for recording network activity for test playback.
//!
//! See `testsuite.rs` for more information on test recording.
use crate::EventName;
use anyhow::Context;
use anyhow::Result;
use reqwest::{Request, StatusCode};
use serde::{Deserialize, Serialize};
use std::fs::{self, File};
use std::io::BufWriter;
use std::path::Path;
use std::path::PathBuf;
use std::sync::atomic::{AtomicU32, Ordering};
use tracing::{error, info, warn};

/// A representation of the recording of activity of triagebot.
///
/// Activities are stored as JSON on disk.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "kind")]
pub enum Activity {
/// A webhook event received from GitHub.
Webhook {
webhook_event: String,
payload: serde_json::Value,
},
/// An outgoing request to api.github.com or raw.githubusercontent.com, and its response.
Request {
method: String,
path: String,
query: Option<String>,
request_body: String,
response_code: u16,
/// The body of the response.
///
/// For non-JSON requests, it is encoded as a `Value::String` under
/// the assumption that GitHub never returns a JSON string for a
/// response. This is done so that the JSON bodies can be formatted
/// nicely in the `.json` files to make inspecting them easier.
response_body: serde_json::Value,
},
/// Sent by the mock HTTP server to the test framework when it detects
/// something is wrong.
Error { message: String },
/// Sent by the mock HTTP server to the test framework to tell it that all
/// activities have been processed.
Finished,
}

/// Information about an HTTP request that is captured before sending.
///
/// This is needed to avoid messing with cloning the Request.
#[derive(Debug)]
pub struct RequestInfo {
method: String,
path: String,
query: Option<String>,
body: String,
}

/// Returns whether or not TRIAGEBOT_TEST_RECORD_DIR has been set to enable
/// recording.
pub fn is_recording() -> bool {
record_dir().is_some()
}

/// The directory where the JSON recordings should be stored.
///
/// Returns `None` if recording is disabled.
fn record_dir() -> Option<PathBuf> {
let test_record = std::env::var("TRIAGEBOT_TEST_RECORD_DIR").ok()?;
let mut record_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
record_dir.push("tests");
record_dir.push(test_record);
Some(record_dir)
}

fn next_sequence() -> u32 {
static NEXT_ID: AtomicU32 = AtomicU32::new(0);
NEXT_ID.fetch_add(1, Ordering::SeqCst)
}

/// Initializes the test recording system.
///
/// This sets up the directory where JSON files are stored if the
/// `TRIAGEBOT_TEST_RECORD_DIR` environment variable is set.
pub fn init() -> Result<()> {
let Some(record_dir) = record_dir() else { return Ok(()) };
fs::create_dir_all(&record_dir)
.with_context(|| format!("failed to create recording directory {record_dir:?}"))?;
// Clear any old recording data.
for entry in fs::read_dir(&record_dir)? {
let entry = entry?;
let path = entry.path();
if path.extension().and_then(|p| p.to_str()) == Some("json") {
warn!("deleting old recording at {path:?}");
fs::remove_file(&path)
.with_context(|| format!("failed to remove old recording {path:?}"))?;
}
}
Ok(())
}

/// Records a webhook event for the test framework.
///
/// The recording is only saved if the `TRIAGEBOT_TEST_RECORD_DIR` environment
/// variable is set.
pub fn record_event(event: &EventName, payload: &str) {
let Some(record_dir) = record_dir() else { return };

let payload_json: serde_json::Value = serde_json::from_str(payload).expect("valid json");
let name = match event {
EventName::PullRequest => {
let action = payload_json["action"].as_str().unwrap();
let number = payload_json["number"].as_u64().unwrap();
format!("pr{number}_{action}")
}
EventName::PullRequestReview => {
let action = payload_json["action"].as_str().unwrap();
let number = payload_json["pull_request"]["number"].as_u64().unwrap();
format!("pr{number}_review_{action}")
}
EventName::PullRequestReviewComment => {
let action = payload_json["action"].as_str().unwrap();
let number = payload_json["pull_request"]["number"].as_u64().unwrap();
format!("pr{number}_review_comment_{action}")
}
EventName::IssueComment => {
let action = payload_json["action"].as_str().unwrap();
let number = payload_json["issue"]["number"].as_u64().unwrap();
format!("issue{number}_comment_{action}")
}
EventName::Issue => {
let action = payload_json["action"].as_str().unwrap();
let number = payload_json["issue"]["number"].as_u64().unwrap();
format!("issue{number}_{action}")
}
EventName::Push => {
let after = payload_json["after"].as_str().unwrap();
format!("push_{after}")
}
EventName::Create => {
let ref_type = payload_json["ref_type"].as_str().unwrap();
let git_ref = payload_json["ref"].as_str().unwrap();
format!("create_{ref_type}_{git_ref}")
}
EventName::Other => {
return;
}
};
let activity = Activity::Webhook {
webhook_event: event.to_string(),
payload: payload_json,
};
let filename = format!("{:02}-webhook-{name}.json", next_sequence());
save_activity(&record_dir.join(filename), &activity);
}

/// Captures information about a Request to be used for a test recording.
///
/// This value is passed to `record_request` after the request has been sent.
pub fn capture_request(req: &Request) -> Option<RequestInfo> {
if !is_recording() {
return None;
}
let url = req.url();
let body = req
.body()
.and_then(|body| body.as_bytes())
.map(|bytes| String::from_utf8(bytes.to_vec()).unwrap())
.unwrap_or_default();
let info = RequestInfo {
method: req.method().to_string(),
path: url.path().to_string(),
query: url.query().map(|q| q.to_string()),
body,
};
Some(info)
}

/// Records an HTTP request and response for the test framework.
///
/// The recording is only saved if the `TRIAGEBOT_TEST_RECORD_DIR` environment
/// variable is set.
pub fn record_request(info: Option<RequestInfo>, status: StatusCode, body: &[u8]) {
let Some(info) = info else { return };
let Some(record_dir) = record_dir() else { return };
let response_code = status.as_u16();
let mut munged_path = info.path.replace(['/', '.'], "_");
if munged_path.starts_with('_') {
munged_path.remove(0);
}
let name = format!("{}-{}", info.method, munged_path);
// This is a hack to reduce the amount of data stored in the test
// directory. This file gets requested many times, and it is very
// large.
let response_body = if info.path == "/v1/teams.json" {
serde_json::json!(null)
} else {
match serde_json::from_slice(body) {
Ok(json) => json,
Err(_) => serde_json::Value::String(String::from_utf8_lossy(body).to_string()),
}
};
let activity = Activity::Request {
method: info.method,
path: info.path,
query: info.query,
request_body: info.body,
response_code,
response_body,
};

let filename = format!("{:02}-{name}.json", next_sequence());
save_activity(&record_dir.join(filename), &activity);
}

/// Helper for saving an [`Activity`] to disk as JSON.
fn save_activity(path: &Path, activity: &Activity) {
let save_activity_inner = || -> Result<()> {
let file = File::create(path)?;
let file = BufWriter::new(file);
serde_json::to_writer_pretty(file, &activity)?;
Ok(())
};
if let Err(e) = save_activity_inner() {
error!("failed to save test activity {path:?}: {e:?}");
};
info!("test activity saved to {path:?}");
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"allow_auto_merge": false,
"allow_forking": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_squash_merge": true,
"allow_update_branch": false,
"archive_url": "https://github.com/api/repos/ehuss/triagebot-test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://github.com/api/repos/ehuss/triagebot-test/assignees{/user}",
"blobs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/blobs{/sha}",
"branches_url": "https://github.com/api/repos/ehuss/triagebot-test/branches{/branch}",
"clone_url": "https://github.com/ehuss/triagebot-test.git",
"collaborators_url": "https://github.com/api/repos/ehuss/triagebot-test/collaborators{/collaborator}",
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/comments{/number}",
"commits_url": "https://github.com/api/repos/ehuss/triagebot-test/commits{/sha}",
"compare_url": "https://github.com/api/repos/ehuss/triagebot-test/compare/{base}...{head}",
"contents_url": "https://github.com/api/repos/ehuss/triagebot-test/contents/{+path}",
"contributors_url": "https://github.com/api/repos/ehuss/triagebot-test/contributors",
"created_at": "2022-06-26T21:31:31Z",
"default_branch": "main",
"delete_branch_on_merge": false,
"deployments_url": "https://github.com/api/repos/ehuss/triagebot-test/deployments",
"description": "Triagebot testing",
"disabled": false,
"downloads_url": "https://github.com/api/repos/ehuss/triagebot-test/downloads",
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/events",
"fork": false,
"forks": 1,
"forks_count": 1,
"forks_url": "https://github.com/api/repos/ehuss/triagebot-test/forks",
"full_name": "ehuss/triagebot-test",
"git_commits_url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits{/sha}",
"git_refs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/refs{/sha}",
"git_tags_url": "https://github.com/api/repos/ehuss/triagebot-test/git/tags{/sha}",
"git_url": "git://github.com/ehuss/triagebot-test.git",
"has_discussions": false,
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": null,
"hooks_url": "https://github.com/api/repos/ehuss/triagebot-test/hooks",
"html_url": "https://github.com/ehuss/triagebot-test",
"id": 507688797,
"is_template": false,
"issue_comment_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/comments{/number}",
"issue_events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/events{/number}",
"issues_url": "https://github.com/api/repos/ehuss/triagebot-test/issues{/number}",
"keys_url": "https://github.com/api/repos/ehuss/triagebot-test/keys{/key_id}",
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/labels{/name}",
"language": null,
"languages_url": "https://github.com/api/repos/ehuss/triagebot-test/languages",
"license": null,
"merge_commit_message": "PR_TITLE",
"merge_commit_title": "MERGE_MESSAGE",
"merges_url": "https://github.com/api/repos/ehuss/triagebot-test/merges",
"milestones_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones{/number}",
"mirror_url": null,
"name": "triagebot-test",
"network_count": 1,
"node_id": "R_kgDOHkK3XQ",
"notifications_url": "https://github.com/api/repos/ehuss/triagebot-test/notifications{?since,all,participating}",
"open_issues": 2,
"open_issues_count": 2,
"owner": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"permissions": {
"admin": true,
"maintain": true,
"pull": true,
"push": true,
"triage": true
},
"private": false,
"pulls_url": "https://github.com/api/repos/ehuss/triagebot-test/pulls{/number}",
"pushed_at": "2023-06-06T00:35:18Z",
"releases_url": "https://github.com/api/repos/ehuss/triagebot-test/releases{/id}",
"size": 25,
"squash_merge_commit_message": "COMMIT_MESSAGES",
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
"ssh_url": "git@github.com:ehuss/triagebot-test.git",
"stargazers_count": 0,
"stargazers_url": "https://github.com/api/repos/ehuss/triagebot-test/stargazers",
"statuses_url": "https://github.com/api/repos/ehuss/triagebot-test/statuses/{sha}",
"subscribers_count": 1,
"subscribers_url": "https://github.com/api/repos/ehuss/triagebot-test/subscribers",
"subscription_url": "https://github.com/api/repos/ehuss/triagebot-test/subscription",
"svn_url": "https://github.com/ehuss/triagebot-test",
"tags_url": "https://github.com/api/repos/ehuss/triagebot-test/tags",
"teams_url": "https://github.com/api/repos/ehuss/triagebot-test/teams",
"topics": [],
"trees_url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees{/sha}",
"updated_at": "2022-06-26T21:31:31Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test",
"use_squash_pr_title_as_default": false,
"visibility": "public",
"watchers": 0,
"watchers_count": 0,
"web_commit_signoff_required": false
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"kind": "Request",
"method": "POST",
"path": "/repos/ehuss/triagebot-test/issues/115/assignees",
"query": null,
"request_body": "{\"assignees\":[\"ehuss\"]}",
"response_code": 201,
"response_body": {
"active_lock_reason": null,
"assignee": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"assignees": [
{
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
}
],
"author_association": "OWNER",
"body": "This is a new body.",
"closed_at": null,
"comments": 2,
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/comments",
"created_at": "2023-06-06T00:35:18Z",
"draft": false,
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/events",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"id": 1742862994,
"labels": [],
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/labels{/name}",
"locked": false,
"milestone": null,
"node_id": "PR_kwDOHkK3Xc5SQKrW",
"number": 115,
"performed_via_github_app": null,
"pull_request": {
"diff_url": "https://github.com/ehuss/triagebot-test/pull/115.diff",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"merged_at": null,
"patch_url": "https://github.com/ehuss/triagebot-test/pull/115.patch",
"url": "https://github.com/api/repos/ehuss/triagebot-test/pulls/115"
},
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/reactions"
},
"repository_url": "https://github.com/api/repos/ehuss/triagebot-test",
"state": "open",
"state_reason": null,
"timeline_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/timeline",
"title": "test",
"updated_at": "2023-06-07T23:19:15Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"kind": "Request",
"method": "POST",
"path": "/repos/ehuss/triagebot-test/issues/115/assignees",
"query": null,
"request_body": "{\"assignees\":[\"grashgal\"]}",
"response_code": 201,
"response_body": {
"active_lock_reason": null,
"assignee": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"assignees": [
{
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/113080054?v=4",
"events_url": "https://github.com/api/users/grashgal/events{/privacy}",
"followers_url": "https://github.com/api/users/grashgal/followers",
"following_url": "https://github.com/api/users/grashgal/following{/other_user}",
"gists_url": "https://github.com/api/users/grashgal/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grashgal",
"id": 113080054,
"login": "grashgal",
"node_id": "U_kgDOBr129g",
"organizations_url": "https://github.com/api/users/grashgal/orgs",
"received_events_url": "https://github.com/api/users/grashgal/received_events",
"repos_url": "https://github.com/api/users/grashgal/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/grashgal/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/grashgal/subscriptions",
"type": "User",
"url": "https://github.com/api/users/grashgal"
}
],
"author_association": "OWNER",
"body": "This is a new body.",
"closed_at": null,
"comments": 2,
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/comments",
"created_at": "2023-06-06T00:35:18Z",
"draft": false,
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/events",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"id": 1742862994,
"labels": [],
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/labels{/name}",
"locked": false,
"milestone": null,
"node_id": "PR_kwDOHkK3Xc5SQKrW",
"number": 115,
"performed_via_github_app": null,
"pull_request": {
"diff_url": "https://github.com/ehuss/triagebot-test/pull/115.diff",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"merged_at": null,
"patch_url": "https://github.com/ehuss/triagebot-test/pull/115.patch",
"url": "https://github.com/api/repos/ehuss/triagebot-test/pulls/115"
},
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/reactions"
},
"repository_url": "https://github.com/api/repos/ehuss/triagebot-test",
"state": "open",
"state_reason": null,
"timeline_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/timeline",
"title": "test",
"updated_at": "2023-06-07T23:19:16Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"kind": "Request",
"method": "POST",
"path": "/repos/ehuss/triagebot-test/issues/115/assignees",
"query": null,
"request_body": "{\"assignees\":[\"ehuss\"]}",
"response_code": 201,
"response_body": {
"active_lock_reason": null,
"assignee": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"assignees": [
{
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/113080054?v=4",
"events_url": "https://github.com/api/users/grashgal/events{/privacy}",
"followers_url": "https://github.com/api/users/grashgal/followers",
"following_url": "https://github.com/api/users/grashgal/following{/other_user}",
"gists_url": "https://github.com/api/users/grashgal/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grashgal",
"id": 113080054,
"login": "grashgal",
"node_id": "U_kgDOBr129g",
"organizations_url": "https://github.com/api/users/grashgal/orgs",
"received_events_url": "https://github.com/api/users/grashgal/received_events",
"repos_url": "https://github.com/api/users/grashgal/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/grashgal/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/grashgal/subscriptions",
"type": "User",
"url": "https://github.com/api/users/grashgal"
}
],
"author_association": "OWNER",
"body": "This is a new body.",
"closed_at": null,
"comments": 2,
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/comments",
"created_at": "2023-06-06T00:35:18Z",
"draft": false,
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/events",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"id": 1742862994,
"labels": [],
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/labels{/name}",
"locked": false,
"milestone": null,
"node_id": "PR_kwDOHkK3Xc5SQKrW",
"number": 115,
"performed_via_github_app": null,
"pull_request": {
"diff_url": "https://github.com/ehuss/triagebot-test/pull/115.diff",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"merged_at": null,
"patch_url": "https://github.com/ehuss/triagebot-test/pull/115.patch",
"url": "https://github.com/api/repos/ehuss/triagebot-test/pulls/115"
},
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/reactions"
},
"repository_url": "https://github.com/api/repos/ehuss/triagebot-test",
"state": "open",
"state_reason": null,
"timeline_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/timeline",
"title": "test",
"updated_at": "2023-06-07T23:19:16Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"kind": "Request",
"method": "POST",
"path": "/repos/ehuss/triagebot-test/issues/115/assignees",
"query": null,
"request_body": "{\"assignees\":[\"ghost\"]}",
"response_code": 201,
"response_body": {
"active_lock_reason": null,
"assignee": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"assignees": [
{
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/113080054?v=4",
"events_url": "https://github.com/api/users/grashgal/events{/privacy}",
"followers_url": "https://github.com/api/users/grashgal/followers",
"following_url": "https://github.com/api/users/grashgal/following{/other_user}",
"gists_url": "https://github.com/api/users/grashgal/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grashgal",
"id": 113080054,
"login": "grashgal",
"node_id": "U_kgDOBr129g",
"organizations_url": "https://github.com/api/users/grashgal/orgs",
"received_events_url": "https://github.com/api/users/grashgal/received_events",
"repos_url": "https://github.com/api/users/grashgal/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/grashgal/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/grashgal/subscriptions",
"type": "User",
"url": "https://github.com/api/users/grashgal"
}
],
"author_association": "OWNER",
"body": "This is a new body.",
"closed_at": null,
"comments": 2,
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/comments",
"created_at": "2023-06-06T00:35:18Z",
"draft": false,
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/events",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"id": 1742862994,
"labels": [],
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/labels{/name}",
"locked": false,
"milestone": null,
"node_id": "PR_kwDOHkK3Xc5SQKrW",
"number": 115,
"performed_via_github_app": null,
"pull_request": {
"diff_url": "https://github.com/ehuss/triagebot-test/pull/115.diff",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"merged_at": null,
"patch_url": "https://github.com/ehuss/triagebot-test/pull/115.patch",
"url": "https://github.com/api/repos/ehuss/triagebot-test/pulls/115"
},
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/reactions"
},
"repository_url": "https://github.com/api/repos/ehuss/triagebot-test",
"state": "open",
"state_reason": null,
"timeline_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/timeline",
"title": "test",
"updated_at": "2023-06-07T23:19:16Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?u=4e88d47bc79d87f09f463582681d29f1ed6f478e&v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
}
}
}
128 changes: 128 additions & 0 deletions tests/github_client/add_labels/00-GET-repos_ehuss_triagebot-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"allow_auto_merge": false,
"allow_forking": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_squash_merge": true,
"allow_update_branch": false,
"archive_url": "https://github.com/api/repos/ehuss/triagebot-test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://github.com/api/repos/ehuss/triagebot-test/assignees{/user}",
"blobs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/blobs{/sha}",
"branches_url": "https://github.com/api/repos/ehuss/triagebot-test/branches{/branch}",
"clone_url": "https://github.com/ehuss/triagebot-test.git",
"collaborators_url": "https://github.com/api/repos/ehuss/triagebot-test/collaborators{/collaborator}",
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/comments{/number}",
"commits_url": "https://github.com/api/repos/ehuss/triagebot-test/commits{/sha}",
"compare_url": "https://github.com/api/repos/ehuss/triagebot-test/compare/{base}...{head}",
"contents_url": "https://github.com/api/repos/ehuss/triagebot-test/contents/{+path}",
"contributors_url": "https://github.com/api/repos/ehuss/triagebot-test/contributors",
"created_at": "2022-06-26T21:31:31Z",
"default_branch": "main",
"delete_branch_on_merge": false,
"deployments_url": "https://github.com/api/repos/ehuss/triagebot-test/deployments",
"description": "Triagebot testing",
"disabled": false,
"downloads_url": "https://github.com/api/repos/ehuss/triagebot-test/downloads",
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/events",
"fork": false,
"forks": 1,
"forks_count": 1,
"forks_url": "https://github.com/api/repos/ehuss/triagebot-test/forks",
"full_name": "ehuss/triagebot-test",
"git_commits_url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits{/sha}",
"git_refs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/refs{/sha}",
"git_tags_url": "https://github.com/api/repos/ehuss/triagebot-test/git/tags{/sha}",
"git_url": "git://github.com/ehuss/triagebot-test.git",
"has_discussions": false,
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": null,
"hooks_url": "https://github.com/api/repos/ehuss/triagebot-test/hooks",
"html_url": "https://github.com/ehuss/triagebot-test",
"id": 507688797,
"is_template": false,
"issue_comment_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/comments{/number}",
"issue_events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/events{/number}",
"issues_url": "https://github.com/api/repos/ehuss/triagebot-test/issues{/number}",
"keys_url": "https://github.com/api/repos/ehuss/triagebot-test/keys{/key_id}",
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/labels{/name}",
"language": null,
"languages_url": "https://github.com/api/repos/ehuss/triagebot-test/languages",
"license": null,
"merge_commit_message": "PR_TITLE",
"merge_commit_title": "MERGE_MESSAGE",
"merges_url": "https://github.com/api/repos/ehuss/triagebot-test/merges",
"milestones_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones{/number}",
"mirror_url": null,
"name": "triagebot-test",
"network_count": 1,
"node_id": "R_kgDOHkK3XQ",
"notifications_url": "https://github.com/api/repos/ehuss/triagebot-test/notifications{?since,all,participating}",
"open_issues": 2,
"open_issues_count": 2,
"owner": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"permissions": {
"admin": true,
"maintain": true,
"pull": true,
"push": true,
"triage": true
},
"private": false,
"pulls_url": "https://github.com/api/repos/ehuss/triagebot-test/pulls{/number}",
"pushed_at": "2023-06-06T00:35:18Z",
"releases_url": "https://github.com/api/repos/ehuss/triagebot-test/releases{/id}",
"size": 25,
"squash_merge_commit_message": "COMMIT_MESSAGES",
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
"ssh_url": "git@github.com:ehuss/triagebot-test.git",
"stargazers_count": 0,
"stargazers_url": "https://github.com/api/repos/ehuss/triagebot-test/stargazers",
"statuses_url": "https://github.com/api/repos/ehuss/triagebot-test/statuses/{sha}",
"subscribers_count": 1,
"subscribers_url": "https://github.com/api/repos/ehuss/triagebot-test/subscribers",
"subscription_url": "https://github.com/api/repos/ehuss/triagebot-test/subscription",
"svn_url": "https://github.com/ehuss/triagebot-test",
"tags_url": "https://github.com/api/repos/ehuss/triagebot-test/tags",
"teams_url": "https://github.com/api/repos/ehuss/triagebot-test/teams",
"topics": [],
"trees_url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees{/sha}",
"updated_at": "2022-06-26T21:31:31Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test",
"use_squash_pr_title_as_default": false,
"visibility": "public",
"watchers": 0,
"watchers_count": 0,
"web_commit_signoff_required": false
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test/labels/enhancement",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"color": "a2eeef",
"default": true,
"description": "New feature or request",
"id": 4271056230,
"name": "enhancement",
"node_id": "LA_kwDOHkK3Xc7-kyVm",
"url": "https://github.com/api/repos/ehuss/triagebot-test/labels/enhancement"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"kind": "Request",
"method": "POST",
"path": "/repos/ehuss/triagebot-test/issues/115/labels",
"query": null,
"request_body": "{\"labels\":[\"enhancement\"]}",
"response_code": 200,
"response_body": [
{
"color": "a2eeef",
"default": true,
"description": "New feature or request",
"id": 4271056230,
"name": "enhancement",
"node_id": "LA_kwDOHkK3Xc7-kyVm",
"url": "https://github.com/api/repos/ehuss/triagebot-test/labels/enhancement"
}
]
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test/labels/does-not-exist",
"query": null,
"request_body": "",
"response_code": 404,
"response_body": {
"documentation_url": "https://docs.github.com/rest/reference/issues#get-a-label",
"message": "Not Found"
}
}
2,530 changes: 2,530 additions & 0 deletions tests/github_client/bors_commits/00-GET-repos_rust-lang_rust_commits.json

Large diffs are not rendered by default.

128 changes: 128 additions & 0 deletions tests/github_client/close/00-GET-repos_ehuss_triagebot-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"allow_auto_merge": false,
"allow_forking": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_squash_merge": true,
"allow_update_branch": false,
"archive_url": "https://github.com/api/repos/ehuss/triagebot-test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://github.com/api/repos/ehuss/triagebot-test/assignees{/user}",
"blobs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/blobs{/sha}",
"branches_url": "https://github.com/api/repos/ehuss/triagebot-test/branches{/branch}",
"clone_url": "https://github.com/ehuss/triagebot-test.git",
"collaborators_url": "https://github.com/api/repos/ehuss/triagebot-test/collaborators{/collaborator}",
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/comments{/number}",
"commits_url": "https://github.com/api/repos/ehuss/triagebot-test/commits{/sha}",
"compare_url": "https://github.com/api/repos/ehuss/triagebot-test/compare/{base}...{head}",
"contents_url": "https://github.com/api/repos/ehuss/triagebot-test/contents/{+path}",
"contributors_url": "https://github.com/api/repos/ehuss/triagebot-test/contributors",
"created_at": "2022-06-26T21:31:31Z",
"default_branch": "main",
"delete_branch_on_merge": false,
"deployments_url": "https://github.com/api/repos/ehuss/triagebot-test/deployments",
"description": "Triagebot testing",
"disabled": false,
"downloads_url": "https://github.com/api/repos/ehuss/triagebot-test/downloads",
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/events",
"fork": false,
"forks": 1,
"forks_count": 1,
"forks_url": "https://github.com/api/repos/ehuss/triagebot-test/forks",
"full_name": "ehuss/triagebot-test",
"git_commits_url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits{/sha}",
"git_refs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/refs{/sha}",
"git_tags_url": "https://github.com/api/repos/ehuss/triagebot-test/git/tags{/sha}",
"git_url": "git://github.com/ehuss/triagebot-test.git",
"has_discussions": false,
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": null,
"hooks_url": "https://github.com/api/repos/ehuss/triagebot-test/hooks",
"html_url": "https://github.com/ehuss/triagebot-test",
"id": 507688797,
"is_template": false,
"issue_comment_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/comments{/number}",
"issue_events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/events{/number}",
"issues_url": "https://github.com/api/repos/ehuss/triagebot-test/issues{/number}",
"keys_url": "https://github.com/api/repos/ehuss/triagebot-test/keys{/key_id}",
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/labels{/name}",
"language": null,
"languages_url": "https://github.com/api/repos/ehuss/triagebot-test/languages",
"license": null,
"merge_commit_message": "PR_TITLE",
"merge_commit_title": "MERGE_MESSAGE",
"merges_url": "https://github.com/api/repos/ehuss/triagebot-test/merges",
"milestones_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones{/number}",
"mirror_url": null,
"name": "triagebot-test",
"network_count": 1,
"node_id": "R_kgDOHkK3XQ",
"notifications_url": "https://github.com/api/repos/ehuss/triagebot-test/notifications{?since,all,participating}",
"open_issues": 2,
"open_issues_count": 2,
"owner": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"permissions": {
"admin": true,
"maintain": true,
"pull": true,
"push": true,
"triage": true
},
"private": false,
"pulls_url": "https://github.com/api/repos/ehuss/triagebot-test/pulls{/number}",
"pushed_at": "2023-06-06T00:35:18Z",
"releases_url": "https://github.com/api/repos/ehuss/triagebot-test/releases{/id}",
"size": 25,
"squash_merge_commit_message": "COMMIT_MESSAGES",
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
"ssh_url": "git@github.com:ehuss/triagebot-test.git",
"stargazers_count": 0,
"stargazers_url": "https://github.com/api/repos/ehuss/triagebot-test/stargazers",
"statuses_url": "https://github.com/api/repos/ehuss/triagebot-test/statuses/{sha}",
"subscribers_count": 1,
"subscribers_url": "https://github.com/api/repos/ehuss/triagebot-test/subscribers",
"subscription_url": "https://github.com/api/repos/ehuss/triagebot-test/subscription",
"svn_url": "https://github.com/ehuss/triagebot-test",
"tags_url": "https://github.com/api/repos/ehuss/triagebot-test/tags",
"teams_url": "https://github.com/api/repos/ehuss/triagebot-test/teams",
"topics": [],
"trees_url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees{/sha}",
"updated_at": "2022-06-26T21:31:31Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test",
"use_squash_pr_title_as_default": false,
"visibility": "public",
"watchers": 0,
"watchers_count": 0,
"web_commit_signoff_required": false
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"kind": "Request",
"method": "PATCH",
"path": "/repos/ehuss/triagebot-test/issues/115",
"query": null,
"request_body": "{\"state\":\"closed\"}",
"response_code": 200,
"response_body": {
"active_lock_reason": null,
"assignee": null,
"assignees": [],
"author_association": "OWNER",
"body": "This is a new body.",
"closed_at": "2023-06-07T23:23:25Z",
"closed_by": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"comments": 2,
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/comments",
"created_at": "2023-06-06T00:35:18Z",
"draft": false,
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/events",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"id": 1742862994,
"labels": [],
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/labels{/name}",
"locked": false,
"milestone": {
"closed_at": null,
"closed_issues": 1,
"created_at": "2023-06-07T23:21:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"description": null,
"due_on": null,
"html_url": "https://github.com/ehuss/triagebot-test/milestone/4",
"id": 9510384,
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones/4/labels",
"node_id": "MI_kwDOHkK3Xc4AkR3w",
"number": 4,
"open_issues": 0,
"state": "open",
"title": "new milestone",
"updated_at": "2023-06-07T23:23:26Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test/milestones/4"
},
"node_id": "PR_kwDOHkK3Xc5SQKrW",
"number": 115,
"performed_via_github_app": null,
"pull_request": {
"diff_url": "https://github.com/ehuss/triagebot-test/pull/115.diff",
"html_url": "https://github.com/ehuss/triagebot-test/pull/115",
"merged_at": null,
"patch_url": "https://github.com/ehuss/triagebot-test/pull/115.patch",
"url": "https://github.com/api/repos/ehuss/triagebot-test/pulls/115"
},
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/reactions"
},
"repository_url": "https://github.com/api/repos/ehuss/triagebot-test",
"state": "closed",
"state_reason": null,
"timeline_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115/timeline",
"title": "test",
"updated_at": "2023-06-07T23:23:25Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test/issues/115",
"user": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
}
}
}

Large diffs are not rendered by default.

128 changes: 128 additions & 0 deletions tests/github_client/commits/00-GET-repos_ehuss_triagebot-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"allow_auto_merge": false,
"allow_forking": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_squash_merge": true,
"allow_update_branch": false,
"archive_url": "https://github.com/api/repos/ehuss/triagebot-test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://github.com/api/repos/ehuss/triagebot-test/assignees{/user}",
"blobs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/blobs{/sha}",
"branches_url": "https://github.com/api/repos/ehuss/triagebot-test/branches{/branch}",
"clone_url": "https://github.com/ehuss/triagebot-test.git",
"collaborators_url": "https://github.com/api/repos/ehuss/triagebot-test/collaborators{/collaborator}",
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/comments{/number}",
"commits_url": "https://github.com/api/repos/ehuss/triagebot-test/commits{/sha}",
"compare_url": "https://github.com/api/repos/ehuss/triagebot-test/compare/{base}...{head}",
"contents_url": "https://github.com/api/repos/ehuss/triagebot-test/contents/{+path}",
"contributors_url": "https://github.com/api/repos/ehuss/triagebot-test/contributors",
"created_at": "2022-06-26T21:31:31Z",
"default_branch": "main",
"delete_branch_on_merge": false,
"deployments_url": "https://github.com/api/repos/ehuss/triagebot-test/deployments",
"description": "Triagebot testing",
"disabled": false,
"downloads_url": "https://github.com/api/repos/ehuss/triagebot-test/downloads",
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/events",
"fork": false,
"forks": 1,
"forks_count": 1,
"forks_url": "https://github.com/api/repos/ehuss/triagebot-test/forks",
"full_name": "ehuss/triagebot-test",
"git_commits_url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits{/sha}",
"git_refs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/refs{/sha}",
"git_tags_url": "https://github.com/api/repos/ehuss/triagebot-test/git/tags{/sha}",
"git_url": "git://github.com/ehuss/triagebot-test.git",
"has_discussions": false,
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": null,
"hooks_url": "https://github.com/api/repos/ehuss/triagebot-test/hooks",
"html_url": "https://github.com/ehuss/triagebot-test",
"id": 507688797,
"is_template": false,
"issue_comment_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/comments{/number}",
"issue_events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/events{/number}",
"issues_url": "https://github.com/api/repos/ehuss/triagebot-test/issues{/number}",
"keys_url": "https://github.com/api/repos/ehuss/triagebot-test/keys{/key_id}",
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/labels{/name}",
"language": null,
"languages_url": "https://github.com/api/repos/ehuss/triagebot-test/languages",
"license": null,
"merge_commit_message": "PR_TITLE",
"merge_commit_title": "MERGE_MESSAGE",
"merges_url": "https://github.com/api/repos/ehuss/triagebot-test/merges",
"milestones_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones{/number}",
"mirror_url": null,
"name": "triagebot-test",
"network_count": 1,
"node_id": "R_kgDOHkK3XQ",
"notifications_url": "https://github.com/api/repos/ehuss/triagebot-test/notifications{?since,all,participating}",
"open_issues": 2,
"open_issues_count": 2,
"owner": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"permissions": {
"admin": true,
"maintain": true,
"pull": true,
"push": true,
"triage": true
},
"private": false,
"pulls_url": "https://github.com/api/repos/ehuss/triagebot-test/pulls{/number}",
"pushed_at": "2023-06-06T00:35:18Z",
"releases_url": "https://github.com/api/repos/ehuss/triagebot-test/releases{/id}",
"size": 25,
"squash_merge_commit_message": "COMMIT_MESSAGES",
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
"ssh_url": "git@github.com:ehuss/triagebot-test.git",
"stargazers_count": 0,
"stargazers_url": "https://github.com/api/repos/ehuss/triagebot-test/stargazers",
"statuses_url": "https://github.com/api/repos/ehuss/triagebot-test/statuses/{sha}",
"subscribers_count": 1,
"subscribers_url": "https://github.com/api/repos/ehuss/triagebot-test/subscribers",
"subscription_url": "https://github.com/api/repos/ehuss/triagebot-test/subscription",
"svn_url": "https://github.com/ehuss/triagebot-test",
"tags_url": "https://github.com/api/repos/ehuss/triagebot-test/tags",
"teams_url": "https://github.com/api/repos/ehuss/triagebot-test/teams",
"topics": [],
"trees_url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees{/sha}",
"updated_at": "2022-06-26T21:31:31Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test",
"use_squash_pr_title_as_default": false,
"visibility": "public",
"watchers": 0,
"watchers_count": 0,
"web_commit_signoff_required": false
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test/pulls/115/commits",
"query": "page=1&per_page=100",
"request_body": "",
"response_code": 200,
"response_body": [
{
"author": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/commits/f39d908ac31a6bccc4a0bba0497d3626756dacd7/comments",
"commit": {
"author": {
"date": "2023-06-06T00:33:20Z",
"email": "eric@huss.org",
"name": "Eric Huss"
},
"comment_count": 0,
"committer": {
"date": "2023-06-06T00:33:20Z",
"email": "eric@huss.org",
"name": "Eric Huss"
},
"message": "test",
"tree": {
"sha": "4645075b7c02de65a59592f9d124b57f3c4160a7",
"url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees/4645075b7c02de65a59592f9d124b57f3c4160a7"
},
"url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits/f39d908ac31a6bccc4a0bba0497d3626756dacd7",
"verification": {
"payload": null,
"reason": "unsigned",
"signature": null,
"verified": false
}
},
"committer": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"html_url": "https://github.com/ehuss/triagebot-test/commit/f39d908ac31a6bccc4a0bba0497d3626756dacd7",
"node_id": "C_kwDOHkK3XdoAKGYzOWQ5MDhhYzMxYTZiY2NjNGEwYmJhMDQ5N2QzNjI2NzU2ZGFjZDc",
"parents": [
{
"html_url": "https://github.com/ehuss/triagebot-test/commit/9a00ee2312071126101bb900f363210d6f3d1402",
"sha": "9a00ee2312071126101bb900f363210d6f3d1402",
"url": "https://github.com/api/repos/ehuss/triagebot-test/commits/9a00ee2312071126101bb900f363210d6f3d1402"
}
],
"sha": "f39d908ac31a6bccc4a0bba0497d3626756dacd7",
"url": "https://github.com/api/repos/ehuss/triagebot-test/commits/f39d908ac31a6bccc4a0bba0497d3626756dacd7"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test/pulls/115/commits",
"query": "page=2&per_page=100",
"request_body": "",
"response_code": 200,
"response_body": []
}
365 changes: 365 additions & 0 deletions tests/github_client/create_commit/00-GET-repos_ehuss_rust.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"kind": "Request",
"method": "POST",
"path": "/repos/ehuss/rust/git/commits",
"query": null,
"request_body": "{\"message\":\"test reference commit\",\"parents\":[\"319b88c463fe6f51bb6badbbd3bb97252a60f3a5\"],\"tree\":\"45aae523b087e418f2778d4557489de38fede6a3\"}",
"response_code": 201,
"response_body": {
"author": {
"date": "2023-02-05T19:08:57Z",
"email": "eric@huss.org",
"name": "Eric Huss"
},
"committer": {
"date": "2023-02-05T19:08:57Z",
"email": "eric@huss.org",
"name": "Eric Huss"
},
"html_url": "https://github.com/ehuss/rust/commit/88a426017fa4635ba42203c3b1d1c19f6a028184",
"message": "test reference commit",
"node_id": "C_kwDOBwBeMdoAKDg4YTQyNjAxN2ZhNDYzNWJhNDIyMDNjM2IxZDFjMTlmNmEwMjgxODQ",
"parents": [
{
"html_url": "https://github.com/ehuss/rust/commit/319b88c463fe6f51bb6badbbd3bb97252a60f3a5",
"sha": "319b88c463fe6f51bb6badbbd3bb97252a60f3a5",
"url": "https://github.com/api/repos/ehuss/rust/git/commits/319b88c463fe6f51bb6badbbd3bb97252a60f3a5"
}
],
"sha": "88a426017fa4635ba42203c3b1d1c19f6a028184",
"tree": {
"sha": "45aae523b087e418f2778d4557489de38fede6a3",
"url": "https://github.com/api/repos/ehuss/rust/git/trees/45aae523b087e418f2778d4557489de38fede6a3"
},
"url": "https://github.com/api/repos/ehuss/rust/git/commits/88a426017fa4635ba42203c3b1d1c19f6a028184",
"verification": {
"payload": null,
"reason": "unsigned",
"signature": null,
"verified": false
}
}
}
128 changes: 128 additions & 0 deletions tests/github_client/diff/00-GET-repos_ehuss_triagebot-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"allow_auto_merge": false,
"allow_forking": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_squash_merge": true,
"allow_update_branch": false,
"archive_url": "https://github.com/api/repos/ehuss/triagebot-test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://github.com/api/repos/ehuss/triagebot-test/assignees{/user}",
"blobs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/blobs{/sha}",
"branches_url": "https://github.com/api/repos/ehuss/triagebot-test/branches{/branch}",
"clone_url": "https://github.com/ehuss/triagebot-test.git",
"collaborators_url": "https://github.com/api/repos/ehuss/triagebot-test/collaborators{/collaborator}",
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/comments{/number}",
"commits_url": "https://github.com/api/repos/ehuss/triagebot-test/commits{/sha}",
"compare_url": "https://github.com/api/repos/ehuss/triagebot-test/compare/{base}...{head}",
"contents_url": "https://github.com/api/repos/ehuss/triagebot-test/contents/{+path}",
"contributors_url": "https://github.com/api/repos/ehuss/triagebot-test/contributors",
"created_at": "2022-06-26T21:31:31Z",
"default_branch": "main",
"delete_branch_on_merge": false,
"deployments_url": "https://github.com/api/repos/ehuss/triagebot-test/deployments",
"description": "Triagebot testing",
"disabled": false,
"downloads_url": "https://github.com/api/repos/ehuss/triagebot-test/downloads",
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/events",
"fork": false,
"forks": 1,
"forks_count": 1,
"forks_url": "https://github.com/api/repos/ehuss/triagebot-test/forks",
"full_name": "ehuss/triagebot-test",
"git_commits_url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits{/sha}",
"git_refs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/refs{/sha}",
"git_tags_url": "https://github.com/api/repos/ehuss/triagebot-test/git/tags{/sha}",
"git_url": "git://github.com/ehuss/triagebot-test.git",
"has_discussions": false,
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": null,
"hooks_url": "https://github.com/api/repos/ehuss/triagebot-test/hooks",
"html_url": "https://github.com/ehuss/triagebot-test",
"id": 507688797,
"is_template": false,
"issue_comment_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/comments{/number}",
"issue_events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/events{/number}",
"issues_url": "https://github.com/api/repos/ehuss/triagebot-test/issues{/number}",
"keys_url": "https://github.com/api/repos/ehuss/triagebot-test/keys{/key_id}",
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/labels{/name}",
"language": null,
"languages_url": "https://github.com/api/repos/ehuss/triagebot-test/languages",
"license": null,
"merge_commit_message": "PR_TITLE",
"merge_commit_title": "MERGE_MESSAGE",
"merges_url": "https://github.com/api/repos/ehuss/triagebot-test/merges",
"milestones_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones{/number}",
"mirror_url": null,
"name": "triagebot-test",
"network_count": 1,
"node_id": "R_kgDOHkK3XQ",
"notifications_url": "https://github.com/api/repos/ehuss/triagebot-test/notifications{?since,all,participating}",
"open_issues": 2,
"open_issues_count": 2,
"owner": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"permissions": {
"admin": true,
"maintain": true,
"pull": true,
"push": true,
"triage": true
},
"private": false,
"pulls_url": "https://github.com/api/repos/ehuss/triagebot-test/pulls{/number}",
"pushed_at": "2023-06-06T00:35:18Z",
"releases_url": "https://github.com/api/repos/ehuss/triagebot-test/releases{/id}",
"size": 25,
"squash_merge_commit_message": "COMMIT_MESSAGES",
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
"ssh_url": "git@github.com:ehuss/triagebot-test.git",
"stargazers_count": 0,
"stargazers_url": "https://github.com/api/repos/ehuss/triagebot-test/stargazers",
"statuses_url": "https://github.com/api/repos/ehuss/triagebot-test/statuses/{sha}",
"subscribers_count": 1,
"subscribers_url": "https://github.com/api/repos/ehuss/triagebot-test/subscribers",
"subscription_url": "https://github.com/api/repos/ehuss/triagebot-test/subscription",
"svn_url": "https://github.com/ehuss/triagebot-test",
"tags_url": "https://github.com/api/repos/ehuss/triagebot-test/tags",
"teams_url": "https://github.com/api/repos/ehuss/triagebot-test/teams",
"topics": [],
"trees_url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees{/sha}",
"updated_at": "2022-06-26T21:31:31Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test",
"use_squash_pr_title_as_default": false,
"visibility": "public",
"watchers": 0,
"watchers_count": 0,
"web_commit_signoff_required": false
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test/compare/9a00ee2312071126101bb900f363210d6f3d1402...f39d908ac31a6bccc4a0bba0497d3626756dacd7",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": "diff --git a/README.md b/README.md\nindex 8533f6d..ce54f76 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,2 +1,4 @@\n # triagebot-test\n Triagebot testing\n+\n+test\n"
}
128 changes: 128 additions & 0 deletions tests/github_client/edit_body/00-GET-repos_ehuss_triagebot-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"kind": "Request",
"method": "GET",
"path": "/repos/ehuss/triagebot-test",
"query": null,
"request_body": "",
"response_code": 200,
"response_body": {
"allow_auto_merge": false,
"allow_forking": true,
"allow_merge_commit": true,
"allow_rebase_merge": true,
"allow_squash_merge": true,
"allow_update_branch": false,
"archive_url": "https://github.com/api/repos/ehuss/triagebot-test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://github.com/api/repos/ehuss/triagebot-test/assignees{/user}",
"blobs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/blobs{/sha}",
"branches_url": "https://github.com/api/repos/ehuss/triagebot-test/branches{/branch}",
"clone_url": "https://github.com/ehuss/triagebot-test.git",
"collaborators_url": "https://github.com/api/repos/ehuss/triagebot-test/collaborators{/collaborator}",
"comments_url": "https://github.com/api/repos/ehuss/triagebot-test/comments{/number}",
"commits_url": "https://github.com/api/repos/ehuss/triagebot-test/commits{/sha}",
"compare_url": "https://github.com/api/repos/ehuss/triagebot-test/compare/{base}...{head}",
"contents_url": "https://github.com/api/repos/ehuss/triagebot-test/contents/{+path}",
"contributors_url": "https://github.com/api/repos/ehuss/triagebot-test/contributors",
"created_at": "2022-06-26T21:31:31Z",
"default_branch": "main",
"delete_branch_on_merge": false,
"deployments_url": "https://github.com/api/repos/ehuss/triagebot-test/deployments",
"description": "Triagebot testing",
"disabled": false,
"downloads_url": "https://github.com/api/repos/ehuss/triagebot-test/downloads",
"events_url": "https://github.com/api/repos/ehuss/triagebot-test/events",
"fork": false,
"forks": 1,
"forks_count": 1,
"forks_url": "https://github.com/api/repos/ehuss/triagebot-test/forks",
"full_name": "ehuss/triagebot-test",
"git_commits_url": "https://github.com/api/repos/ehuss/triagebot-test/git/commits{/sha}",
"git_refs_url": "https://github.com/api/repos/ehuss/triagebot-test/git/refs{/sha}",
"git_tags_url": "https://github.com/api/repos/ehuss/triagebot-test/git/tags{/sha}",
"git_url": "git://github.com/ehuss/triagebot-test.git",
"has_discussions": false,
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": null,
"hooks_url": "https://github.com/api/repos/ehuss/triagebot-test/hooks",
"html_url": "https://github.com/ehuss/triagebot-test",
"id": 507688797,
"is_template": false,
"issue_comment_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/comments{/number}",
"issue_events_url": "https://github.com/api/repos/ehuss/triagebot-test/issues/events{/number}",
"issues_url": "https://github.com/api/repos/ehuss/triagebot-test/issues{/number}",
"keys_url": "https://github.com/api/repos/ehuss/triagebot-test/keys{/key_id}",
"labels_url": "https://github.com/api/repos/ehuss/triagebot-test/labels{/name}",
"language": null,
"languages_url": "https://github.com/api/repos/ehuss/triagebot-test/languages",
"license": null,
"merge_commit_message": "PR_TITLE",
"merge_commit_title": "MERGE_MESSAGE",
"merges_url": "https://github.com/api/repos/ehuss/triagebot-test/merges",
"milestones_url": "https://github.com/api/repos/ehuss/triagebot-test/milestones{/number}",
"mirror_url": null,
"name": "triagebot-test",
"network_count": 1,
"node_id": "R_kgDOHkK3XQ",
"notifications_url": "https://github.com/api/repos/ehuss/triagebot-test/notifications{?since,all,participating}",
"open_issues": 2,
"open_issues_count": 2,
"owner": {
"avatar_url": "https://avatars.githubusercontent.com/u/43198?v=4",
"events_url": "https://github.com/api/users/ehuss/events{/privacy}",
"followers_url": "https://github.com/api/users/ehuss/followers",
"following_url": "https://github.com/api/users/ehuss/following{/other_user}",
"gists_url": "https://github.com/api/users/ehuss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ehuss",
"id": 43198,
"login": "ehuss",
"node_id": "MDQ6VXNlcjQzMTk4",
"organizations_url": "https://github.com/api/users/ehuss/orgs",
"received_events_url": "https://github.com/api/users/ehuss/received_events",
"repos_url": "https://github.com/api/users/ehuss/repos",
"site_admin": false,
"starred_url": "https://github.com/api/users/ehuss/starred{/owner}{/repo}",
"subscriptions_url": "https://github.com/api/users/ehuss/subscriptions",
"type": "User",
"url": "https://github.com/api/users/ehuss"
},
"permissions": {
"admin": true,
"maintain": true,
"pull": true,
"push": true,
"triage": true
},
"private": false,
"pulls_url": "https://github.com/api/repos/ehuss/triagebot-test/pulls{/number}",
"pushed_at": "2023-06-06T00:35:18Z",
"releases_url": "https://github.com/api/repos/ehuss/triagebot-test/releases{/id}",
"size": 25,
"squash_merge_commit_message": "COMMIT_MESSAGES",
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
"ssh_url": "git@github.com:ehuss/triagebot-test.git",
"stargazers_count": 0,
"stargazers_url": "https://github.com/api/repos/ehuss/triagebot-test/stargazers",
"statuses_url": "https://github.com/api/repos/ehuss/triagebot-test/statuses/{sha}",
"subscribers_count": 1,
"subscribers_url": "https://github.com/api/repos/ehuss/triagebot-test/subscribers",
"subscription_url": "https://github.com/api/repos/ehuss/triagebot-test/subscription",
"svn_url": "https://github.com/ehuss/triagebot-test",
"tags_url": "https://github.com/api/repos/ehuss/triagebot-test/tags",
"teams_url": "https://github.com/api/repos/ehuss/triagebot-test/teams",
"topics": [],
"trees_url": "https://github.com/api/repos/ehuss/triagebot-test/git/trees{/sha}",
"updated_at": "2022-06-26T21:31:31Z",
"url": "https://github.com/api/repos/ehuss/triagebot-test",
"use_squash_pr_title_as_default": false,
"visibility": "public",
"watchers": 0,
"watchers_count": 0,
"web_commit_signoff_required": false
}
}
Loading