-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaction.yml
More file actions
72 lines (69 loc) · 2.76 KB
/
action.yml
File metadata and controls
72 lines (69 loc) · 2.76 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
name: Quality Monitor
description: Action that monitors the quality of projects and pull requests.
inputs:
config:
description: "Quality monitor JSON configuration (if not set, a default configuration will be used)"
required: false
quality-gates:
description: "Quality gates configuration as JSON (optional)"
required: false
checks-name:
description: "Name of the GitHub checks (if not set the default name 'Quality Monitor' will be used)"
required: false
title-metric:
description: "Metric to show in the GitHub check title (options: line, branch, instruction, mutation, etc., or none)"
required: false
pr-number:
description: "Pull request number (if not set, PR comments will be skipped)"
required: false
github-token:
description: "GitHub authentication token (GITHUB_TOKEN)"
required: false
default: ${{github.token}}
github-api-url:
description: "GitHub API URL (GITHUB_API_URL)"
required: false
default: ${{github.api_url}}
skip-annotations:
description: "Skip the creation of annotations (for warnings and missed coverage) if not empty"
required: false
log-comments:
description: "Log comment properties to the console (helps to debug comment creation issues)"
required: false
show-headers:
description: "Show headers for each subsection in the summary (if not set, headers are hidden)"
required: false
comments-strategy:
description: "How to handle subsequent comments (options: ADD, REMOVE, REPLACE)."
required: false
default: REMOVE
max-warning-annotations:
description: "Limit the number of warning annotations at specific lines. By default, all annotations are created."
required: false
max-coverage-annotations:
description: "Limit the number of coverage annotations at specific lines. By default, all annotations are created."
required: false
sha:
description: "Commit SHA to use for the quality check (if not set, GITHUB_SHA will be used)"
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/uhafner/quality-monitor:4.10.0'
env:
CONFIG: ${{ inputs.config }}
QUALITY_GATES: ${{ inputs.quality-gates }}
CHECKS_NAME: ${{ inputs.checks-name }}
PR_NUMBER: ${{ inputs.pr-number }}
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_API_URL: ${{ inputs.github-api-url }}
SKIP_ANNOTATIONS: ${{ inputs.skip-annotations }}
SHOW_HEADERS: ${{ inputs.show-headers }}
LOG_COMMENTS: ${{ inputs.log-comments }}
COMMENTS_STRATEGY: ${{ inputs.comments-strategy }}
MAX_WARNING_ANNOTATIONS: ${{ inputs.max-warning-annotations }}
MAX_COVERAGE_ANNOTATIONS: ${{ inputs.max-coverage-annotations }}
TITLE_METRIC: ${{ inputs.title-metric }}
SHA: ${{ inputs.sha }}
branding:
icon: check-square
color: green