This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove
features
from Endpoint. add service_root_url to Docum…
…entation add UNIMPLEMENTED, PRELAUNCH LaunchStage values add monitoried_resource_types to MetricDescriptor (#35) BREAKING CHANGE: `features` removed from Endpoint * chore: fix glob for allowed proto interface changes * chore: regenerate common templates * chore: allow features field removal Co-authored-by: Jeff Ching <chingor@google.com>
- Loading branch information
1 parent
3dc5426
commit cdd4e56
Showing
133 changed files
with
13,457 additions
and
1,216 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
on: | ||
pull_request: | ||
name: auto-release | ||
jobs: | ||
approve: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v3.0.0 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
debug: true | ||
script: | | ||
// only approve PRs from release-please[bot] | ||
if (context.payload.pull_request.user.login !== "release-please[bot]") { | ||
return; | ||
} | ||
// only approve PRs like "chore: release <release version>" | ||
if ( !context.payload.pull_request.title.startsWith("chore: release") ) { | ||
return; | ||
} | ||
// trigger auto-release when | ||
// 1) it is a SNAPSHOT release (auto-generated post regular release) | ||
// 2) there are dependency updates only | ||
// 3) there are no open dependency update PRs in this repo (to avoid multiple releases) | ||
if ( | ||
context.payload.pull_request.body.includes("Fix") || | ||
context.payload.pull_request.body.includes("Build") || | ||
context.payload.pull_request.body.includes("Documentation") || | ||
context.payload.pull_request.body.includes("BREAKING CHANGES") || | ||
context.payload.pull_request.body.includes("Features") | ||
) { | ||
console.log( "Not auto-releasing since it is not a dependency-update-only release." ); | ||
return; | ||
} | ||
const promise = github.pulls.list.endpoint({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
state: 'open' | ||
}); | ||
const open_pulls = await github.paginate(promise) | ||
if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { | ||
for ( const pull of open_pulls ) { | ||
if ( pull.title.startsWith("deps: update dependency") ) { | ||
console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); | ||
return; | ||
} | ||
} | ||
} | ||
// approve release PR | ||
await github.pulls.createReview({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Rubber stamped release!', | ||
pull_number: context.payload.pull_request.number, | ||
event: 'APPROVE' | ||
}); | ||
// attach kokoro:force-run and automerge labels | ||
await github.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.pull_request.number, | ||
labels: ['kokoro:force-run', 'automerge'] | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.