Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interface GitHubCreateOptions {
token?: string;
logger?: Logger;
proxy?: ProxyOption;
fetch?: any;
fetch?: unknown;
}

type CommitFilter = (commit: Commit) => boolean;
Expand Down Expand Up @@ -574,7 +574,7 @@ export class GitHub {
}
)) {
// 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);
Expand Down
2 changes: 1 addition & 1 deletion src/updaters/generic-yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down
Loading