streamlit

Форк
0
/
community-voting.yml 
51 строка · 2.1 Кб
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

4
name: Community voting
5
on:
6
  issues:
7
    types:
8
      - labeled
9
jobs:
10
  add-enhancement-comment:
11
    if: github.event.label.name == 'type:enhancement'
12
    runs-on: ubuntu-latest
13
    permissions:
14
      issues: write
15
    steps:
16
      - name: Add comment to issue
17
        run: gh issue comment ${{ github.event.issue.html_url }} --body "$ISSUE_BODY"
18
        env:
19
          GH_TOKEN: ${{ github.token }}
20
          ISSUE_BODY: |
21
            **To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.**
22

23
            Your 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
27
        uses: aidan-mundy/react-to-issue@b2a9194cf1ea483d633bc2834ed6c4c41c2a45f0
28
        with:
29
          issue-number: ${{ github.event.issue.number }}
30
          reactions: "+1"
31
  add-bug-comment:
32
    if: github.event.label.name == 'type:bug'
33
    runs-on: ubuntu-latest
34
    permissions:
35
      issues: write
36
    steps:
37
      - name: Add comment to issue
38
        run: gh issue comment ${{ github.event.issue.html_url }} --body "$ISSUE_BODY"
39
        env:
40
          GH_TOKEN: ${{ github.token }}
41
          ISSUE_BODY: |
42
            **If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.**
43

44
            Your 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
48
        uses: aidan-mundy/react-to-issue@b2a9194cf1ea483d633bc2834ed6c4c41c2a45f0
49
        with:
50
          issue-number: ${{ github.event.issue.number }}
51
          reactions: "+1"
52

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.