Skip to content

Commit

Permalink
update labeller config (#5381)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored Apr 12, 2024
1 parent 1c6a074 commit 0ed2a82
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ chore:
tests:
- any:
- head-branch: ['^tests/', '^test/']
- changed-files: ['tests/**/*', 'perf-tests/**/*']
- all:
- changed-files: ['!tests/requirements.txt', '!perf-tests/requirements.txt']
- changed-files:
- any-glob-to-any-file: ['tests/**/*', 'perf-tests/**/*']
- all-globs-to-all-files: ['!tests/requirements.txt', '!perf-tests/requirements.txt']

documentation:
- head-branch: ['^docs/', '^doc/']
- changed-files: '**/*.md'
- changed-files:
- any-glob-to-any-file: '**/*.md'

dependencies:
- head-branch: ['^deps/', '^dep/', '^dependabot/', 'pre-commit-ci-update-config']
- changed-files: ['go.mod', 'go.sum']
- changed-files:
- any-glob-to-any-file: ['go.mod', 'go.sum']

helm_chart:
- changed-files: ['charts/nginx-ingress/**/*']
- changed-files:
- any-glob-to-any-file: 'charts/nginx-ingress/**/*'
7 changes: 5 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Pull Request Labeler"
on:
- pull_request_target
- pull_request

permissions:
contents: read
Expand All @@ -12,7 +12,10 @@ jobs:
pull-requests: write # for actions/labeler to add labels
runs-on: ubuntu-22.04
steps:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0-alpha.1
- name: Checkout Repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit 0ed2a82

Please sign in to comment.