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
19 changes: 12 additions & 7 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
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,
Comment thread
itwaasyou marked this conversation as resolved.
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