From 5dfa64a59d5fe7bd9bb2034b683ca81aa7455073 Mon Sep 17 00:00:00 2001 From: Randolph Sapp Date: Fri, 1 Nov 2024 22:14:49 -0500 Subject: [PATCH] ci(component-owners): try using component-owners 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 --- .github/component-owners.yml | 88 ++++++++++++++++++++++++++ .github/workflows/component-owners.yml | 31 +++++++++ 2 files changed, 119 insertions(+) create mode 100644 .github/component-owners.yml create mode 100644 .github/workflows/component-owners.yml diff --git a/.github/component-owners.yml b/.github/component-owners.yml new file mode 100644 index 000000000..735b5733a --- /dev/null +++ b/.github/component-owners.yml @@ -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 diff --git a/.github/workflows/component-owners.yml b/.github/workflows/component-owners.yml new file mode 100644 index 000000000..d97515939 --- /dev/null +++ b/.github/workflows/component-owners.yml @@ -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