From 93046b9e909bb31b845e46be87332dd7a829e78f Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Fri, 27 Mar 2020 14:29:20 +0000 Subject: [PATCH] Revert "Revert "Label workflow"" --- .github/labeler.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 11 +++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000000..0e64118b69f6 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,28 @@ +# Use this to test the matches: http://www.globtester.com/ + +# Any file within the config subfolder +Config: 'config/**' + +# When the .DME is changed +DME Edit: '**/*.dme' + +# Any .dmi changes +Sprites: '**/*.dmi' + +# Javascript changes +Javascript: '**/*.js' + +# Changes to a .dmm +Map Change: '**/*.dmm' + +# Any changes to .ogg files are marked as sound +Sound: '**/*.ogg' + +# Changes to the SQL subfolder +SQL: 'SQL/**' + +# Encompasses both the tgui and the tgui-next folder +tgui: '{tgui,tgui-next/**}' + +# Changes to the .Github folder +Github: '.github/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000000..c4f361e661f9 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"