-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
revert.ts
53 lines (43 loc) · 1 KB
/
revert.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
49
50
51
52
53
/**
* @file Interfaces - Revert
* @module commitlint-config/interfaces/Revert
*/
import type { Scope, Type } from '#src/enums'
import type { LiteralUnion, Nullable } from '@flex-development/tutils'
/**
* Object representing data extracted from a reverted commit.
*
* @see https://docs.github.com/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls#commit-shas
*/
interface Revert {
[field: string]: Nullable<string>
/**
* Breaking change indicator.
*/
breaking: Nullable<'!'>
/**
* Reverted commit SHA.
*/
hash: string
/**
* Name of {@linkcode repository} owner.
*/
owner: Nullable<string>
/**
* Name of repository in reverted commit reference.
*/
repository: Nullable<string>
/**
* Commit scope.
*/
scope: Nullable<LiteralUnion<Scope, string>>
/**
* Commit type.
*/
type: Type.REVERT
/**
* User named in reverted commit reference.
*/
user: Nullable<string>
}
export type { Revert as default }