File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed
Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2022 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+
15+ # https://github.com/googleapis/repo-automation-bots/tree/main/packages/sync-repo-settings
16+
17+ rebaseMergeAllowed : true
18+ squashMergeAllowed : true
19+ mergeCommitAllowed : false
20+ deleteBranchOnMerge : true
21+ branchProtectionRules :
22+ - pattern : main
23+ isAdminEnforced : false
24+ requiresStrictStatusChecks : false
25+ requiredStatusCheckContexts :
26+ - ' cla/google'
27+ - ' test'
28+ - ' snippet-bot check'
29+ - ' header-check'
30+ requiredApprovingReviewCount : 1
31+ requiresCodeOwnerReviews : true
32+ - pattern : master
33+ isAdminEnforced : false
34+ requiresStrictStatusChecks : false
35+ requiredStatusCheckContexts :
36+ - ' cla/google'
37+ - ' test'
38+ - ' snippet-bot-check'
39+ - ' header-check'
40+ requiredApprovingReviewCount : 1
41+ requiresCodeOwnerReviews : true
42+ permissionRules :
43+ - team : admin
44+ permission : admin
Original file line number Diff line number Diff line change 1+ # Copyright 2022 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+
15+ name : Dependabot
16+ on : pull_request
17+
18+ permissions :
19+ contents : write
20+
21+ jobs :
22+ dependabot :
23+ runs-on : ubuntu-latest
24+ if : ${{ github.actor == 'dependabot[bot]' }}
25+ env :
26+ PR_URL : ${{github.event.pull_request.html_url}}
27+ GITHUB_TOKEN : ${{secrets.SYNCED_GITHUB_TOKEN_REPO}}
28+ steps :
29+ - name : approve
30+ run : gh pr review --comment -b "Automatically approved since dependabot is [configured](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels) with label `automatic`."
31+ if : ${{ github.event.label.name == 'automatic' }}
32+ - name : approve-instructions
33+ run : echo "configure dependabot with label 'automatic' to have it automatically approved and merged. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels"
34+ if : ${{ github.event.label.name != 'automatic' }}
35+ - name : merge
36+ run : gh pr merge --auto --squash --delete-branch "$PR_URL"
You can’t perform that action at this time.
0 commit comments