Files
archived-next-auth/scripts/release/types.ts
2022-02-13 19:03:32 +01:00

62 lines
1016 B
TypeScript

export interface Commit {
commit: CommitOrTree
tree: CommitOrTree
author: AuthorOrCommitter
committer: AuthorOrCommitter
subject: string
body: string
parsed: Parsed
}
export interface CommitOrTree {
long: string
short: string
}
export interface AuthorOrCommitter {
name: string
email: string
date: string
}
export interface Parsed {
type: string
scope?: string | null
subject: string
merge?: null
header: string
body?: null
footer?: null
notes?: null[] | null
references?: null[] | null
mentions?: null[] | null
revert?: null
raw: string
}
export interface Package {
name: string
srcDir: string
peerDependencies?: string[]
}
export interface BranchConfig {
prerelease: boolean
ghRelease: boolean
}
export interface PackageToRelease {
name: string
newVersion: string
oldVersion: string
commits: GroupedCommits
path: string
}
export interface GroupedCommits {
features: Commit[]
bugfixes: Commit[]
other: Commit[]
breaking: Commit[]
}