chore: Add labeler action to automate PR labeling (#1298)

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Marco Kilchhofer 2022-05-26 13:13:26 +02:00 committed by GitHub
parent c10fd657d0
commit 96c5c38cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 2 deletions

14
.github/configs/labeler.yaml vendored Normal file
View file

@ -0,0 +1,14 @@
argo-cd:
- charts/argo-cd/**/*
argo-events:
- charts/argo-events/**/*
argo-rollouts:
- charts/argo-rollouts/**/*
argo-workflows:
- charts/argo-workflows/**/*
argocd-image-updater:
- charts/argocd-image-updater/**/*

View file

@ -1,10 +1,24 @@
## Reference: https://github.com/pascalgn/size-label-action ## Reference: https://github.com/pascalgn/size-label-action
--- ---
name: 'PR Size' name: 'PR Labeling'
on: on:
pull_request_target: pull_request_target:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs: jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
configuration-path: ".github/configs/labeler.yaml"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
size-label: size-label:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: