diff --git a/github-graphql/src/lib.rs b/github-graphql/src/lib.rs index 48b06264..d95fc5a4 100644 --- a/github-graphql/src/lib.rs +++ b/github-graphql/src/lib.rs @@ -53,6 +53,7 @@ pub mod queries { #[derive(cynic::QueryFragment, Debug)] pub struct PullRequest { pub number: i32, + pub author: Option, pub created_at: DateTime, pub url: Uri, pub title: String, diff --git a/src/actions.rs b/src/actions.rs index c3527eab..a9509171 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -43,6 +43,7 @@ pub struct IssueDecorator { pub html_url: String, pub repo_name: String, pub labels: String, + pub author: String, pub assignees: String, // Human (readable) timestamp pub updated_at_hts: String, diff --git a/src/github.rs b/src/github.rs index e0dc554f..32e83253 100644 --- a/src/github.rs +++ b/src/github.rs @@ -288,7 +288,7 @@ pub struct Issue { /// /// Example: `https://github.com/octocat/Hello-World/pull/1347` pub html_url: String, - // User performing an `action` + // User performing an `action` (or PR/issue author) pub user: User, pub labels: Vec