From 8fd90780e8788b227efc710a146b6eef80763c04 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 27 Jul 2026 13:09:54 +0200 Subject: [PATCH] ci/vouch: init vouch ci --- .github/vouch_pr_message.md | 8 ++++++++ .github/workflows/vouch-prs.yml | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/vouch_pr_message.md create mode 100644 .github/workflows/vouch-prs.yml diff --git a/.github/vouch_pr_message.md b/.github/vouch_pr_message.md new file mode 100644 index 000000000..269222085 --- /dev/null +++ b/.github/vouch_pr_message.md @@ -0,0 +1,8 @@ +Hi @{author}, + +Thanks for your contribution! Unfortunately, Hyprland and hypr* no longer +accept contributions from unvouched contributors. + +To get vouched, please see our contributing guide at [wiki.hypr.land/Contributing-and-Debugging](https://wiki.hypr.land/Contributing-and-Debugging/) + +This PR has been closed automatically and will not be re-opened. diff --git a/.github/workflows/vouch-prs.yml b/.github/workflows/vouch-prs.yml new file mode 100644 index 000000000..e0a93e79d --- /dev/null +++ b/.github/workflows/vouch-prs.yml @@ -0,0 +1,35 @@ +name: Vouch MR Check + +on: + pull_request_target: + types: [opened, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + check-vouch: + runs-on: ubuntu-latest + + steps: + - name: Verify central Vouch list + env: + GH_TOKEN: ${{ github.token }} + run: | + gh api \ + "/repos/${{ github.repository_owner }}/.github/contents/vouch/VOUCHED.td?ref=${{ github.event.repository.default_branch }}" \ + >/dev/null + + - name: Enforce central Vouch list + uses: mitchellh/vouch/action/check-pr@v1 + with: + pr-number: ${{ github.event.pull_request.number }} + repo: ${{ github.repository }} + vouched-repo: ${{ github.repository_owner }}/.github + vouched-file: VOUCHED.td + require-vouch: true + auto-close: true + dry-run: false + env: + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file