Files
2022-09-11 15:53:06 +08:00

88 lines
4.3 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Issue Comment
on:
issues:
types: [labeled]
permissions:
contents: read
jobs:
issue-labeled:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: Comment Feature
if: github.event.label.name == 'feature'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, thanks for your suggestions. We will have someone to follow up your suggestions.
你好 @${{ github.event.issue.user.login }},感谢提交建议!我们会有专人来跟踪该建议。
- name: Comment Bug
if: github.event.label.name == 'bug'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, thanks for your feedback. We will have someone to follow up your feedback.
你好 @${{ github.event.issue.user.login }},感谢提交反馈!我们会有专人来跟踪该反馈。
- name: Comment Help Wanted
if: github.event.label.name == 'help wanted'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Sorry @${{ github.event.issue.user.login }}, we do not have a good solution now. welcome to [send us a Pull Request](https://help.github.com/en/articles/creating-a-pull-request) for it. Make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
抱歉 @${{ github.event.issue.user.login }},目前,我们并没有很好地解决方法!欢迎直接在此仓库 [创建一个 Pull Request](https://help.github.com/en/articles/creating-a-pull-request) 来帮助我们解决这个问题。确保 CI 通过,我们会尽快进行 Review提前感谢和期待您的贡献。
- name: Comment Reproduce
if: github.event.label.name == 'reproduce'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }} we can not reproduce you feedback.Please provide a reproduction in order to address the issue.
你好 @${{ github.event.issue.user.login }}, 我们未能复现你的反馈。请提供一个复现步骤以便于我们排查问题。
- name: Comment Usage
if: github.event.label.name == 'usage' || github.event.label.name == 'question'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, Thanks for your using GoGoGo. It is recommended that you first check whether the corresponding document can solve your feedback.
你好 @${{ github.event.issue.user.login }},感谢您使用影梭,建议您首先查看对应的文档是否可以解决您的反馈。
- name: Comment Invalid
if: github.event.label.name == 'invalid'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment,close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please use the issue template to create an issue, thank you!
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。请务必根据 issue 模板来创建 issue以方便我们定位问题谢谢