Skip to content

Commit 4d08f29

Browse files
lesvkurtisvg
andauthored
chore: auto-approve.yml (GoogleCloudPlatform#5645)
* chore: add an owner to auto-approve * chore: add auto-approve.yml * CHORE: sofia will review auto-approve Until this is group is mirrored to GCP * Update .github/auto-approve.yml Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> * Update .github/auto-approve.yml Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> * chore: add gradle.build & uncomment maxFiles * chore: Let's see if a broken check will pass * chore: apparently I must comment maxfiles out * chore: kurtis's fix isn't accepted by the checker reverting to @sofisl 's * chore: don't add gradle.build Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
1 parent 2bae6ae commit 4d08f29

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
/iot/ @gcseh @GoogleCloudPlatform/api-iot @GoogleCloudPlatform/java-samples-reviewers
1313
/logging/ @GoogleCloudPlatform/observability-devx @GoogleCloudPlatform/java-samples-reviewers
1414
/storage/**/*.java @GoogleCloudPlatform/cloud-storage-dpes @GoogleCloudPlatform/java-samples-reviewers
15+
.github/auto-approve.yml @googleapis/github-automation/ @sofisl

.github/auto-approve.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
rules:
2+
# Currently we allow a small subset of valid types of PRs to get merged. The following three
3+
# rules can be used altogether or any subset. The bot confirms that incoming pull requests'
4+
# author match the authors below, and subsequently, the allowed title of the pull requests.
5+
# `changedFiles` are allowed patterns for the file paths that are changed in a PR, and
6+
# `maxFiles` are the maximum amount of files that are allowed to be changed in that PR. Neither
7+
# changedFiles nor maxFiles are required, but they will be enforced on a PR if they are set.
8+
# Each rule only has the allowed values listed below; there is no mixing of values between rules,
9+
# nor can any values be replaced. To understand the full set of rules for the JSON file, check out
10+
# src/valid-pr-schema.json
11+
12+
# Option 5: incoming PRs from renovate-bot
13+
- author: "renovate-bot"
14+
15+
# Title for PRs from renovate-bot MUST start with `fix(deps):` or `chore(deps)"`.
16+
title: "^(fix\\(deps\\)|chore\\(deps\\)):"
17+
18+
# (Optional) The only changed file paths in an incoming PR MUST end with `pom.xml`. These are listed in regex. If this property
19+
# is omitted, auto-approve bot will allow PRs that match the author and title to merge, without
20+
# checking the file paths.
21+
changedFiles:
22+
- "/pom\\.xml$"
23+
# - "/gradle\\.build$"
24+
25+
# (Optional) The max amount of files changed in a PR.
26+
# maxFiles:

0 commit comments

Comments
 (0)