3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-08-18 11:02:10 +00:00

ci: add code owners via codeowners-plus (#15261)

This commit is contained in:
Nikolai Nechaev
2026-07-03 06:19:02 +09:00
committed by GitHub
parent 5b9931ae41
commit 420f112bc6
3 changed files with 55 additions and 0 deletions

10
.codeowners Normal file
View File

@ -0,0 +1,10 @@
# Reference: https://github.com/marketplace/actions/codeowners-plus#codeowners-file-spec
# Fallback: request Vaxry's review
* @vaxerski
# CI: request @fufexan's review
.github/workflows/** @fufexan
# Hyprtester (framework): CC @kolayne
? hyprtester/src/* @kolayne

33
.github/workflows/codeownersplus.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: 'Code Owners'
concurrency:
group: codeowners-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
# Note: to support more features of codeowners-plus, more event triggers
# may be required. See https://github.com/marketplace/actions/codeowners-plus
types: [opened, reopened, synchronize, ready_for_review]
permissions:
contents: read # required for @actions/checkout
pull-requests: write # required to request reviewers and leave comments
jobs:
codeowners:
name: 'Run Codeowners Plus'
runs-on: ubuntu-latest
steps:
- name: 'Checkout Code Repository'
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: 'Codeowners Plus'
uses: multimediallc/codeowners-plus@v1.9.1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
pr: '${{ github.event.pull_request.number }}'
verbose: true
quiet: ${{ github.event.pull_request.draft }}

12
codeowners.toml Normal file
View File

@ -0,0 +1,12 @@
# Prevent codeowners-plus from adding a review status comment:
# we only use it to request reviews, not to enforce approvals.
#
# Optional reviewers are still invited with a CC comment.
disable_review_status_comments = true
[enforcement]
# Just request reviews, but do not enforce the approvals requirement.
#
# If `fail_check = true`, the codeowners-plus workflow will fail, unless sepcified reviewers
# approve the PR.
fail_check = false