From 8db52f898410ede80d0c6191b66eae238cd4eca5 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Tue, 1 Apr 2025 15:36:19 -0500 Subject: [PATCH] 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 --- .github/workflows/needs-info-labeler.yaml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/needs-info-labeler.yaml diff --git a/.github/workflows/needs-info-labeler.yaml b/.github/workflows/needs-info-labeler.yaml new file mode 100644 index 0000000000..085cb189a5 --- /dev/null +++ b/.github/workflows/needs-info-labeler.yaml @@ -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).