Skip to content

Commit 8107759

Browse files
ci: pull request template includes sample format (#1357) (#94)
Source-Link: googleapis/synthtool@e122cb0 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67
1 parent 0d4bf63 commit 8107759

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6
17-
16+
digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few
55
- [ ] Appropriate docs were updated (if necessary)
66

77
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).

.github/workflows/auto-release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
}
3838
3939
// only approve PRs with pom.xml and versions.txt changes
40-
const filesPromise = github.pulls.listFiles.endpoint({
40+
const filesPromise = github.rest.pulls.listFiles.endpoint({
4141
owner: context.repo.owner,
4242
repo: context.repo.repo,
4343
pull_number: context.payload.pull_request.number,
@@ -69,7 +69,7 @@ jobs:
6969
return;
7070
}
7171
72-
const promise = github.pulls.list.endpoint({
72+
const promise = github.rest.pulls.list.endpoint({
7373
owner: context.repo.owner,
7474
repo: context.repo.repo,
7575
state: 'open'
@@ -86,7 +86,7 @@ jobs:
8686
}
8787
8888
// approve release PR
89-
await github.pulls.createReview({
89+
await github.rest.pulls.createReview({
9090
owner: context.repo.owner,
9191
repo: context.repo.repo,
9292
body: 'Rubber stamped release!',
@@ -95,7 +95,7 @@ jobs:
9595
});
9696
9797
// attach kokoro:force-run and automerge labels
98-
await github.issues.addLabels({
98+
await github.rest.issues.addLabels({
9999
owner: context.repo.owner,
100100
repo: context.repo.repo,
101101
issue_number: context.payload.pull_request.number,

0 commit comments

Comments
 (0)