Skip to content

Commit

Permalink
chore(deps): lock file maintenance (#3277)
Browse files Browse the repository at this point in the history
* chore(deps): lock file maintenance

* chore: update octokit types imports

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 17, 2020
1 parent d39aca7 commit a81ca24
Show file tree
Hide file tree
Showing 3 changed files with 429 additions and 378 deletions.
34 changes: 17 additions & 17 deletions packages/netlify-cms-backend-github/src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ import {
PreviewState,
FetchError,
} from 'netlify-cms-lib-util';
import {
UsersGetAuthenticatedResponse as GitHubUser,
ReposGetResponse as GitHubRepo,
ReposGetBranchResponse as GitHubBranch,
GitGetBlobResponse as GitHubBlob,
GitCreateTreeResponse as GitHubTree,
GitCreateTreeParamsTree,
GitCreateCommitResponse as GitHubCommit,
ReposCompareCommitsResponseCommitsItem as GitHubCompareCommit,
ReposCompareCommitsResponseFilesItem,
ReposCompareCommitsResponse as GitHubCompareResponse,
ReposCompareCommitsResponseBaseCommit as GitHubCompareBaseCommit,
GitCreateCommitResponseAuthor as GitHubAuthor,
GitCreateCommitResponseCommitter as GitHubCommiter,
ReposListStatusesForRefResponseItem,
} from '@octokit/rest';
import { Octokit } from '@octokit/rest';

type GitHubUser = Octokit.UsersGetAuthenticatedResponse;
type GitHubRepo = Octokit.ReposGetResponse;
type GitHubBranch = Octokit.ReposGetBranchResponse;
type GitHubBlob = Octokit.GitGetBlobResponse;
type GitHubTree = Octokit.GitCreateTreeResponse;
type GitCreateTreeParamsTree = Octokit.GitCreateTreeParamsTree;
type GitHubCommit = Octokit.GitCreateCommitResponse;
type GitHubCompareCommit = Octokit.ReposCompareCommitsResponseCommitsItem;
type ReposCompareCommitsResponseFilesItem = Octokit.ReposCompareCommitsResponseFilesItem;
type GitHubCompareResponse = Octokit.ReposCompareCommitsResponse;
type GitHubCompareBaseCommit = Octokit.ReposCompareCommitsResponseBaseCommit;
type GitHubAuthor = Octokit.GitCreateCommitResponseAuthor;
type GitHubCommitter = Octokit.GitCreateCommitResponseCommitter;
type ReposListStatusesForRefResponseItem = Octokit.ReposListStatusesForRefResponseItem;

const CURRENT_METADATA_VERSION = '1';

Expand Down Expand Up @@ -1223,7 +1223,7 @@ export default class API {
treeSha: string,
parents: string[],
author?: GitHubAuthor,
committer?: GitHubCommiter,
committer?: GitHubCommitter,
): Promise<GitHubCommit> {
return this.request(`${this.repoURL}/git/commits`, {
method: 'POST',
Expand Down
4 changes: 3 additions & 1 deletion packages/netlify-cms-backend-github/src/implementation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ import {
blobToFileObj,
} from 'netlify-cms-lib-util';
import AuthenticationPage from './AuthenticationPage';
import { UsersGetAuthenticatedResponse as GitHubUser } from '@octokit/rest';
import { Octokit } from '@octokit/rest';
import API, { Entry } from './API';
import GraphQLAPI from './GraphQLAPI';

type GitHubUser = Octokit.UsersGetAuthenticatedResponse;

const MAX_CONCURRENT_DOWNLOADS = 10;

export default class GitHub implements Implementation {
Expand Down

0 comments on commit a81ca24

Please sign in to comment.