lobe-chat

Форк
0
/
issue-auto-comments.yml 
73 строки · 3.5 Кб
1
name: Issue Auto Comment
2
on:
3
  issues:
4
    types:
5
      - opened
6
      - closed
7
      - assigned
8
  pull_request_target:
9
    types:
10
      - opened
11
      - closed
12

13
permissions:
14
  contents: read
15

16
jobs:
17
  run:
18
    permissions:
19
      issues: write # for actions-cool/issues-helper to update issues
20
      pull-requests: write # for actions-cool/issues-helper to update PRs
21
    runs-on: ubuntu-latest
22
    steps:
23
      - name: Auto Comment on Issues Opened
24
        uses: wow-actions/auto-comment@v1
25
        with:
26
          GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
27
          issuesOpened: |
28
            👀 @{{ author }}
29

30
            Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
31
            Please make sure you have given us as much context as possible.\
32
            非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
33
      - name: Auto Comment on Issues Closed
34
        uses: wow-actions/auto-comment@v1
35
        with:
36
          GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
37
          issuesClosed: |
38
            ✅ @{{ author }}
39

40
            This issue is closed, If you have any questions, you can comment and reply.\
41
            此问题已经关闭。如果您有任何问题,可以留言并回复。
42
      - name: Auto Comment on Pull Request Opened
43
        uses: wow-actions/auto-comment@v1
44
        with:
45
          GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
46
          pullRequestOpened: |
47
            👍 @{{ author }}
48

49
            Thank you for raising your pull request and contributing to our Community
50
            Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
51
            If you encounter any problems, please feel free to connect with us.\
52
            非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
53
            如果您遇到任何问题,请随时与我们联系。
54
      - name: Auto Comment on Pull Request Merged
55
        uses: actions-cool/pr-welcome@main
56
        if: github.event.pull_request.merged == true
57
        with:
58
          token: ${{ secrets.GH_TOKEN }}
59
          comment: |
60
            ❤️ Great PR @${{ github.event.pull_request.user.login }} ❤️
61

62
            The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our [discord](https://discord.com/invite/AYFPHvv2jT) and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.\
63
            项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 [discord](https://discord.com/invite/AYFPHvv2jT),然后私信 @arvinxx 或 @canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。
64
          emoji: 'hooray'
65
          pr-emoji: '+1, heart'
66
      - name: Remove inactive
67
        if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
68
        uses: actions-cool/issues-helper@v3
69
        with:
70
          actions: 'remove-labels'
71
          token: ${{ secrets.GH_TOKEN }}
72
          issue-number: ${{ github.event.issue.number }}
73
          labels: 'Inactive'
74

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

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

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

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