-
Notifications
You must be signed in to change notification settings - Fork 739
Display linked issue(s) from the PR Overview #5824 #6835
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
Changes from all commits
df87f4d
d817cc8
d171a17
eab2b35
827c847
a9d529c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -924,6 +924,7 @@ export async function parseGraphQLPullRequest( | |
| commentCount: graphQLPullRequest.comments.totalCount, | ||
| additions: graphQLPullRequest.additions, | ||
| deletions: graphQLPullRequest.deletions, | ||
| closingIssues: parseClosingIssuesReferences(graphQLPullRequest.closingIssuesReferences?.nodes), | ||
| }; | ||
|
Comment on lines
924
to
928
|
||
| pr.mergeCommitMeta = parseCommitMeta(graphQLPullRequest.baseRepository.mergeCommitTitle, graphQLPullRequest.baseRepository.mergeCommitMessage, pr); | ||
| pr.squashCommitMeta = parseCommitMeta(graphQLPullRequest.baseRepository.squashMergeCommitTitle, graphQLPullRequest.baseRepository.squashMergeCommitMessage, pr); | ||
|
|
@@ -1068,6 +1069,22 @@ function parseSuggestedReviewers( | |
| return ret.sort(loginComparator); | ||
| } | ||
|
|
||
| function parseClosingIssuesReferences( | ||
| closingIssuesReferences: Array<{ id: number, number: number, title: string, state: string, url: string }> | undefined | ||
| ): Array<{ id: number, number: number, title: string, state: GithubItemStateEnum, url: string }> { | ||
| if (!closingIssuesReferences) { | ||
| return []; | ||
| } | ||
|
|
||
| return closingIssuesReferences.map(issue => ({ | ||
| id: issue.id, | ||
| number: issue.number, | ||
| title: issue.title, | ||
| state: issue.state === 'OPEN' ? GithubItemStateEnum.Open : GithubItemStateEnum.Closed, | ||
| url: issue.url, | ||
| })); | ||
|
alexr00 marked this conversation as resolved.
|
||
| } | ||
|
|
||
| /** | ||
| * Used for case insensitive sort by login | ||
| */ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.