ClickHouse/.potato.yml
Sergei Bocharov bd0c5e9fcd Potato goes to ClickHouse (#7333)
* Potato goes to ClickHouse

* Added comments

* Fix YAML

* Fix YAML

* Fix label
2019-10-20 12:46:13 +08:00

26 lines
1.3 KiB
YAML

# This is the configuration file with settings for Potato. Potato is an internal Yandex technology.
# Potato allows us to automate routine actions and sync internal [Yandex.Tracker](https://yandex.com/tracker/) and Github.
# Now for all PRs where documentation is needed, just put a label 'pr-feature' and we will plan PR to documentation sprints.
# The project name.
name: clickhouse
# Object handlers defines which handlers we use.
handlers:
# The handler for creating an Yandex.Tracker issue.
- name: issue-create
params:
triggers:
# The trigger for creating the Yandex.Tracker issue. When the specified event occurs, it transfers PR data to Yandex.Tracker.
github:pullRequest:labeled:
data:
# The Yandex.Tracker queue to create the issue in. Each issue in Tracker belongs to one of the project queues.
queue: CLICKHOUSEDOCS
# The issue title.
summary: '[Potato] Задача для Pull Request {{pullRequest.number}}'
# The issue description.
description: >
{{pullRequest.description}}
Ссылка на Pull Request: {{pullRequest.webUrl}}
# The condition for creating the Yandex.Tracker issue.
condition: eventPayload.labels.filter(label => ['pr-feature'].includes(label.name)).length