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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
export const SET_STATE = 'qualityGates/SET_STATE';
export function setState (nextState) {
return {
type: SET_STATE,
nextState
};
}
export const ADD = 'qualityGates/ADD';
export function addQualityGate (qualityGate) {
return {
type: ADD,
qualityGate
};
}
export const DELETE = 'qualityGates/DELETE';
export function deleteQualityGate (qualityGate) {
return {
type: DELETE,
qualityGate
};
}
export const SHOW = 'qualityGates/SHOW';
export function showQualityGate (qualityGate) {
return {
type: SHOW,
qualityGate
};
}
export const RENAME = 'qualityGates/RENAME';
export function renameQualityGate (qualityGate, newName) {
return {
type: RENAME,
qualityGate,
newName
};
}
export const COPY = 'qualityGates/COPY';
export function copyQualityGate (qualityGate) {
return {
type: COPY,
qualityGate
};
}
export const SET_AS_DEFAULT = 'SET_AS_DEFAULT';
export function setQualityGateAsDefault (qualityGate) {
return {
type: SET_AS_DEFAULT,
qualityGate
};
}
export const UNSET_AS_DEFAULT = 'qualityGates/UNSET_AS_DEFAULT';
export function unsetQualityGateAsDefault (qualityGate) {
return {
type: UNSET_AS_DEFAULT,
qualityGate
};
}
export const ADD_CONDITION = 'qualityGates/ADD_CONDITION';
export function addCondition (metric) {
return {
type: ADD_CONDITION,
metric
};
}
export const SAVE_CONDITION = 'qualityGates/SAVE_CONDITION';
export function saveCondition (oldCondition, newCondition) {
return {
type: SAVE_CONDITION,
oldCondition,
newCondition
};
}
export const DELETE_CONDITION = 'qualityGates/DELETE_CONDITION';
export function deleteCondition (condition) {
return {
type: DELETE_CONDITION,
condition
};
}
|