mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-12 14:37:06 +03:00
Add bot (#1581)
* Update reply-bot.yml * Create label-commenter-config.yml
This commit is contained in:
36
.github/label-commenter-config.yml
vendored
Normal file
36
.github/label-commenter-config.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Reply Bot Configuration
|
||||||
|
# See https://github.com/peaceiris/actions-label-commenter
|
||||||
|
|
||||||
|
labels:
|
||||||
|
#######################################################################
|
||||||
|
# Bot Response: Web Console
|
||||||
|
#######################################################################
|
||||||
|
- name: bot-reply Web Console
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
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.
|
||||||
|
The USB log contains more information about the startup and operation of the device than the normal Web UI log
|
||||||
|
discussion:
|
||||||
|
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.
|
||||||
|
The USB log contains more information about the startup and operation of the device than the normal Web UI log
|
||||||
|
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# Bot Response: Rolling Build
|
||||||
|
#######################################################################
|
||||||
|
- name: bot-reply Rolling Build
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: |
|
||||||
|
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_*`.
|
||||||
|
discussion:
|
||||||
|
body: |
|
||||||
|
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_*`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
59
.github/workflows/reply-bot.yml
vendored
59
.github/workflows/reply-bot.yml
vendored
@@ -1,59 +1,42 @@
|
|||||||
# Reply Bot
|
# Reply Bot
|
||||||
# See
|
# It uses the configuration in .github/label-commenter-config.yml
|
||||||
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
|
# See https://github.com/peaceiris/actions-label-commenter
|
||||||
# Uses https://github.com/marketplace/actions/issues-helper to write auto-generated replys based on labels
|
|
||||||
|
|
||||||
name: Issue Reply
|
name: Reply-Bot
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [labeled]
|
types: [labeled]
|
||||||
discussions:
|
discussion:
|
||||||
types: [labeled]
|
types: [labeled]
|
||||||
|
|
||||||
jobs:
|
permissions:
|
||||||
reply-helper:
|
contents: read
|
||||||
runs-on: ubuntu-latest
|
issues: write
|
||||||
steps:
|
pull-requests: write
|
||||||
#######################################################################
|
discussions: write
|
||||||
# Bot Response: Web Console
|
|
||||||
#######################################################################
|
|
||||||
- name: Add Response
|
|
||||||
if: github.event.label.name == 'bot-reply Web Console'
|
|
||||||
uses: actions-cool/issues-helper@v2
|
|
||||||
with:
|
|
||||||
actions: 'create-comment'
|
|
||||||
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.
|
|
||||||
The USB log contains more information about the startup and operation of the device than the normal Web UI log
|
|
||||||
|
|
||||||
- name: Remove label again
|
jobs:
|
||||||
|
comment:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- 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
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
labels: 'bot-reply Web Console'
|
labels: 'bot-reply Web Console'
|
||||||
|
|
||||||
|
- name: Remove 'Rolling Build' label again (issues only)
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
# Bot Response: Rolling Build
|
|
||||||
#######################################################################
|
|
||||||
- name: Add Response
|
|
||||||
if: github.event.label.name == 'bot-reply Rolling Build'
|
|
||||||
uses: actions-cool/issues-helper@v2
|
|
||||||
with:
|
|
||||||
actions: 'create-comment'
|
|
||||||
body: |
|
|
||||||
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_*`.
|
|
||||||
|
|
||||||
|
|
||||||
- name: Remove label again
|
|
||||||
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
|
||||||
with:
|
with:
|
||||||
actions: 'remove-labels'
|
actions: 'remove-labels'
|
||||||
labels: 'bot-reply Rolling Build'
|
labels: 'bot-reply Rolling Build'
|
||||||
|
|
||||||
|
- name: Write Response
|
||||||
|
uses: peaceiris/actions-label-commenter@c2d00660c86f2b9ed0fb35b372c451558eba85b3
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user