From 14497db5b0ddd5c536e5ca6a070d9ad962796682 Mon Sep 17 00:00:00 2001 From: jeffin143 Date: Fri, 3 Apr 2020 22:49:05 +0530 Subject: [PATCH] feat: add webpack bot for documentation --- open-bot.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 open-bot.yaml diff --git a/open-bot.yaml b/open-bot.yaml new file mode 100644 index 0000000000..1613089c78 --- /dev/null +++ b/open-bot.yaml @@ -0,0 +1,41 @@ +bot: "webpack-bot" +rules: + # Add action actions box to each pull request + - filters: + pull_request: true + open: true + not: + comment: + matching: admin-actions + author: webpack-bot + actions: + comment: + identifier: admin-actions + message: |- + *For maintainers only:* + * [ ] This needs to be documented (issue in webpack/webpack.js.org will be filed when merged) + # When a pull request need to be documented, create an issue in webpack/webpack.js.org when merged + - filters: + pull_request: + merged: true + comment: + author: webpack-bot + matching: "\\* \\[x\\] " + not: + comment_1: + author: webpack-bot + matching: admin-action-document-executed + actions: + new_issue: + target: webpack/webpack.js.org + title: "Document webpack change: {{{pull_request.title}}}" + body: |- + + *A pull request by @{{pull_request.user.login}} was merged and maintainers requested a documentation change.* + See pull request: {{{pull_request.html_url}}} + --- + {{{pull_request.body}}} + comment: + identifier: admin-action-document-executed + message: |- + I've created an issue to document this in webpack/webpack.js.org.