Skip to content

Commit e9f0f4e

Browse files
karthiknadigeleanorjboyd
authored andcommitted
Auto add community feedback comment (#20956)
Closes #20943
1 parent 0488d11 commit e9f0f4e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
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)