File tree 1 file changed +4
-4
lines changed
synthtool/gcp/templates/java_library/.github/workflows
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 37
37
}
38
38
39
39
// 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({
41
41
owner: context.repo.owner,
42
42
repo: context.repo.repo,
43
43
pull_number: context.payload.pull_request.number,
69
69
return;
70
70
}
71
71
72
- const promise = github.pulls.list.endpoint({
72
+ const promise = github.rest. pulls.list.endpoint({
73
73
owner: context.repo.owner,
74
74
repo: context.repo.repo,
75
75
state: 'open'
86
86
}
87
87
88
88
// approve release PR
89
- await github.pulls.createReview({
89
+ await github.rest. pulls.createReview({
90
90
owner: context.repo.owner,
91
91
repo: context.repo.repo,
92
92
body: 'Rubber stamped release!',
95
95
});
96
96
97
97
// attach kokoro:force-run and automerge labels
98
- await github.issues.addLabels({
98
+ await github.rest. issues.addLabels({
99
99
owner: context.repo.owner,
100
100
repo: context.repo.repo,
101
101
issue_number: context.payload.pull_request.number,
You can’t perform that action at this time.
0 commit comments