Skip to content

Merge suggest-reviewers into maintainer-approval as a single workflow #30

Merge suggest-reviewers into maintainer-approval as a single workflow

Merge suggest-reviewers into maintainer-approval as a single workflow #30

name: PR approval
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
pull_request_review:
types: [submitted, dismissed]
concurrency:
group: pr-approval-${{ github.event.pull_request.number }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
check:
runs-on:
group: databricks-deco-testing-runner-group
labels: ubuntu-latest-deco
if: ${{ !github.event.pull_request.draft }}
timeout-minutes: 5
permissions:
pull-requests: write
statuses: write
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.base.sha }}
persist-credentials: false
fetch-depth: 0
- name: Check approval and suggest reviewers
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
retries: 3
script: |-
const script = require('./.github/workflows/maintainer-approval.js');
await script({ context, github, core });