Skip to content

Commit 80c76cc

Browse files
CLOUDP-244159: Update labeler action to label PR with doc label (#2905)
1 parent 9b71b30 commit 80c76cc

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

.github/labeler.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
kubernetes:
2-
- '(kubernetes)'
1+
version: 1
2+
issues: True
3+
labels:
4+
- label: "kubernetes"
5+
type: "issue"
6+
body: "kubernetes*"
7+
- label: "need-doc-review"
8+
type: "pull_request"
9+
draft: False
10+
files:
11+
- "docs\\/*.txt"

.github/workflows/labeler.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@ name: Issue Labeler
22
on:
33
issues:
44
types: [opened, edited]
5-
5+
pull_request:
6+
types:
7+
- ready_for_review
68
jobs:
7-
triage:
9+
labeler:
10+
name: Add Label to PRs and Issues
811
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pull-requests: write # Needed by labeler
15+
issues: write # Needed by labeler
916
steps:
10-
- uses: github/[email protected]
17+
- name: Checkout repo
18+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
19+
- name: Add Labels
20+
uses: srvaroa/labeler@1eec6d9e7c5fa5864840279978680302f955fc37
21+
env:
22+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1123
with:
12-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13-
configuration-path: .github/labeler.yaml
14-
not-before: 2020-01-15T02:54:32Z
15-
enable-versioned-regex: 0
24+
config_path: .github/labeler.yaml
25+
use_local_config: true

0 commit comments

Comments
 (0)