-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.config.yaml
114 lines (95 loc) · 3.46 KB
/
example.config.yaml
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
109
110
111
112
113
114
# yaml-language-server: $schema=https://raw.githubusercontent.com/myk-org/github-webhook-server/refs/heads/main/webhook_server_container/config/schema.yaml
log-level: INFO # Set global log level, change take effect immediately without server restart
log-file: webhook-server.log # Set global log file, change take effect immediately without server restart
github-app-id: 123456 # GitHub app id
github-tokens:
- <GITHIB TOKEN1>
- <GITHIB TOKEN2>
webhook_ip: <HTTP://IP OR URL:PORT>
docker: # Used to pull images from docker.io
username: <username>
password: <password>
default-status-checks:
- "WIP"
- "dpulls"
- "can-be-merged"
auto-verified-and-merged-users:
- "renovate[bot]"
- "pre-commit-ci[bot]"
jira:
server: <JIRA URL>
project: <PROJECT KEY>
token: <JIRA TOKEN>
user-mapping:
<GITHUB USER>: <JIRA USER> # if github user is not the same as jira
branch_protection:
strict: True
require_code_owner_reviews: True
dismiss_stale_reviews: False
required_approving_review_count: 1
required_linear_history: True
required_conversation_resolution: True
repositories:
my-repository:
name: my-org/my-repository
log-level: DEBUG # Override global log-level for repository
log-file: my-repository.log # Override global log-file for repository
slack_webhook_url: <Slack webhook url> # Send notification to slack on several operations
verified_job: true
pypi:
token: <PYPI TOKEN>
events: # To listen to all events do not send events
- push
- pull_request
- issue_comment
- check_run
- pull_request_review
tox:
main: all # Run all tests in tox.ini when pull request parent branch is main
dev: testenv1,testenv2 # Run testenv1 and testenv2 tests in tox.ini when pull request parent branch is dev
pre-commit: true # Run pre-commit check
protected-branches:
dev: []
main: # set [] in order to set all defaults run included
include-runs:
- "pre-commit.ci - pr"
- "WIP"
exclude-runs:
- "SonarCloud Code Analysis"
container:
username: <registry username>
password: <registry_password>
repository: <registry_repository_full_path>
tag: <image_tag>
release: true # Push image to registry on new release with release as the tag
build-args: # build args to send to podman build command
- my-build-arg1=1
- my-build-arg2=2
args: # args to send to podman build command
- --format docker
auto-verified-and-merged-users: # override auto verified users per repository
- "my[bot]"
github-tokens: # override GitHub tokens per repository
- <GITHUB TOKEN1>
- <GITHUB TOKEN2>
can-be-merged-required-labels: # check for extra labels to set PR as can be merged
- my-label1
- my-label2
jira-tracking: true
jira: # override Jira global settings
server: <JIRA URL>
project: <PROJECT KEY>
token: <JIRA TOKEN>
epic: <EPIC KEY> # Optional
user-mapping:
<GITHUB USER>: <JIRA USER> # if github user is not the same as jira
conventional-title: "ci,docs,feat,fix,refactor,test,release" # Check PR title start with any of these words + :
branch_protection:
strict: True
require_code_owner_reviews: True
dismiss_stale_reviews: False
required_approving_review_count: 1
required_linear_history: True
required_conversation_resolution: True
set-auto-merge-prs:
- main