chore: Add labeler action to automate PR labeling (#1298)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
c10fd657d0
commit
96c5c38cac
2 changed files with 30 additions and 2 deletions
14
.github/configs/labeler.yaml
vendored
Normal file
14
.github/configs/labeler.yaml
vendored
Normal 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/**/*
|
16
.github/workflows/pr-sizing.yml
vendored
16
.github/workflows/pr-sizing.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue