From 6f4b2d01c56196540fa3089fc427c20f42d72733 Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Sat, 30 Nov 2019 12:32:55 +0000 Subject: [PATCH 1/6] adds a workflow for labelling --- .github/labeler.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 0 2 files changed, 28 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..66957c6f065f --- /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-net 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..e69de29bb2d1 From 58c628168f3a15787ccec422b4fa6f7ea9f66fae Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Sat, 30 Nov 2019 12:33:56 +0000 Subject: [PATCH 2/6] forgot the workflow itself lol --- .github/workflows/labeler.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index e69de29bb2d1..c4f361e661f9 100644 --- a/.github/workflows/labeler.yml +++ 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 }}" From 6a47972493b312fb9b501d6278d95f21a8cd5a6e Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Sat, 30 Nov 2019 12:37:54 +0000 Subject: [PATCH 3/6] maybe --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 66957c6f065f..de19c3279313 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,7 +4,7 @@ Config: config/** # When the .DME is changed -DME Edit: *.dme +DME Edit: **.dme # Any .dmi changes Sprites: **/*.dmi From 93bc1503eda47bb706bbf065e10a9d0d86b143c4 Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Sat, 30 Nov 2019 12:39:33 +0000 Subject: [PATCH 4/6] mb this works --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index de19c3279313..f77d2a0badcd 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,7 +4,7 @@ Config: config/** # When the .DME is changed -DME Edit: **.dme +DME Edit: **/*.dme # Any .dmi changes Sprites: **/*.dmi From 5977e0cca791edc828460e1bded833e7f771537e Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Sat, 30 Nov 2019 12:42:33 +0000 Subject: [PATCH 5/6] fuuuck --- .github/labeler.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index f77d2a0badcd..7986b6ece299 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,28 +1,28 @@ # Use this to test the matches: http://www.globtester.com/ # Any file within the config subfolder -Config: config/** +Config: 'config/**' # When the .DME is changed -DME Edit: **/*.dme +DME Edit: '**/*.dme' # Any .dmi changes -Sprites: **/*.dmi +Sprites: '**/*.dmi' # Javascript changes -Javascript: **/*.js +Javascript: '**/*.js' # Changes to a .dmm -Map Change: **/*.dmm +Map Change: '**/*.dmm' # Any changes to .ogg files are marked as sound -Sound: **/*.ogg +Sound: '**/*.ogg' # Changes to the SQL subfolder -SQL: SQL/** +SQL: 'SQL/**' # Encompasses both the tgui and the tgui-net folder -tgui: {tgui,tgui-next/**} +tgui: '{tgui,tgui-next/**}' # Changes to the .Github folder -Github: .github/** +Github: '.github/**' From a22f3bcbbf99d9bb51705a6e6df5d1373cbd2059 Mon Sep 17 00:00:00 2001 From: Nichlas Pihl Date: Sat, 30 Nov 2019 14:55:35 +0000 Subject: [PATCH 6/6] Update labeler.yml --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7986b6ece299..0e64118b69f6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -21,7 +21,7 @@ Sound: '**/*.ogg' # Changes to the SQL subfolder SQL: 'SQL/**' -# Encompasses both the tgui and the tgui-net folder +# Encompasses both the tgui and the tgui-next folder tgui: '{tgui,tgui-next/**}' # Changes to the .Github folder