From 8131a1a4865fe6131701ac7ef0c7cdf8c1a85839 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 4 Dec 2023 12:02:32 +1000 Subject: [PATCH] github: add a label commenter bot This avoids us having to type the same thing out over and over again for the same (two most common) issues: sysinfo missing in a tablet file or a bug filed against libwacom that's not our bug. --- .github/label-commenter-config.yml | 42 +++++++++++++++++++++++++++ .github/workflows/label-commenter.yml | 20 +++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/label-commenter-config.yml create mode 100644 .github/workflows/label-commenter.yml diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 000000000..a847bc6d7 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,42 @@ +comment: + header: Hi, there. I'm a bot and have been asked to have a look at this. + footer: | + --- + This is an automated comment created by a bot. Responding to the bot or mentioning it won't have any effect. + +labels: + - name: not libwacom + labeled: + issue: + body: | + libwacom is a bunch of text files with a C API, and the information in those text files + is static fixed information that we cannot get from the device (e.g. the model name or which + button will produce which event code). It does not affect functionality directly, if the + tablet does not work this is either an issue with the kernel drivers, xf86-input-wacom + (if using X) or libinput/the desktop environment (if using Wayland). Please file the + issue with the component that most likely applies. + + See also https://github.com/linuxwacom/libwacom/wiki/Troubleshooting + See also https://github.com/linuxwacom/libwacom/wiki/Adding-a-new-device + action: close + + - name: sysinfo-needed + labeled: + pr: + body: | + Please run the sysinfo script from https://github.com/linuxwacom/wacom-hid-descriptors and + file a new issue in that repo with the resulting sysinfo tarball. The README in that repo + has more information and instructions. + + The `.tablet` files in this PR should then link to the sysinfo in this form: + ``` + # sysinfo.abCdE1234.tar.gz + # https://github.com/linuxwacom/wacom-hid-descriptors/issues/1234 + ``` + A `git grep sysinfo` will show how this is currently used in existing data files. + + See also https://github.com/linuxwacom/libwacom/wiki/Adding-a-new-device + unlabeled: + pr: + body: | + Thanks for providing the sysinfo. Someone will be along shortly to review the PR. diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml new file mode 100644 index 000000000..51a05aac7 --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -0,0 +1,20 @@ +name: Label Commenter + +on: + issues: + types: [labeled, unlabeled] + pull_request_target: + types: [labeled, unlabeled] + +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1