Skip to content

Commit

Permalink
ci(component-owners): try using component-owners
Browse files Browse the repository at this point in the history
Try using component-owners instead of CODEOWNERS since the latter
requires all listed users have write permission to the repo.

This only requires that they were a previous contributor.

Signed-off-by: Randolph Sapp <[email protected]>
  • Loading branch information
StaticRocket committed Dec 10, 2024
1 parent 21ed6e8 commit 5dfa64a
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/component-owners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
# Each component identified by its path prefix has a list of owners
components:

# Ownership applies recursively to any file in a directory
source/linux/Foundational_Components/PRU-ICSS*: &pru_list
- Siddharth-Vadapalli-at-TI
- chintan013
- danish-ti
source/linux/Foundational_Components_PRU_Subsystem.rst: *pru_list
source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network: *pru_list

source/android: &android_list
- glaroque
- makohoek
- vishalmti
source/devices/*/android: *android_list

source/system: &mpu_list
- TexasInstruments/sitara-mpu-linux-sdk
source/buildroot: *mpu_list
source/linux/Foundational_Components/Hypervisor: *mpu_list
source/linux/Foundational_Components/Tools: *mpu_list
source/linux/Foundational_Components/Virtualization: *mpu_list
source/debian: *mpu_list
source/devices/*/debian: *mpu_list

source/devices/AM335x/linux: &sitara_legacy_list
- jeevantelukula
- jmenti
source/devices/AM437x/linux: *sitara_legacy_list
source/devices/AM65X/linux: *sitara_legacy_list

source/devices/AM64X/linux: *mpu_list
source/devices/AM62X/linux:
- DhruvaG2000
- TexasInstruments/sitara-mpu-linux-sdk

source/devices/AM62AX/linux:
- TexasInstruments/sitara-mpu-linux-sdk

source/devices/AM62PX/linux:
- AashvijShenai
- TexasInstruments/sitara-mpu-linux-sdk

source/devices/AM62LX/linux:
- TexasInstruments/sitara-mpu-linux-sdk
- bryanbrattlof
- r-vignesh

source/linux/Overview:
- TexasInstruments/sitara-mpu-linux-sdk
- aniket-l

source/linux/Release_Specific:
- TexasInstruments/sitara-mpu-linux-sdk
- aniket-l
- praneethbajjuri
- uditkumarti

source/linux/Foundational_Components:
- devarsht
- praneethbajjuri
- r-vignesh
- uditkumarti

source/linux/Foundational_Components/IPC:
- 3V3RYONE
- h-nagalla
- jmenti

source/linux/Foundational_Components/U-Boot:
- bryanbrattlof
- jmenti

source/linux/Foundational_Components/Kernel:
- devarsht
- praneethbajjuri
- r-vignesh
- uditkumarti

source/linux/Foundational_Components/Power_Management:
- DhruvaG2000
- vishalmti

source/linux/Foundational_Components/Graphics:
- DarrenEtheridge
- StaticRocket
31 changes: 31 additions & 0 deletions .github/workflows/component-owners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "component-owners"

on:
# It's insecure to use pull_request_target if you intend to check out code
# from that PR. This just reads the config file in the pull request base, and
# is not an issue currently. We will need to use this to comment on PRs coming
# from forked repositories.
pull_request_target:
branches: [master]

permissions:
# Clamp permissions since pull_request_target workflows granted full
# read/write repository permission by default
contents: read
issues: write
pull-requests: write

jobs:
component-owners:
name: Assign component owners
runs-on: ubuntu-latest

steps:
- name: Assign component owners
uses: dyladan/component-owners@main
with:
config-file: .github/component-owners.yml
repo-token: ${{ github.token }}
assign-owners: true
request-owner-reviews: true

0 comments on commit 5dfa64a

Please sign in to comment.