Files
AI-on-the-edge-device/.github/workflows/reply-bot.yml
CaCO3 5084b438fc Add bot (#1581)
* Update reply-bot.yml

* Create label-commenter-config.yml
2022-12-13 22:23:59 +01:00

43 lines
1.1 KiB
YAML

# Reply Bot
# It uses the configuration in .github/label-commenter-config.yml
# See https://github.com/peaceiris/actions-label-commenter
name: Reply-Bot
on:
issues:
types: [labeled]
discussion:
types: [labeled]
permissions:
contents: read
issues: write
pull-requests: write
discussions: write
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'
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'bot-reply Web Console'
- name: Remove 'Rolling Build' label again (issues only)
if: github.event.label.name == 'bot-reply Rolling Build'
uses: actions-cool/issues-helper@v2
with:
actions: 'remove-labels'
labels: 'bot-reply Rolling Build'
- name: Write Response
uses: peaceiris/actions-label-commenter@c2d00660c86f2b9ed0fb35b372c451558eba85b3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"