diff --git a/.github/workflows/pairing-or-review.yml b/.github/workflows/pairing-or-review.yml new file mode 100644 index 0000000..5635aec --- /dev/null +++ b/.github/workflows/pairing-or-review.yml @@ -0,0 +1,24 @@ +name: Pairing or Review + +# Thin caller: the gate logic lives in cosmos-audiences and is referenced at +# @main so it never has to be duplicated here. The reusable workflow posts the +# "pairing-or-review" commit status on this PR's head SHA (the github context +# always belongs to the caller). Mark that status as a required check. + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + pull_request_review: + types: [submitted, dismissed] + +concurrency: + group: pairing-or-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + gate: + permissions: + contents: read + pull-requests: write + statuses: write + uses: AudienseCo/cosmos-audiences/.github/workflows/pairing-or-review-reusable.yml@main