Skip to content

Add product-owners team as CODEOWNERS to allow Product Leaders to approve PRs #5451

Add product-owners team as CODEOWNERS to allow Product Leaders to approve PRs

Add product-owners team as CODEOWNERS to allow Product Leaders to approve PRs #5451

Workflow file for this run

name: PR - Label and assign
# **What it does**: Labels PRs with size and associated products. Updates assignees to match our CODEOWNERS file.
# **Why we have it**: Easier scanning of repo PRs && backend reporting on our team's work.
# **Who does it impact**: PCX team
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
on:
pull_request_target:
types: [opened, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
label_products:
name: Label products
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6
continue-on-error: true
label_size:
name: Label size
permissions:
pull-requests: write
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- uses: codelytv/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1
continue-on-error: true
assign:
name: Update assignees
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: ./.github/actions/assign-pr
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true