diff --git a/src/github/index.ts b/src/github/index.ts index 58c89520..6299d3dd 100644 --- a/src/github/index.ts +++ b/src/github/index.ts @@ -38,7 +38,7 @@ export interface RequestOptions { } export interface Result { - meta: { + headers: { status: string } } diff --git a/src/github/logging.ts b/src/github/logging.ts index 0248804e..9248721b 100644 --- a/src/github/logging.ts +++ b/src/github/logging.ts @@ -14,7 +14,7 @@ export function addLogging (client: GitHubAPI, logger: Logger) { }) client.hook.after('request', (result, options) => { const {method, url, headers, ...params} = options - const msg = `GitHub request: ${method} ${url} - ${result.meta.status}` + const msg = `GitHub request: ${method} ${url} - ${result.headers.status}` logger.debug({params}, msg) }) }