streamlit
1# This workflow automatically comments on issues labeled with 'type:enhancement' or 'type:bug'
2# and adds a thumbs-up reaction to the issue to encourage community voting.
3
4name: Community voting
5on:
6issues:
7types:
8- labeled
9jobs:
10add-enhancement-comment:
11if: github.event.label.name == 'type:enhancement'
12runs-on: ubuntu-latest
13permissions:
14issues: write
15steps:
16- name: Add comment to issue
17run: gh issue comment ${{ github.event.issue.html_url }} --body "$ISSUE_BODY"
18env:
19GH_TOKEN: ${{ github.token }}
20ISSUE_BODY: |
21**To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.**
22
23Your vote helps us identify which enhancements matter most to our users.
24
25![Visits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fstreamlit%2Fstreamlit%2Fissues%2F${{ github.event.issue.number }}&title=visits&edge_flat=false)
26- name: Upvote issue
27uses: aidan-mundy/react-to-issue@b2a9194cf1ea483d633bc2834ed6c4c41c2a45f0
28with:
29issue-number: ${{ github.event.issue.number }}
30reactions: "+1"
31add-bug-comment:
32if: github.event.label.name == 'type:bug'
33runs-on: ubuntu-latest
34permissions:
35issues: write
36steps:
37- name: Add comment to issue
38run: gh issue comment ${{ github.event.issue.html_url }} --body "$ISSUE_BODY"
39env:
40GH_TOKEN: ${{ github.token }}
41ISSUE_BODY: |
42**If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.**
43
44Your feedback helps us prioritize which bugs to investigate and address first.
45
46![Visits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fstreamlit%2Fstreamlit%2Fissues%2F${{ github.event.issue.number }}&title=visits&edge_flat=false)
47- name: Upvote issue
48uses: aidan-mundy/react-to-issue@b2a9194cf1ea483d633bc2834ed6c4c41c2a45f0
49with:
50issue-number: ${{ github.event.issue.number }}
51reactions: "+1"
52