From 558c0a440e48a3de3736b79b33a349456bbcabd8 Mon Sep 17 00:00:00 2001 From: Taus Brock-Nannestad Date: Thu, 12 Dec 2019 14:38:02 +0100 Subject: [PATCH 1/3] Actions: Automatically add language-specific labels to pull requests. --- .github/labeler.yml | 23 +++++++++++++++++++++++ .github/workflows/labeler.yml | 11 +++++++++++ 2 files changed, 34 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..0ebf8c9221ed --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +C++: + - cpp/**/* + - change-notes/**/*cpp* + +C#: + - csharp/**/* + - change-notes/**/*csharp* + +Java: + - java/**/* + - change-notes/**/*java.* + +JS: + - javascript/**/* + - change-notes/**/*javascript* + +Python: + - python/**/* + - change-notes/**/*python* + +documentation: + - **/*.qhelp + - **/*.md diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000000..dcafb97dc984 --- /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 }}" From 51315217ff971d16a1b1af54d1e80789b302874f Mon Sep 17 00:00:00 2001 From: Taus Brock-Nannestad Date: Thu, 12 Dec 2019 15:10:21 +0100 Subject: [PATCH 2/3] Add `documentation` label to `docs/**/*`. --- .github/labeler.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 0ebf8c9221ed..542fe717b74a 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -21,3 +21,4 @@ Python: documentation: - **/*.qhelp - **/*.md + - docs/**/* From 2fec0d0294fe308a5cc132e87dbd372c37455d02 Mon Sep 17 00:00:00 2001 From: Taus Brock-Nannestad Date: Thu, 12 Dec 2019 16:29:04 +0100 Subject: [PATCH 3/3] Escape labels with potentially problematic characters. --- .github/labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 542fe717b74a..62e1ca5fd3e6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,8 +1,8 @@ -C++: +"C++": - cpp/**/* - change-notes/**/*cpp* -C#: +"C#": - csharp/**/* - change-notes/**/*csharp*