Add Github Action: PR labeler (#669)

Adds automatic labeling to pull requests
This commit is contained in:
NickZ 2020-02-27 12:37:48 -08:00 committed by GitHub
parent f8cd97072e
commit 3476f01f64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

18
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,18 @@
#levels
levels:
- levels/**/*
#sprites
sprites:
- sprites/**/*
#music
music:
- musics/**/*
#sounds:
sounds:
- sounds/**/*
#patches:
patches:
- patches/**/*
#flats:
flats:
- flats/**/*

17
.github/workflows/label.yml vendored Normal file
View file

@ -0,0 +1,17 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/master/README.md
name: Labeler
on: [pull_request]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"