@dxdeveloperexperience/hygie
Version:
Hygie is an easy-to-use Open-Source REST API allowing you to interact with GIT events. This NestJS API expose a set of customizable rules to automate your project's life cycle.
24 lines • 636 B
Plain Text
--- # Rules config file
options:
executeAllRules: false
enableGroups: false
enableRules: true
allRuleResultInOne: false
rules:
- name: checkPullRequests
options:
state: open
notUpdatedSinceXDays: 7
onSuccess:
- callback: LoggerRunnable
args:
type: warn
message: '{{data.pullRequest.number.length}} deserted Pull Request(s) founded. They will be closed. '
- callback: UpdatePullRequestRunnable
args:
state: close
onError:
- callback: LoggerRunnable
args:
type: info
message: 'No deserted Pull Request founded.'