8000 chore: add HW repo templates (#2884) · googleapis/sdk-platform-java@d567453 · GitHub
[go: up one dir, main page]

Skip to content

Commit d567453

Browse files
chore: add HW repo templates (#2884)
In this PR we add the `.github` and `.kokoro` folders to `library_generation/owlbot/templates/java_library` in order to enable the hermetic build workflows in HW libraries. The templates come from googleapis/synthtool@dae1282 **The hermetic build templates will come in a separate PR**
1 parent 74f20a2 commit d567453

22 files changed

+561
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Code owners file.
2+
# This file controls who is tagged for review for any given pull request.
3+
4+
# For syntax help see:
5+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
6+
{% if 'codeowner_team' in metadata['repo'] %}
7+
# The {{ metadata['repo']['codeowner_team'] }} is the default owner for changes in this repo
8+
* @googleapis/yoshi-java {{ metadata['repo']['codeowner_team'] }}
9+
{% if 'library_type' in metadata['repo'] and metadata['repo']['library_type'] != 'GAPIC_AUTO' %}
10+
# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner
11+
**/*.java {{ metadata['repo']['codeowner_team'] }}
12+
{% endif %}
13+
{% else %}
14+
* @googleapis/yoshi-java
15+
{% endif %}
16+
# The java-samples-reviewers team is the default owner for samples changes
17+
samples/**/*.java @googleapis/java-samples-reviewers
18+
19+
# Generated snippets should not be owned by samples reviewers
20+
samples/snippets/generated/ @googleapis/yoshi-java
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
{% if migrated_split_repo %}
7+
:bus: This library has moved to
8+
[google-cloud-java/{{ metadata['repo']['repo_short'] }}](
9+
https://github.com/googleapis/google-cloud-java/tree/main/{{ metadata['repo']['repo_short'] }}).
10+
This repository will be archived in the future.
11+
{% endif %}
12+
Thanks for stopping by to let us know something could be better!
13+
14+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
15+
16+
Please run down the following list and make sure you've tried the usual "quick fixes":
17+
18+
- Search the issues already opened: https://github.com/googleapis/{{metadata['repo']['repo_short']}}/issues
19+
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform
20+
21+
If you are still having issues, please include as much information as possible:
22+
23+
#### Environment details
24+
25+
1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
26+
General, Core, and Other are also allowed as types
27+
2. OS type and version:
28+
3. Java version:
29+
4. {{metadata['repo']['name']}} version(s):
30+
31+
#### Steps to reproduce
32+
33+
1. ?
34+
2. ?
35+
36+
#### Code example
37+
38+
```java
39+
// example
40+
```
41+
42+
#### Stack trace
43+
```
44+
Any relevant stacktrace here.
45+
```
46+
47+
#### External references such as API reference guides
48+
49+
- ?
50+
51+
#### Any additional information below
52+
53+
54+
Following these steps guarantees the quickest resolution possible.
55+
56+
Thanks!
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this library
4+
5+
---
6+
{% if migrated_split_repo %}
7+
:bus: This library has moved to
8+
[google-cloud-java/{{ metadata['repo']['repo_short'] }}](
9+
https://github.com/googleapis/google-cloud-java/tree/main/{{ metadata['repo']['repo_short'] }}).
10+
This repository will be archived in the future.
11+
{% endif %}
12+
Thanks for stopping by to let us know something could be better!
13+
14+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
15+
16+
**Is your feature request related to a problem? Please describe.**
17+
What the problem is. Example: I'm always frustrated when [...]
18+
19+
**Describe the solution you'd like**
20+
What you want to happen.
21+
22+
**Describe alternatives you've considered**
23+
Any alternative solutions or features you've considered.
24+
25+
**Additional context**
26+
Any other context or screenshots about the feature request.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Support request
3+
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.
4+
5+
---
6+
7+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
2+
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/{{ metadata['repo']['repo'] }}/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
3+
- [ ] Ensure the tests and linter pass
4+
- [ ] Code coverage does not decrease (if any source code was changed)
5+
- [ ] Appropriate docs were updated (if necessary)
6+
7+
Fixes #<issue_number_goes_here> ☕️
8+
9+
If you write sample code, please follow the [samples format](
10+
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2021 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+
requestsize:
15+
enabled: true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configuration for the Blunderbuss GitHub app. For more info see
2+
# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss
3+
assign_prs_by:
4+
- labels:
5+
- samples
6+
to:
7+
- googleapis/java-samples-reviewers
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
# Disable version updates for Maven dependencies
8+
# we use renovate-bot as well as shared-dependencies BOM to update maven dependencies.
9+
ignore:
10+
- dependency-name: "*"
11+
- package-ecosystem: "pip"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
# Disable version updates for pip dependencies
16+
# If a security vulnerability comes in, we will be notified about
17+
# it via template in the synthtool repository.
18+
ignore:
19+
- dependency-name: "*"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
externalManifests:
2+
- type: json
3+
file: 'synth.metadata'
4+
jsonpath: '$.generatedFiles[*]'
5+
- type: json
6+
file: '.github/readme/synth.metadata/synth.metadata'
7+
jsonpath: '$.generatedFiles[*]'
8+
ignoreAuthors:
9+
- 'renovate-bot'
10+
- 'yoshi-automation'
11+
- 'release-please[bot]'
12+
- 'gcf-owl-bot[bot]'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bumpMinorPreMajor: true
2+
handleGHRelease: true
3+
releaseType: java-yoshi

0 commit comments

Comments
 (0)
0