Skip to content

Commit

Permalink
chore: fix labeler action globs and add auto add package labels (#4946)
Browse files Browse the repository at this point in the history
* chore: fix labeler action globs and add auto add package labels

* chore: make action label open PRs every 5 mins instead of on PR creation

Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
mattrosno and joshblack committed Jan 6, 2020
1 parent a506f76 commit 21025ae
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 9 deletions.
94 changes: 93 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,94 @@
'squad: system':
- ./**/*
- '**'
- '.*'
- '.*/**'

'package: browserslist-config-carbon':
- packages/browserslist-config-carbon/**/*

'package: bundler':
- packages/bundler/**/*

'package: cli':
- packages/cli/**/*

'package: cli-reporter':
- packages/cli-reporter/**/*

'package: colors':
- packages/colors/**/*

'package: components':
- packages/components/**/*

'package: elements':
- packages/elements/**/*

'package: eslint-config-carbon':
- packages/eslint-config-carbon/**/*

'package: grid':
- packages/grid/**/*

'package: icon-build-helpers':
- packages/icon-build-helpers/**/*

'package: icon-helpers':
- packages/icon-helpers/**/*

'package: icons':
- packages/icons/**/*

'package: icons-angular':
- packages/icons-angular/**/*

'package: icons-handlebars':
- packages/icons-handlebars/**/*

'package: icons-react':
- packages/icons-react/**/*

'package: icons-vue':
- packages/icons-vue/**/*

'package: import-once':
- packages/import-once/**/*

'package: layout':
- packages/layout/**/*

'package: motion':
- packages/motion/**/*

'package: pictograms':
- packages/pictograms/**/*

'package: pictograms-react':
- packages/pictograms-react/**/*

'package: react':
- packages/react/**/*

'package: react-hooks':
- packages/react-hooks/**/*

'package: scss-generator':
- packages/scss-generator/**/*

'package: sketch':
- packages/sketch/**/*

'package: stylelint-config-elements':
- packages/stylelint-config-elements/**/*

'package: text-utils':
- packages/text-utils/**/*

'package: themes':
- packages/themes/**/*

'package: type':
- packages/type/**/*

'package: upgrade':
- packages/upgrade/**/*
17 changes: 9 additions & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: 'Label pull request'

name: 'Label pull requests'
on:
- pull_request

schedule:
- cron: '*/5 * * * *'
jobs:
triage:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
- uses: paulfantom/periodic-labeler@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
LABEL_MAPPINGS_FILE: .github/labeler.yml

0 comments on commit 21025ae

Please sign in to comment.