Skip to content

Commit 6fec579

Browse files
authored
Auto add community feedback comment (#20956)
Closes #20943
1 parent 5528e0e commit 6fec579

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Community Feedback Auto Comment
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
jobs:
8+
add-comment:
9+
if: github.event.label.name == 'needs community feedback'
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
issues: write
14+
15+
steps:
16+
- name: Check For Existing Comment
17+
uses: peter-evans/find-comment@v2
18+
id: finder
19+
with:
20+
issue-number: ${{ github.event.issue.number }}
21+
comment-author: 'github-actions[bot]'
22+
body-includes: Thanks for the feature request! We are going to give the community
23+
24+
- name: Add Community Feedback Comment
25+
if: steps.finder.outputs.comment-id == ''
26+
uses: peter-evans/create-or-update-comment@v2
27+
with:
28+
issue-number: ${{ github.event.issue.number }}
29+
body: |
30+
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

0 commit comments

Comments
 (0)