Skip to content

Commit f71fc12

Browse files
author
Kalle Fagerberg
committed
add labeler workflow
1 parent 3ba7b87 commit f71fc12

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: 2026 Kalle Fagerberg
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
go:
6+
- changed-files:
7+
- any-glob-to-any-file:
8+
- "**/*.go"
9+
- "**/go.mod"
10+
- "**/go.sum"
11+
- "**/go.work"
12+
13+
dependencies:
14+
- changed-files:
15+
- any-glob-to-any-file:
16+
- "**/go.mod"
17+
- "**/go.sum"
18+
- "**/mise.toml"
19+
- "**/mise.lock"
20+
21+
github_actions:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- ".github/workflows/*"
25+
- ".github/dependabot.yml"
26+
- ".github/labeler.yml"
27+
28+
documentation:
29+
- changed-files:
30+
- any-glob-to-any-file:
31+
- "**/*.md"
32+
- "docs/*"
33+
34+
assets:
35+
- changed-files:
36+
- any-glob-to-any-file:
37+
- "assets/**"

.github/workflows/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
# Using "pull_request_target" is generally a security hole, but only
4+
# if you also use "actions/checkout" in your job.
5+
# Since we're not using "actions/checkout", then using "pull_request_target"
6+
# is completely safe.
7+
# zizmor: ignore[dangerous-triggers]
8+
- pull_request_target
9+
10+
jobs:
11+
labeler:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1

0 commit comments

Comments
 (0)