class PullRequest(Type): number = int title = str body_text = str author = Actor created_at = DateTime last_edited_at = DateTime closed = bool closed_at = DateTime milestone = Milestone state = PullRequestState url = str labels = Field(LabelConnection, args=connection_args()) assignees = Field(ActorConnection, args=connection_args()) comments = Field(IssueCommentConnection, args=connection_args()) project_cards = Field(ProjectCardConnection, args=connection_args()) additions = int deletions = int head_ref_name = str merged = bool merged_at = DateTime reviews = Field(PullRequestReviewConnection, args=connection_args(states=list_of( non_null(PullRequestReviewState)), ))
class Issue(Type, Node): number = int title = str body_text = str author = Actor created_at = DateTime last_edited_at = DateTime closed = bool closed_at = DateTime milestone = Milestone state = IssueState url = str labels = Field(LabelConnection, args=connection_args()) assignees = Field(ActorConnection, args=connection_args()) comments = Field(IssueCommentConnection, args=connection_args()) project_cards = Field(ProjectCardConnection, args=connection_args())
class PullRequestReview(Type): author = Actor body_text = str created_at = DateTime last_edited_at = DateTime state = PullRequestReviewState url = str comments = Field(PullRequestReviewCommentConnection, args=connection_args())
class Repository(Type, Node): issues = Field(IssueConnection, args=connection_args( labels=list_of(non_null(str)), order_by=IssueOrder, states=list_of(non_null(IssueState)), )) pull_requests = Field(PullRequestConnection, args=connection_args( labels=list_of(non_null(str)), order_by=IssueOrder, states=list_of(non_null(PullRequestState)), )) labels = Field(LabelConnection, args=connection_args()) milestones = Field(MilestoneConnection, args=connection_args()) projects = Field(ProjectConnection, args=connection_args()) isPrivate = bool name = str name_with_owner = str url = str
class Repository(Type): issues = Field(IssueConnection, args=connection_args())
class User(Type): following = Field(FollowingConnection, args=connection_args()) followers = Field(FollowersConnection, args=connection_args())