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.