-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.ts
48 lines (40 loc) · 928 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { CollectionOptions } from '@payloadcms/plugin-cloud-storage/types'
import type { Octokit } from 'octokit'
type OctokitOptions = ConstructorParameters<typeof Octokit>[0]
export interface GithubStorageOptions {
/**
* Which branch to upload/read files.
*
* Default: "main"
*/
branch?: string
/**
* Collection options to apply the GitHub adapter to.
*/
collections: Record<string, Omit<CollectionOptions, 'adapter'> | true>
/**
* Whether or not to enable the plugin.
*
* Default: true
*/
enabled?: boolean
/**
* Octokit client configuration.
*
* @see https://github.com/octokit/octokit.js
*/
options: OctokitOptions
/**
* The name of the repository owner (GitHub username or organization).
*/
owner: string
/**
* The repository name.
*/
repo: string
}
export interface GithubAuthor {
date?: string
email: string
name: string
}