Skip to content

Commit 775b821

Browse files
authored
feat: Set up github automatic labels (#909)
* feat: Set up automatic labels using github actions * feat Add the name of the token secret * feat correct the name of the file * feat Adjust globbing patterns * feat Try adding pathing * feat Rework syntax in labeler * feat add needs changelog hook * feat test changelog feature * feat Remove changelog label * Update labeler.yml
1 parent 7cb02be commit 775b821

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/labeler.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
demo:
2+
- examples/*
3+
- elements/*/demo/*
4+
5+
doc:
6+
- docs/**/*
7+
- elements/**/*.{md,txt}
8+
9+
functionality:
10+
- elements/*/src/*.{js,html}
11+
12+
styles:
13+
- elements/*/src/*.{scss,css}
14+
- tokens/**/*
15+
16+
tests:
17+
- elements/*/test/*
18+
19+
tools:
20+
- scripts/*
21+
- elements/*/gulpfile.js
22+
- elements/*/rollup.config.js
23+
- ./.*
24+
- ./*.{js,json,yml}

.github/workflows/label.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler/blob/master/README.md
7+
8+
name: Pull request labeler
9+
on:
10+
pull_request:
11+
branches:
12+
- master
13+
14+
jobs:
15+
label:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/labeler@v2
20+
with:
21+
repo-token: "${{ secrets.ACTIONS }}"

CHANGELOG-prerelease.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Prerelease 50 ( TBD )
2+
3+
- [](https://github.com/patternfly/patternfly-elements/commit/) Add automatic labeling to PRs
4+
15
## Prerelease 49 ( 2020-05-29 )
26

37
- [9adb7ce](https://github.com/patternfly/patternfly-elements/commit/9adb7ce4e5a672192ca49af8a7b7f9afb5f56e75) feat: pfe-jump-links (#858)

0 commit comments

Comments
 (0)