Add autocomment for needs-info label

When a reviewer of an issue determines that an issue is incompleted, a
`needs-info` label can be added to the issue.  This will trigger a GH
action with an automated response.  The reviewer should also have told
the user what is needed or asked a question.  Also, we have no automated
way to remove the label when a response is provided, so this still needs
to be managed.

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2025-04-01 15:36:19 -05:00
parent 53be17d126
commit 8db52f8984

View File

@ -0,0 +1,28 @@
name: Needs info labeler
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'needs-info'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run: gh issue comment "$NUMBER" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: |
A reviewer has determined we need more information to understand the reported issue. A comment on what is missing should be provided. Be certain you:
* provide an exact reproducer where possible
* verify you have provided all relevant information - minimum is `podman info`
* answer any follow up questions
If no response to the `needs-info` is provided in 30 days, this issue may be closed by our stale bot.
For more information on reporting issues on this repository, consult our [issue guide](ISSUE.md).