@@ -3,7 +3,7 @@ import path from "node:path";
3
3
4
4
// Import Third-party Dependencies
5
5
import * as httpie from "@myunisoft/httpie" ;
6
- import * as Octokit from "@octokit/types" ;
6
+ import type { Endpoints } from "@octokit/types" ;
7
7
import * as Dashlog from "@dashlog/fetch-github-repositories" ;
8
8
import { packument } from "@nodesecure/npm-registry-sdk" ;
9
9
import type { PackageJSON } from "@nodesecure/npm-types" ;
@@ -54,7 +54,7 @@ export interface DashlogRepository<PluginsGeneric extends object = any> {
54
54
export default class Repository {
55
55
#org: Github ;
56
56
#repository: Dashlog . Repository ;
57
- #commits: Octokit . Endpoints [ "GET /repos/{owner}/{repo}/commits" ] [ "response" ] [ "data" ] ;
57
+ #commits: Endpoints [ "GET /repos/{owner}/{repo}/commits" ] [ "response" ] [ "data" ] ;
58
58
59
59
constructor ( org : Github , repository : Dashlog . Repository ) {
60
60
this . #org = org ;
@@ -69,10 +69,10 @@ export default class Repository {
69
69
const pull = pulls_url . slice ( 0 , pulls_url . length - kPullUrlPostfixLen ) ;
70
70
const issue = issues_url . slice ( 0 , issues_url . length - kPullUrlPostfixLen ) ;
71
71
72
- const { data : pulls } = await httpie . get < Octokit . Endpoints [ "GET /repos/{owner}/{repo}/pulls" ] [ "response" ] [ "data" ] > (
72
+ const { data : pulls } = await httpie . get < Endpoints [ "GET /repos/{owner}/{repo}/pulls" ] [ "response" ] [ "data" ] > (
73
73
pull , { headers : this . #org. headers }
74
74
) ;
75
- const { data : issues } = await httpie . get < Octokit . Endpoints [ "GET /repos/{owner}/{repo}/issues" ] [ "response" ] [ "data" ] > (
75
+ const { data : issues } = await httpie . get < Endpoints [ "GET /repos/{owner}/{repo}/issues" ] [ "response" ] [ "data" ] > (
76
76
issue , { headers : this . #org. headers }
77
77
) ;
78
78
@@ -93,7 +93,7 @@ export default class Repository {
93
93
const url = new URL ( this . #repository. commits_url . slice ( 0 , this . #repository. commits_url . length - kCommitUrlPostfixLen ) ) ;
94
94
url . searchParams . set ( "per_page" , kMaxCommitFetch . toString ( ) ) ;
95
95
96
- const { data : commits } = await httpie . get < Octokit . Endpoints [ "GET /repos/{owner}/{repo}/commits" ] [ "response" ] [ "data" ] > (
96
+ const { data : commits } = await httpie . get < Endpoints [ "GET /repos/{owner}/{repo}/commits" ] [ "response" ] [ "data" ] > (
97
97
url , { headers : this . #org. headers }
98
98
) ;
99
99
this . #commits = commits ;
0 commit comments