mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-27 02:26:21 +09:00
c5dc3d4385
Auto-close PRs from authors not listed in .github/VOUCHED.td. Issues stay open to everyone; the close message points contributors at CONTRIBUTING.md. Maintainers manage the list with !vouch, !denounce and !unvouch comments, and a weekly job resyncs CODEOWNERS. The workflows use GITHUB_TOKEN with explicit least-privilege permissions.
26 lines
660 B
YAML
26 lines
660 B
YAML
name: "Vouch - Check PR"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: .github/pr-unvouched-message
|
|
|
|
- uses: mitchellh/vouch/action/check-pr@d66fa29a64600490892131ad87597c30c91fcac4 # v1.5.0
|
|
with:
|
|
pr-number: ${{ github.event.pull_request.number }}
|
|
auto-close: true
|
|
template-file: .github/pr-unvouched-message
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|