Skip to content

Commit 87e1140

Browse files
authored
Merge pull request #25 from GoogleCloudPlatform/feat/maintenance
feat: adding maintenance items
2 parents d0fd486 + 91d8961 commit 87e1140

7 files changed

+150
-1
lines changed

.github/conventional-commit-lint.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2023 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+
enabled: true
16+
always_check_pr_title: true

.github/labeler.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2023 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+
# Labeler assigns GitHub labels to PRs based on changed files.
16+
17+
# component labels are used in release notes.
18+
'component: app':
19+
- 'app/*'
20+
- 'app/**/*'
21+
'component: assets':
22+
- 'assets/*'
23+
- 'assets/**/*'
24+
'component: build':
25+
- 'build/*'
26+
- 'build/**/*'
27+
'component: infra':
28+
- 'infra/*'
29+
- 'infra/**/*'

.github/pull_request_template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Description
2+
3+
Fixes #<ISSUE-NUMBER>
4+
5+
**Note:** Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
6+
7+
## Checklist
8+
- [ ] Added steps to reproduce the changes in this pull request
9+
- [ ] Added relevant testing in this pull request
10+
- [ ] Please **merge** this PR for me once it is approved.

.github/sync-repo-settings.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2023 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+
# .github/sync-repo-settings.yaml
16+
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/sync-repo-settings for app options.
17+
18+
rebaseMergeAllowed: true
19+
squashMergeAllowed: true
20+
mergeCommitAllowed: false
21+
deleteBranchOnMerge: true
22+
branchProtectionRules:
23+
- pattern: main
24+
isAdminEnforced: false
25+
requiresStrictStatusChecks: false
26+
requiredStatusCheckContexts:
27+
# .github/workflows/test.yml with a job called "test"
28+
- 'test'
29+
# .github/workflows/lint.yml with a job called "lint"
30+
- 'lint'
31+
# Google bots below
32+
- 'cla/google'
33+
- 'snippet-bot check'
34+
- 'header-check'
35+
- 'conventionalcommits.org'
36+
requiredApprovingReviewCount: 1
37+
requiresCodeOwnerReviews: true
38+
permissionRules:
39+
- team: workspace-devrel-dpe
40+
permission: admin

.github/workflows/auto-label.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright 2023 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: Auto Label
16+
on:
17+
pull_request_target:
18+
types: [ opened, reopened, synchronize, edited ]
19+
20+
# Add labels to Pull Requests
21+
permissions:
22+
issues: write
23+
pull-requests: write
24+
25+
jobs:
26+
conventional-release:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Conventional Release Labels
30+
uses: bcoe/conventional-release-labels@v1
31+
with:
32+
type_labels: '{"feat": "type: feature request", "fix": "type: bug", "breaking": "semver: major"}'
33+
34+
label-changes:
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: read
38+
pull-requests: write
39+
steps:
40+
- uses: actions/labeler@v4
41+
with:
42+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/CODEOWNERS renamed to CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# For syntax help see:
44
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
55

6-
* @GoogleCloudPlatform/torus-dpe
6+
* @GoogleCloudPlatform/developer-journey-app-approvers
7+
* @GoogleCloudPlatform/torus-dpe

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": [
3+
"config:base",
4+
":separateMajorReleases",
5+
":ignoreUnstable"
6+
],
7+
"schedule": [
8+
"every 3 months on the first day of the month"
9+
],
10+
"semanticCommits": "enabled"
11+
}

0 commit comments

Comments
 (0)