Skip to content

Commit

Permalink
fix(actions): redo labeler (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML authored Jul 2, 2024
1 parent 5e29dbd commit 752fcd1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 27 deletions.
48 changes: 30 additions & 18 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,41 @@
documentation:
- test/examples/**/*
- README.md
- examples/**/*
- changed-files:
- any-glob-to-any-file:
- test/examples/**/*
- README.md
- examples/**/*

core:
- lib/**/*
- changed-files:
- any-glob-to-any-file:
- lib/**/*

release:
- dist/**/*
- changed-files:
- any-glob-to-any-file:
- dist/**/*

tests:
- test/spec/**/*
- changed-files:
- any-glob-to-any-file:
- test/spec/**/*

deps:
- yarn.lock
- changed-files:
- any-glob-to-any-file:
- yarn.lock

infrastructure:
- .github/**/*
- .babelrc
- .eslintignore
- .eslintrc.json
- .flowconfig
- .gitignore
- .npmignore
- .travis.yml
- build.sh
- package.json
- webpack*
- changed-files:
- any-glob-to-any-file:
- .github/**/*
- .babelrc
- .eslintignore
- .eslintrc.json
- .flowconfig
- .gitignore
- .npmignore
- .travis.yml
- build.sh
- package.json
- webpack*
15 changes: 6 additions & 9 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
---
name: Pull request labeler
on:
schedule:
- cron: "*/5 * * * *"
- pull_request_target
jobs:
labeler:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: paulfantom/periodic-labeler@master
permissions:
issues: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
LABEL_MAPPINGS_FILE: .github/labeler.yml
- id: label-the-PR
uses: actions/labeler@v5

0 comments on commit 752fcd1

Please sign in to comment.