diff --git a/.github/workflows/probe-review-dismissal.yaml b/.github/workflows/probe-review-dismissal.yaml new file mode 100644 index 0000000..456218f --- /dev/null +++ b/.github/workflows/probe-review-dismissal.yaml @@ -0,0 +1,63 @@ +# TEMPORARY probe. Not for merge — deleted with its branch once it has run. +# Answers three questions about what GITHUB_TOKEN may do to reviews on a PR +# targeting a PROTECTED branch, which is the case every connector repo is in: +# 1. can github-actions[bot] submit REQUEST_CHANGES? (known yes; baseline) +# 2. can it dismiss a CHANGES_REQUESTED it authored? (the auto-dismiss option) +# 3. can it submit APPROVE? (what judge mode needs) +name: probe-review-dismissal +on: + pull_request: + types: [opened, synchronize] +permissions: + contents: read + pull-requests: write +jobs: + probe: + if: startsWith(github.head_ref, 'felipe/probe-review-dismissal') + runs-on: ubuntu-latest + steps: + - name: Probe review verbs + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR: ${{ github.event.pull_request.number }} + REPO: ${{ github.repository }} + SHA: ${{ github.event.pull_request.head.sha }} + shell: bash + run: | + set +e + probe() { # probe