From 5cae043787729a908ed0cab28ca27baf9acee3c4 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Wed, 9 Jun 2021 19:36:23 -0500 Subject: [PATCH] build: add auto-approve to Node libraries (#1100) * build: add auto-approve to Node libraries Co-authored-by: Benjamin E. Coe --- synthtool/gcp/templates/node_library/.github/CODEOWNERS | 3 +++ .../gcp/templates/node_library/.github/auto-approve.yml | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 synthtool/gcp/templates/node_library/.github/auto-approve.yml diff --git a/synthtool/gcp/templates/node_library/.github/CODEOWNERS b/synthtool/gcp/templates/node_library/.github/CODEOWNERS index 3d82ad7fe..20d3e6db0 100644 --- a/synthtool/gcp/templates/node_library/.github/CODEOWNERS +++ b/synthtool/gcp/templates/node_library/.github/CODEOWNERS @@ -11,3 +11,6 @@ {%- else %} * @googleapis/yoshi-nodejs {%- endif %} + +# The github automation team is the default owner for the auto-approve file. +.github/auto-approve.yml @googleapis/github-automation diff --git a/synthtool/gcp/templates/node_library/.github/auto-approve.yml b/synthtool/gcp/templates/node_library/.github/auto-approve.yml new file mode 100644 index 000000000..903697974 --- /dev/null +++ b/synthtool/gcp/templates/node_library/.github/auto-approve.yml @@ -0,0 +1,7 @@ +rules: +- author: "release-please[bot]" + title: "^chore: release" + changedFiles: + - "package\\.json$" + - "CHANGELOG\\.md$" + maxFiles: 3 \ No newline at end of file