mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-26 12:26:47 +00:00
Skip the "request review" workflows for PRs that are in draft to reduce noise / skip adding reviewers to PRs that are intentionally marked as not ready to review. Updates #cleanup Signed-off-by: Mario Minardi <mario@tailscale.com>
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: request-dataplane-review
|
|
|
|
on:
|
|
pull_request:
|
|
types: [ opened, synchronize, reopened, ready_for_review ]
|
|
paths:
|
|
- ".github/workflows/request-dataplane-review.yml"
|
|
- "**/*derp*"
|
|
- "**/derp*/**"
|
|
- "!**/depaware.txt"
|
|
|
|
jobs:
|
|
request-dataplane-review:
|
|
if: github.event.pull_request.draft == false
|
|
name: Request Dataplane Review
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: Get access token
|
|
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
|
|
id: generate-token
|
|
with:
|
|
# Get token for app: https://github.com/apps/change-visibility-bot
|
|
app-id: ${{ secrets.VISIBILITY_BOT_APP_ID }}
|
|
private-key: ${{ secrets.VISIBILITY_BOT_APP_PRIVATE_KEY }}
|
|
- name: Add reviewers
|
|
env:
|
|
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
|
|
url: ${{ github.event.pull_request.html_url }}
|
|
run: |
|
|
gh pr edit "$url" --add-reviewer tailscale/dataplane
|