From 146c7ca259f746c953004817a3980c79df99c765 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Sat, 24 Oct 2026 00:57:24 +0800 Subject: [PATCH] ci: call the shared organization check and source policy --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/source-policy.yml | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/source-policy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3468557..2ed16bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,11 @@ jobs: repository: .github icon: profile/assets/mark-light.png assets: .github/assets/social-preview + organization: + permissions: + contents: read + uses: computer-mcp/github-workflows/.github/workflows/organization.yml@d65bc20504f39c3a30232d67043abeca43d2c7b1 + with: + # The catalog under review must match the live inventory and About sentences. + declaration-revision: ${{ github.event.pull_request.head.sha || github.sha }} + scope: membership diff --git a/.github/workflows/source-policy.yml b/.github/workflows/source-policy.yml new file mode 100644 index 0000000..ef731db --- /dev/null +++ b/.github/workflows/source-policy.yml @@ -0,0 +1,17 @@ +name: Source policy checks +on: + pull_request: + types: [opened, synchronize, reopened, edited] + push: + branches: [master] +permissions: + contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + policy: + uses: computer-mcp/github-workflows/.github/workflows/policy.yml@d65bc20504f39c3a30232d67043abeca43d2c7b1 + with: + # A pull request is checked against the accepted rules, not the rules it proposes. + declaration-revision: ${{ github.event.pull_request.base.sha || github.sha }}