Skip to content

Commit f795269

Browse files
infra: auto comment on feature requests (#2041)
1 parent 8fc5261 commit f795269

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/comment-issue.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Comment Issue
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
8+
jobs:
9+
add-comment-for-user-interest:
10+
if: "github.event.label.name == 's: waiting for user interest'"
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
steps:
15+
- name: Add Comment For User Interest
16+
uses: actions/github-script@v6
17+
with:
18+
script: |
19+
github.rest.issues.createComment({
20+
issue_number: context.issue.number,
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
body: `**Thank you for your feature proposal.**
24+
25+
We marked it as "waiting for user interest" for now to gather some feedback from our community:
26+
27+
- If you would like to see this feature be implemented, please react to the description with an up-vote (:+1:).
28+
- If you have a suggestion or want to point out some special cases that need to be considered, please leave a comment, so we are aware about them.
29+
30+
We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements.
31+
32+
We will start the implementation based on:
33+
34+
- the number of votes (:+1:) and comments
35+
- the relevance for the ecosystem
36+
- availability of alternatives and workarounds
37+
- and the complexity of the requested feature
38+
39+
We do this because:
40+
41+
- There are plenty of languages/countries out there and we would like to ensure that every method can cover all or almost all of them.
42+
- Every feature we add to faker has "costs" associated to it:
43+
- initial costs: design, implementation, reviews, documentation
44+
- running costs: awareness of the feature itself, more complex module structure, increased bundle size, more work during refactors
45+
46+
---
47+
48+
[View more issues which are waiting for user interest](https://github.com/faker-js/faker/issues?q=is%3Aissue+is%3Aopen+label%3A%22s%3A+waiting+for+user+interest%22+)`,
49+
})
50+
51+
- name: React to Issue
52+
uses: actions/github-script@v6
53+
with:
54+
script: |
55+
github.rest.reactions.createForIssue({
56+
issue_number: context.issue.number,
57+
owner: context.repo.owner,
58+
repo: context.repo.repo,
59+
content: "+1",
60+
});

0 commit comments

Comments
 (0)