diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index f2de19f..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,8 +0,0 @@ -# Universal Commerce Protocol (UCP) Codeowners - -# Default for all files. -* @Universal-Commerce-Protocol/devops-maintainers @Universal-Commerce-Protocol/maintainers @Universal-Commerce-Protocol/tech-council @Universal-Commerce-Protocol/governance-council - -# Governance -/LICENSE @Universal-Commerce-Protocol/governance-council -/.github/CODEOWNERS @Universal-Commerce-Protocol/governance-council diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml new file mode 100644 index 0000000..9aedeb8 --- /dev/null +++ b/.github/workflows/governance.yml @@ -0,0 +1,35 @@ +--- +name: PR Governance + +on: + pull_request_target: + types: [ + opened, + synchronize, + reopened, + ready_for_review, + review_requested, + review_request_removed, + assigned, + unassigned + ] + workflow_run: + workflows: ["PR Review Listener"] + types: [completed] + +jobs: + governance: + name: Reviews + permissions: + statuses: write + contents: read + pull-requests: read + # Use the reusable workflow defined in the central governance repository + # zizmor: ignore[ref-confusion] + uses: Universal-Commerce-Protocol/.github/.github/workflows/reusable-governance.yml@main + with: + pr-number: ${{ github.event.pull_request.number }} + commit-sha: ${{ github.event.pull_request.head.sha || github.event.workflow_run.head_sha }} + secrets: + # Required: An org-level Read token to read team memberships + ORG_READ_TOKEN: ${{ secrets.ORG_READ_TOKEN }} diff --git a/.github/workflows/pr-review-listener.yml b/.github/workflows/pr-review-listener.yml new file mode 100644 index 0000000..641e7a9 --- /dev/null +++ b/.github/workflows/pr-review-listener.yml @@ -0,0 +1,12 @@ +name: PR Review Listener +on: + pull_request_review: + types: [submitted, dismissed] + +jobs: + signal: + runs-on: ubuntu-latest + steps: + - name: Signal success + run: | + echo "PR ${{ github.event.pull_request.number }} review state changed."