chore: Release script fixes
This commit is contained in:
parent
1605567bbf
commit
2448b35b62
|
@ -43,14 +43,14 @@ jobs:
|
||||||
core.info("AutoApprove: Found release PR " + pr.number);
|
core.info("AutoApprove: Found release PR " + pr.number);
|
||||||
if (process.env.ENABLE_AUTO_APPROVE) {
|
if (process.env.ENABLE_AUTO_APPROVE) {
|
||||||
core.info("ENABLE_AUTO_APPROVE is set; labeling and approving");
|
core.info("ENABLE_AUTO_APPROVE is set; labeling and approving");
|
||||||
await github.pulls.createReview({
|
github.pulls.createReview({
|
||||||
owner: 'googleapis',
|
owner: 'googleapis',
|
||||||
repo: 'google-api-ruby-client',
|
repo: 'google-api-ruby-client',
|
||||||
body: "AutoApprove: Rubber stamped release!",
|
body: "AutoApprove: Rubber stamped release!",
|
||||||
pull_number: pr.number,
|
pull_number: pr.number,
|
||||||
event: "APPROVE"
|
event: "APPROVE"
|
||||||
});
|
});
|
||||||
await github.issues.addLabels({
|
github.issues.addLabels({
|
||||||
owner: 'googleapis',
|
owner: 'googleapis',
|
||||||
repo: 'google-api-ruby-client',
|
repo: 'google-api-ruby-client',
|
||||||
issue_number: pr.number,
|
issue_number: pr.number,
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
core.info("ENABLE_AUTO_APPROVE is not set; labeling release only");
|
core.info("ENABLE_AUTO_APPROVE is not set; labeling release only");
|
||||||
await github.issues.addLabels({
|
github.issues.addLabels({
|
||||||
owner: 'googleapis',
|
owner: 'googleapis',
|
||||||
repo: 'google-api-ruby-client',
|
repo: 'google-api-ruby-client',
|
||||||
issue_number: pr.number,
|
issue_number: pr.number,
|
||||||
|
|
Loading…
Reference in New Issue