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/**/*
|
18
.github/workflows/pr-sizing.yml
vendored
18
.github/workflows/pr-sizing.yml
vendored
|
@ -1,14 +1,28 @@
|
|||
## Reference: https://github.com/pascalgn/size-label-action
|
||||
---
|
||||
name: 'PR Size'
|
||||
name: 'PR Labeling'
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: size-label
|
||||
uses: "pascalgn/size-label-action@v0.4.2"
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
|
Loading…
Reference in a new issue