diff --git a/src/github.ts b/src/github.ts index 07035fd04..d71ac74c5 100644 --- a/src/github.ts +++ b/src/github.ts @@ -73,12 +73,17 @@ export interface GitHubOptions { type CommitFilter = (commit: Commit) => boolean; -interface GraphQLCommitAuthor { - name?: string; - email?: string; - user?: { - login: string; - } | null; +interface GitHubCreateOptions { + owner: string; + repo: string; + defaultBranch?: string; + apiUrl?: string; + graphqlUrl?: string; + octokitAPIs?: OctokitAPIs; + token?: string; + logger?: Logger; + proxy?: ProxyOption; + fetch?: unknown; } interface GraphQLCommit { @@ -434,7 +439,7 @@ export class GitHub implements Scm { } )) { // Paginate plugin doesn't have types for listing files on a commit - const data = resp.data as any as {files: {filename: string}[]}; + const data = resp.data as unknown as {files: {filename: string}[]}; for (const f of data.files || []) { if (f.filename) { files.push(f.filename); diff --git a/src/updaters/generic-yaml.ts b/src/updaters/generic-yaml.ts index 6fe99da9d..d55cc07b4 100644 --- a/src/updaters/generic-yaml.ts +++ b/src/updaters/generic-yaml.ts @@ -58,7 +58,7 @@ export class GenericYaml implements Updater { JSONPath({ resultType: 'all', path: this.jsonpath, - json: data as any, + json: data as object, callback: (payload, _payloadType, _fullPayload) => { if (typeof payload.value !== 'string') { logger.warn(`No string in ${this.jsonpath}. Skipping.`);