mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
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:
28
.github/workflows/needs-info-labeler.yaml
vendored
Normal file
28
.github/workflows/needs-info-labeler.yaml
vendored
Normal 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).
|
Reference in New Issue
Block a user