Skip to content

Enable write-only support for secret_data to google_secret_manager_regional_secret_version #101036

Enable write-only support for secret_data to google_secret_manager_regional_secret_version

Enable write-only support for secret_data to google_secret_manager_regional_secret_version #101036

name: request-reviewer
permissions: read-all
on:
pull_request_target:
types:
- opened
- ready_for_review
- reopened
- synchronize
issue_comment:
types:
- created
jobs:
request-review:
if: (github.event.action == 'created' && github.event.issue.state == 'open' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.state == 'open' && github.event.pull_request.draft == false )
runs-on: ubuntu-22.04
permissions:
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
with:
ref: main
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.26'
cache-dependency-path: |
.ci/magician/go.mod
- name: Build magician
run: |
cd .ci/magician
go build .
- name: Request reviewer
if: ${{ (github.event.action == 'created' && github.event.issue.user.login != 'copybara-service' && github.event.issue.user.login != 'modular-apprentice') || (github.event.action != 'created' && github.event.pull_request.user.login != 'copybara-service' && github.event.pull_request.user.login != 'modular-apprentice') }}
run: .ci/magician/magician request-reviewer ${{ github.event.pull_request.number || github.event.issue.number }}
- name: Request reviewer (copybara)
if: ${{ github.event.issue.user.login == 'copybara-service' || github.event.pull_request.user.login == 'copybara-service' }}
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh pr edit ${{ github.event.pull_request.number || github.event.issue.number }} --add-reviewer "@melinath"
- name: Request reviewer (modular-apprentice)
if: ${{ github.event.issue.user.login == 'modular-apprentice' || github.event.pull_request.user.login == 'modular-apprentice' }}
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh pr edit ${{ github.event.pull_request.number || github.event.issue.number }} --add-reviewer "ScottSuarez,slevenick"