8000 Update labeler to official action (#4004) · nginx/kubernetes-ingress@0f8992d · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f8992d

Browse files
authored
Update labeler to official action (#4004)
Updates the version of the labeler to the official actions/labeler and updates the config accordingly.
1 parent a32d473 commit 0f8992d

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/labeler.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1+
change:
2+
- head-branch: ['^change/']
3+
14
enhancement:
2-
- branch: ['feature/**', 'feat/**', 'enhancement/**', 'enh/**']
5+
- head-branch: ['^feature/', '^feat/', '^enhancement/', '^enh/']
36

47
bug:
5-
- branch: ['fix/**', 'bug/**']
8+
- head-branch: ['^fix/', '^bug/']
69

710
chore:
8-
- branch: ['chore/**']
11+
- head-branch: ['^chore/']
912

1013
tests:
11-
- branch: ['tests/**', 'test/**']
12-
- tests/**/*
13-
- perf-tests/**/*
14+
- any:
15+
- head-branch: ['^tests/', '^test/']
16+
- changed-files: ['tests/**/*', 'perf-tests/**/*']
17+
- all:
18+
- changed-files: ['!tests/requirements.txt', '!perf-tests/requirements.txt']
1419

1520
documentation:
16-
- branch: ['docs/**', 'doc/**']
17-
- '**/*.md'
21+
- head-branch: ['^docs/', '^doc/']
22+
- changed-files: '**/*.md'
1823

1924
dependencies:
20-
- branch: ['deps/**', 'dep/**', 'dependabot/**']
21-
- go.mod
22-
- go.sum
25+
- head-branch: ['^deps/', '^dep/', '^dependabot/', 'pre-commit-ci-update-config']
26+
- changed-files: ['go.mod', 'go.sum']
2327

2428
helm_chart:
25-
- deployments/helm-chart/**/*
29+
- changed-files: ['deployments/helm-chart/**/*']

.github/workflows/labeler.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: "Pull Request Labeler"
22
on:
33
- pull_request_target
44

5-
permissions: # added using https://github.com/step-security/secure-workflows
5+
permissions:
66
contents: read
77

88
jobs:
99
triage:
1010
permissions:
1111
contents: read
1212
pull-requests: write
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
15-
- uses: joshdales/labeler@7b1327b4c44a8794dfc7573d60637cd60ce4b697 # if https://github.com/actions/labeler/pull/203 is merged, use the official action actions/labeler
16-
with:
17-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
- uses: actions/labeler@4f052778de9a9b80cb16cfb9079b02287285a4cb # v5.0.0-alpha.1
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)
0