Potato goes to ClickHouse (#7333)

* Potato goes to ClickHouse

* Added comments

* Fix YAML

* Fix YAML

* Fix label
This commit is contained in:
Sergei Bocharov 2019-10-20 07:46:13 +03:00 committed by Ivan Blinkov
parent a019e45093
commit bd0c5e9fcd

26
.potato.yml Normal file
View File

@ -0,0 +1,26 @@
# 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