Skip to content

Commit 1f31d1f

Browse files
authored
Merge pull request #112 from newrelic/zstickles/gh-actions-labels
Automatically add GitHub labels to PRs
2 parents 116c2b3 + d7aa03e commit 1f31d1f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/labeler.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Add "enhancement" label to any PR that contains files in the src
2+
# directory (excluding the markdown pages directory.
3+
enhancement:
4+
- any: ['src/**/*', '!src/markdown-pages/**/*']
5+
6+
# Add "documentation" label to any PR that contains files in the
7+
# markdown-pages directory.
8+
documentation:
9+
- any: ['src/markdown-pages/**/*']
10+
11+

.github/workflows/label.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Pull Request Labeler"
2+
on: [pull_request]
3+
4+
jobs:
5+
label:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/labeler@v2
9+
with:
10+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)