|
|
@ -25,7 +25,7 @@ export type gitState = { |
|
|
|
repositories: repository[] |
|
|
|
repositories: repository[] |
|
|
|
remoteBranches: remoteBranch[] |
|
|
|
remoteBranches: remoteBranch[] |
|
|
|
commitChanges: commitChange[] |
|
|
|
commitChanges: commitChange[] |
|
|
|
branchCommits: Record<string, ReadCommitResult[]> |
|
|
|
branchCommits: Record<string, pagedCommits[]> |
|
|
|
syncStatus: syncStatus, |
|
|
|
syncStatus: syncStatus, |
|
|
|
localCommitCount: number |
|
|
|
localCommitCount: number |
|
|
|
remoteCommitCount: number |
|
|
|
remoteCommitCount: number |
|
|
@ -35,6 +35,14 @@ export type gitState = { |
|
|
|
gitHubAccessToken: string |
|
|
|
gitHubAccessToken: string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type pagedCommits = { |
|
|
|
|
|
|
|
page: number, |
|
|
|
|
|
|
|
perPage: number, |
|
|
|
|
|
|
|
total: number, |
|
|
|
|
|
|
|
hasNextPage: boolean, |
|
|
|
|
|
|
|
commits: ReadCommitResult[] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export type loaderState = { |
|
|
|
export type loaderState = { |
|
|
|
branches: boolean |
|
|
|
branches: boolean |
|
|
|
remotes: boolean |
|
|
|
remotes: boolean |
|
|
@ -210,7 +218,7 @@ export interface setBranchCommitsAction { |
|
|
|
type: string, |
|
|
|
type: string, |
|
|
|
payload: { |
|
|
|
payload: { |
|
|
|
branch: branch, |
|
|
|
branch: branch, |
|
|
|
commits: ReadCommitResult[] |
|
|
|
commits: pagedCommits[] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|