Skip to content

Commit a5da5f7

Browse files
Copilotalexr00
andcommitted
Changes before error encountered
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent a399622 commit a5da5f7

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/github/githubRepository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
OrganizationTeamsCountResponse,
2828
OrganizationTeamsResponse,
2929
OrgProjectsResponse,
30+
PullRequestNumberData,
3031
PullRequestNumbersResponse,
3132
PullRequestParticipantsResponse,
3233
PullRequestResponse,
@@ -669,7 +670,7 @@ export class GitHubRepository extends Disposable {
669670
return undefined;
670671
}
671672

672-
async getPullRequestNumbers(): Promise<{ number: number; title: string; author: { login: string } }[] | undefined> {
673+
async getPullRequestNumbers(): Promise<PullRequestNumberData[] | undefined> {
673674
let remote: GitHubRemote | undefined;
674675
try {
675676
Logger.debug(`Fetch pull request numbers - enter`, this.id);

src/github/graphql.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -847,15 +847,18 @@ export interface PullRequestsResponse {
847847
export interface PullRequestNumbersResponse {
848848
repository: {
849849
pullRequests: {
850-
nodes: {
851-
number: number;
852-
title: string;
853-
author: {
854-
login: string;
855-
};
856-
}[]
850+
nodes: PullRequestNumberData[]
857851
}
858852
} | null;
853+
rateLimit: RateLimit;
854+
}
855+
856+
export interface PullRequestNumberData {
857+
number: number;
858+
title: string;
859+
author: {
860+
login: string;
861+
};
859862
}
860863

861864
export interface MaxIssueResponse {

0 commit comments

Comments
 (0)