/
configuration.ts
64 lines (63 loc) · 1.71 KB
/
configuration.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
54
55
56
57
58
59
60
61
62
63
64
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* YAML configuration accepted by sizeup
*/
export interface Configuration {
/**
* category that will be assigned to a pull request depending on its score
*
* @minItems 1
*/
categories?: {
/**
* human-friendly name of the category
*/
name: string;
/**
* A visual label that should be used to represent this category
*/
label?: {
/**
* name of the label that should be used to represent this category
*/
name: string;
/**
* describes the meaning of the label that will be used to represent this category
*/
description?: string;
/**
* preferred CSS hex color label that should be used to represent this category
*/
color?: string;
};
/**
* inclusive upper bound on the score that a pull request must have to be assigned this category
*/
lte?: number;
}[];
scoring?: {
/**
* an expression, written in prefix-notation, that describes how to combine features to produce a score
*/
formula: string;
/**
* named expression aliases, each of which can be used as shortand in a formula
*/
aliases?: {
[k: string]: string;
};
};
/**
* glob expressions matching file patterns that should be considered as tests during the scoring process
*/
testFilePatterns?: string[];
/**
* glob expressions matching file patterns that are ignored in the scoring process
*/
ignoredFilePatterns?: string[];
}