mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 02:24:14 -05:00
ci/vouch: init vouch ci
This commit is contained in:
@@ -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.
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user