Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 391a648

Browse files
authored
build: add auto-approve (#116)
1 parent d63a836 commit 391a648

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77

88
# The yoshi-nodejs team is the default owner for nodejs repositories.
99
* @googleapis/yoshi-nodejs
10+
.github/auto-approve.yml @googleapis/github-automation

.github/auto-approve.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
rules:
2+
- author: "release-please[bot]"
3+
4+
# Title for PRs from yoshi-code-bot MUST start with `chore: release`.
5+
title: "^chore: release"
6+
7+
# (Optional) The only changed file paths in an incoming PR MUST end with `package.json` or
8+
# `CHANGELOG.md`. These are listed in regex. If this property
9+
# is omitted, auto-approve bot will allow PRs that match the author and title to merge, without
10+
# checking the file paths.
11+
changedFiles:
12+
- "package\\.json$"
13+
- "CHANGELOG\\.md$"
14+
15+
# (Optional) The max amount of files changed in a PR.
16+
maxFiles: 3

owlbot.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""This script is used to synthesize generated parts of this library."""
15+
import synthtool.languages.node as node
16+
17+
node.owlbot_main(templates_excludes=['.github/CODEOWNERS'])

0 commit comments

Comments
 (0)