Add Bot Replies (#1701)

* Update label-commenter-config.yml

* Update reply-bot.yml
This commit is contained in:
CaCO3
2022-12-27 18:11:48 +01:00
committed by GitHub
parent 85030e39fa
commit 14a2510e12
2 changed files with 116 additions and 5 deletions

View File

@@ -1,7 +1,41 @@
# Reply Bot Configuration # Reply Bot Configuration
# See https://github.com/peaceiris/actions-label-commenter # See https://github.com/peaceiris/actions-label-commenter
# Make sure to also add the response to .github/workflows/reply-bot.yml!
# Due to the way it works, you have to add each response twice, once for the issue, once for the discussions!
labels: labels:
#######################################################################
# Bot Response: xx
#######################################################################
- name: bot-reply xx
labeled:
issue:
body: |
xx
discussion:
body: |
xx
#######################################################################
# Bot Response: Logfile
#######################################################################
- name: bot-reply Logfile
labeled:
issue:
body: |
Please provide a logfile!
Make sure to first enable the `DEBUG` level in `Settings->Configuration->Debug->Logfile Log Level`!
Then wait until the issue arises again.
When you copy the log into here, please make sure to use **Fenced code blocks** by wrapping it into separate lines with ` ``` `, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
discussion:
body: |
Please provide a logfile!
Make sure to first enable the `DEBUG` level in `Settings->Configuration->Debug->Logfile Log Level`!
Then wait until the issue arises again.
When you copy the log into here, please make sure to use **Fenced code blocks** by wrapping it into separate lines with ` ``` `, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
####################################################################### #######################################################################
# Bot Response: Web Console # Bot Response: Web Console
####################################################################### #######################################################################
@@ -11,11 +45,41 @@
body: | body: |
You can use the [Web Console](https://jomjol.github.io/AI-on-the-edge-device/index.html) to get USB log from the device. You can use the [Web Console](https://jomjol.github.io/AI-on-the-edge-device/index.html) to get USB log from the device.
The USB log contains more information about the startup and operation of the device than the normal Web UI log The USB log contains more information about the startup and operation of the device than the normal Web UI log
When you copy the log into herm, please make sure to use **Fenced code blocks** by wrapping it into separate lines with ` ``` `, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
discussion: discussion:
body: | body: |
You can use the [Web Console](https://jomjol.github.io/AI-on-the-edge-device/index.html) to get USB log from the device. You can use the [Web Console](https://jomjol.github.io/AI-on-the-edge-device/index.html) to get USB log from the device.
The USB log contains more information about the startup and operation of the device than the normal Web UI log The USB log contains more information about the startup and operation of the device than the normal Web UI log
When you copy the log into herm, please make sure to use **Fenced code blocks** by wrapping it into separate lines with ` ``` `, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
#######################################################################
# Bot Response: Properly Format Code
#######################################################################
- name: bot-reply Properly Format Code
labeled:
issue:
body: |
Please make sure to use **Fenced code blocks** by wrapping it into separate lines with ` ``` `, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
This makes your code or log much easier to read!
discussion:
body: |
Please make sure to use **Fenced code blocks** by wrapping it into separate lines with ` ``` `, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks
This makes your code or log much easier to read!
#######################################################################
# Bot Response: Web Installer
#######################################################################
- name: bot-reply Web Installer
labeled:
issue:
body: |
You can use the [Web Installer](https://jomjol.github.io/AI-on-the-edge-device/index.html) install the firmware onto the ESP32.
discussion:
body: |
You can use the [Web Installer](https://jomjol.github.io/AI-on-the-edge-device/index.html) install the firmware onto the ESP32.
####################################################################### #######################################################################
# Bot Response: Rolling Build # Bot Response: Rolling Build
@@ -31,6 +95,17 @@
You can use the latest [Automatic Build](https://github.com/jomjol/AI-on-the-edge-device/actions/workflows/build.yaml?query=branch%3Arolling) of the the `rolling` branch. It might already contain a fix for your issue. You can use the latest [Automatic Build](https://github.com/jomjol/AI-on-the-edge-device/actions/workflows/build.yaml?query=branch%3Arolling) of the the `rolling` branch. It might already contain a fix for your issue.
Pick the most top passing entry (it has a green circle with a tick in it), then scoll down to the **Artifacts** and download the file named `update_*`. Pick the most top passing entry (it has a green circle with a tick in it), then scoll down to the **Artifacts** and download the file named `update_*`.
#######################################################################
# Bot Response: Show Trained Digits/Pointers
#######################################################################
- name: bot-reply Show Trained Digits/Pointers
labeled:
issue:
body: |
See [Digital Digits](https://jomjol.github.io/neural-network-digital-counter-readout) resp. [Analogue Pointers](https://jomjol.github.io/neural-network-analog-needle-readout) for an overview of all trained data.
If your type is not contained it can be added to our training material, see [here](https://github.com/jomjol/AI-on-the-edge-device/wiki/Learn-models-with-your-own-images).
discussion:
body: |
See [Digital Digits](https://jomjol.github.io/neural-network-digital-counter-readout) resp. [Analogue Pointers](https://jomjol.github.io/neural-network-analog-needle-readout) for an overview of all trained data.
If your type is not contained it can be added to our training material, see [here](https://github.com/jomjol/AI-on-the-edge-device/wiki/Learn-models-with-your-own-images).

View File

@@ -22,6 +22,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
####################################################################
## Remove labels again (issues only)
## Make sure to also add the reply message to .github/label-commenter-config.yml!
####################################################################
- name: Remove 'Logfile' label again (issues only)
if: github.event.label.name == 'bot-reply Logfile'
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'bot-reply Logfile'
- name: Remove 'Web Console' label again (issues only) - name: Remove 'Web Console' label again (issues only)
if: github.event.label.name == 'bot-reply Web Console' if: github.event.label.name == 'bot-reply Web Console'
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
@@ -29,6 +41,20 @@ jobs:
actions: 'remove-labels' actions: 'remove-labels'
labels: 'bot-reply Web Console' labels: 'bot-reply Web Console'
- name: Remove 'Properly Format Code' label again (issues only)
if: github.event.label.name == 'bot-reply Properly Format Code'
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'bot-reply Properly Format Code'
- name: Remove 'Web Installer' label again (issues only)
if: github.event.label.name == 'bot-reply Web Installer'
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'bot-reply Web Installer'
- name: Remove 'Rolling Build' label again (issues only) - name: Remove 'Rolling Build' label again (issues only)
if: github.event.label.name == 'bot-reply Rolling Build' if: github.event.label.name == 'bot-reply Rolling Build'
uses: actions-cool/issues-helper@v2 uses: actions-cool/issues-helper@v2
@@ -36,6 +62,16 @@ jobs:
actions: 'remove-labels' actions: 'remove-labels'
labels: 'bot-reply Rolling Build' labels: 'bot-reply Rolling Build'
- name: Remove 'Show Trained Digits/Pointers' label again (issues only)
if: github.event.label.name == 'bot-reply Show Trained Digits/Pointers'
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'bot-reply Show Trained Digits/Pointers'
####################################################################
## Write the response
####################################################################
- name: Write Response - name: Write Response
uses: peaceiris/actions-label-commenter@c2d00660c86f2b9ed0fb35b372c451558eba85b3 uses: peaceiris/actions-label-commenter@c2d00660c86f2b9ed0fb35b372c451558eba85b3
with: with: