Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/CODEOWNERS

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/governance.yml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 12 additions & 0 deletions .github/workflows/pr-review-listener.yml
Original file line number Diff line number Diff line change
@@ -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."
54 changes: 54 additions & 0 deletions org-tools/governance/rules/.github-rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Target Repository: .github
# Repository URL: https://github.com/Universal-Commerce-Protocol/.github
---
rules:
# ---------------------------------------------------------
# Governance
# ---------------------------------------------------------
- name: "governance"
patterns:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add MAINTAINERS.md too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, added!

- "GOVERNANCE.md"
- "CONTRIBUTING.md"
- "CODE_OF_CONDUCT.md"
- "SECURITY.md"
- "TC_ELECTIONS.md"
- "LICENSE"
- "DOMAIN_TECH_COUNCIL_CHARTER.md"
- "MAINTAINERS.md"
requires:
# Strictly Governance Council (L4)
- team: "governance-council"
min_approvals: 2

# ---------------------------------------------------------
# Infrastructure, Tooling & Configuration (including org-tools)
# ---------------------------------------------------------
- name: "infra_and_tooling"
patterns:
- ".github/**"
- "renovate.json"
- ".pre-commit-config.yaml"
- ".gitignore"
- "org-tools/**"
- "pyproject.toml"
- "uv.lock"
- "README.md"
requires:
# Grants access to devops (L1) and higher
- min_team: "devops-maintainers"
min_approvals: 2

fallback:
requires:
# Default for all files (*).
- min_team: "governance-council"
min_approvals: 2

proxy_reviewers:
- amithanda

team_hierarchy:
devops-maintainers: 1
maintainers: 2
tech-council: 3
governance-council: 4
2 changes: 0 additions & 2 deletions org-tools/governance/rules/meeting-minutes-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ rules:
- "README.md"
- "CONTRIBUTING.md"
- "SECURITY.md"
excludes:
- ".github/CODEOWNERS"
requires:
# Grants access to devops (L1), maintainers (L2), tech-council (L3),
# and governance-council (L4)
Expand Down
Loading