forked from wildfly/wildfly-github-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwildfly-bot-config-example.yml
36 lines (30 loc) · 2.43 KB
/
wildfly-bot-config-example.yml
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
wildfly:
projectKey: "WFCORE" # Abbreviation for project, used for title, commit check. By default, this setting is set to "WFLY"
rules: # List of objects with no mandatory fields. The rule is fired if at least one check is satisfied. The object is as follows
- id: id-1 # Each rule should have unique id
title: "resteasy" # String looked-up in the title of the Pull Request
notify: # List of users to notify with a `/cc` comment
- random-person
- random-person-2
- id: id-2
body: "hibernate" # String looked-up in the body of the Pull Request
notify: [ random-person ]
- id: id-3
titleBody: "health" # String looked-up either in the title, the body or both
directories: [ src/main/, src/test/org/acme/resources/* ] # List of directories. Matches at least one file found changed by the Pull Request
notify: [ another-random-person ]
format: # Validation check for a correct format of the Pull Request
title: # Enabled by default. You have to disable explicitly.
enabled: false # If check enabled. By default, this setting is set true
message: "Wrong content of the title" # Override default message. Message is display if check does not succeed
description:
regexes: # List of objects, where the object is as follows:
- pattern: "JIRA:\\s+https://issues.redhat.com/browse/WFLY-\\d+|https://issues.redhat.com/browse/WFLY-\\d+" # Regex pattern must be matched by the title
message: "The PR description must contain a link to the JIRA issue" # Message to display if check does not succeed
message: "The PR description is not correct" # Default message to display if a object is missing message field
commit: # Enabled by default. You have to disable explicitly.
enabled: true # If check enabled. By default, this setting is set true
message: "Wrong commit message!" # Override default message. Message is display if check does not succeed
emails: # List of email addresses, which will receive updates from this app