GitHub: add helper bot for bugs

This commit is contained in:
alfrix 2024-03-11 13:45:15 -03:00
parent 6a81a90cda
commit a312c28471

22
.github/workflows/missing_log.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: "Add missing log comment"
on:
issues:
types: [labeled]
jobs:
comment:
if: contains(github.event.issue.labels.*.name, 'missing-log')
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Hello, I'm an automated bot. \n\n
Please attach a log file to this issue as it is required to properly diagnose the problem. \n\n
Logs help verify versions, inspect for errors, prevent duplicate reports, etc. \n\n
Thank you!`
})