Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit a4bc1cc

Browse files
committed
Add new fields to PullRequests query
Closes #170 - Added new fields (specified in #170) to the `PullRequests` GraphQL query. - Extended `GitHubPullRequests` to store the additional data. - Implemented support for nested types like labels, comments, reviews, and commits. - Derived `Serialize`/`Deserialize` for new types to enable database storage.
1 parent 4e486b6 commit a4bc1cc

File tree

7 files changed

+635
-93
lines changed

7 files changed

+635
-93
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1111
- Tracing with a filter set by `RUST_LOG` environment variable.
1212
- Added support for passing the SSH passphrase through the `SSH_PASSPHRASE`
1313
environment variable.
14+
- Added new fields to the `PullRequests` GraphQL query and corresponding fields to
15+
the `graphql::pull_request::PullRequest` struct.
1416

1517
### Changed
1618

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
chrono = { version = "0.4", features = ["serde"] }
78
anyhow = "1"
8-
async-graphql = "7"
9+
async-graphql = { version = "7", features = ["chrono"] }
910
async-graphql-warp = "7"
1011
base64 = "0.22"
1112
bincode = "1"
12-
chrono = "0.4"
1313
clap = { version = "4", features = ["derive"] }
1414
config = { version = "0.15", features = ["toml"], default-features = false }
1515
directories = "6"

src/database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Database {
8585
let keystr: String = format!("{owner}/{name}#{}", item.number);
8686
Database::insert(
8787
&keystr,
88-
(&item.title, &item.assignees, &item.reviewers),
88+
(&item.title, &item.assignees, &item.review_requests),
8989
&self.pull_request_tree,
9090
)?;
9191
}

0 commit comments

Comments
 (0)