forked from redhat-developer/rhdh-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-config.local.EXAMPLE.yaml
More file actions
103 lines (95 loc) · 2.75 KB
/
Copy pathapp-config.local.EXAMPLE.yaml
File metadata and controls
103 lines (95 loc) · 2.75 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
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
permission:
enabled: false
auth:
environment: development
providers:
github:
development:
clientId: ${GITHUB_CLIENT_ID}
clientSecret: ${GITHUB_CLIENT_SECRET}
signIn:
resolvers:
- resolver: usernameMatchingUserEntityName
catalog:
locations:
- type: file
target: ../../examples/all-scorecards-location.yaml
rules:
- allow: [Component]
- type: file
target: ../../examples/orgs/guest.yaml
rules:
- allow: [User, Group]
# TODO: Additional catalog entities for your user
# ToDo: uncomment this when Jira Proxy is needed
# proxy:
# '/jira/api':
# target: ${JIRA_URL}
# headers:
# Authorization: ${JIRA_TOKEN}
# Accept: 'application/json'
# Content-Type: 'application/json'
# X-Atlassian-Token: 'nocheck'
# User-Agent: 'MY-UA-STRING'
integrations:
github:
- host: github.com
token: ${GITHUB_TOKEN}
jira:
# ToDo: uncomment this when Jira Proxy is needed
# proxyPath: /jira/api
product: cloud
baseUrl: ${JIRA_URL}
token: ${JIRA_TOKEN}
# ToDo: uncomment this when Jira Data Center is needed
# product: datacenter
# baseUrl: ${JIRA_DATA_CENTER_URL}
# token: ${JIRA_DATA_CENTER_TOKEN}
# Optional Scorecard overrides (aggregationKPIs defaults are in app-config.yaml).
scorecard:
openPrsWeightedKpi:
title: GitHub Open PRs (weighted health)
type: weightedStatusScore
description: Weighted health score for open PRs by threshold status across your entities.
metricId: github.open_prs
options:
statusScores:
success: 100
warning: 3
error: 0
thresholds:
rules:
- key: success
expression: '>=80'
color: '#6bb300' # green
- key: warning
expression: '51-80'
color: 'rgb(224, 189, 108)' # light orange
- key: error
expression: '<51'
color: '#be1ec7' # purple
plugins:
jira:
open_issues:
schedule:
frequency: { days: 1 }
timeout: { minutes: 2 }
initialDelay: { minutes: 1 }
# Optional — uncomment to narrow which Jira issues are counted (otherwise all open issues match the provider rules).
# options:
# mandatoryFilter: type = Story
# customFilter: priority = High
github:
open_prs:
# Example threshold overrides; remove to use provider defaults.
thresholds:
rules:
- key: success
expression: '<=20'
color: 'success.main'
- key: warning
expression: '20-50'
color: '#FFFF00'
- key: error
expression: '>50'
color: 'rgb(255, 0, 0)'