@@ -2,44 +2,34 @@ import type { Octokit } from 'octokit';
22
33import type { PullRequest } from './types.mts' ;
44
5- /** The part of the GraphQL search response the reminder reads. */
5+ /**
6+ * The part of the GraphQL search response the reminder reads.
7+ *
8+ * @property search - The search result.
9+ * @property search.pageInfo - Tells whether another page follows and where it starts.
10+ * @property search.pageInfo.hasNextPage - Whether more results remain after this page.
11+ * @property search.pageInfo.endCursor - The cursor to pass to get the next page.
12+ * @property search.nodes - The matching pull requests.
13+ * @property search.nodes.number - The pull request number.
14+ * @property search.nodes.title - The pull request title.
15+ * @property search.nodes.url - The link to the pull request.
16+ * @property search.nodes.reviewRequests - The reviewers still requested.
17+ * @property search.nodes.commits - The latest commit, which holds the checks state.
18+ */
619type SearchResult = {
720 search : {
8- /** Tells whether another page follows and where it starts. */
9- pageInfo : {
10- /** Whether more results remain after this page. */
11- hasNextPage : boolean ;
12- /** The cursor to pass to get the next page. */
13- endCursor : string | null ;
14- } ;
15- /** The matching pull requests. */
21+ pageInfo : { hasNextPage : boolean ; endCursor : string | null } ;
1622 nodes : {
17- /** The pull request number. */
1823 number : number ;
19- /** The pull request title. */
2024 title : string ;
21- /** The link to the pull request. */
2225 url : string ;
23- /** The reviewers still requested. */
2426 reviewRequests : {
2527 nodes : {
26- /** The requested user or team, `null` when it can't be read. */
27- requestedReviewer : {
28- /** The kind of reviewer, such as `Team` or `User`. */
29- __typename : string ;
30- /** The team slug, only set for a team. */
31- slug ?: string ;
32- } | null ;
28+ requestedReviewer : { __typename : string ; slug ?: string } | null ;
3329 } [ ] ;
3430 } ;
35- /** The latest commit, which holds the checks state. */
3631 commits : {
37- nodes : {
38- commit : {
39- /** The combined state of the checks, `null` when there are none. */
40- statusCheckRollup : { state : string } | null ;
41- } ;
42- } [ ] ;
32+ nodes : { commit : { statusCheckRollup : { state : string } | null } } [ ] ;
4333 } ;
4434 } [ ] ;
4535 } ;
0 commit comments