-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfiguration.ts
More file actions
47 lines (42 loc) · 1.04 KB
/
configuration.ts
File metadata and controls
47 lines (42 loc) · 1.04 KB
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
/**
* A rule that determines who to mention when files match
*/
export interface MentionRule {
/** File patterns to match for the rule */
patterns: string[]
/** names of users or teams to mention (without the at sign) */
mentions: string[]
}
/**
* A set of configuration items for the comment posted by the bot
*/
export interface CommentConfiguration {
/**
* Handlebars template for the pull request comment to create.
*
* See the TemplateContext interface in template-types.ts for the variables
* you can use.
*/
template?: string
/**
* Comment content to print above matching rules table
*
* @deprecated Use the template property
*/
preamble?: string
/**
* Comment content to print below matching rules table
*
* @deprecated Use the template property
*/
epilogue?: string
}
/**
* Configuration for the GitHub Action
*/
export interface Configuration {
/** Rules for mentioning */
rules: MentionRule[]
/** Configuration for comment */
commentConfiguration?: CommentConfiguration
}