Skip to content

Commit

Permalink
feat: 增加issue模版
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuimin45 committed Oct 17, 2023
1 parent b9b48af commit d01de2f
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ assignees: ''
> 请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
## 环境信息
- micro-app版本
- micro-app-chrome-plugin版本
- 主应用前端框架&版本:
- 子应用前端框架&版本:
- 主应用url:
- 子应用url:
- 构建工具&版本:
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/en-bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ assignees: ''
> Please provide a condensed code repository and upload it to your own github to help us reproduce your problem.
## Environment
- micro-app version:
- micro-app-chrome-plugin version:
- framework of base app & version:
- framework of sub app & version:
- framework of base app url:
- framework of sub app url:
- Build tools & version:
37 changes: 37 additions & 0 deletions .github/workflows/close_inactive_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Close Inactive Issue

on:
schedule:
- cron: "0 0 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: close inactive issue without reprodction
uses: actions-cool/[email protected]
with:
actions: 'close-issues'
labels: 'Need Reproduction'
inactive-day: 14
body: |
Since the issue was labeled with `Need Reproduction`, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要可复现步骤,却 14 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
- name: close inactive issue not use template
uses: actions-cool/[email protected]
with:
actions: 'close-issues'
labels: 'pls use issue template'
inactive-day: 14
body: |
Since the issue was labeled with `pls use issue template`, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要使用模板,却 14 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
- name: close inactive issue
uses: actions-cool/[email protected]
with:
actions: 'close-issues'
labels: 'inactive'
inactive-day: 14
body: |
Since the issue was labeled with `inactive`, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为不活跃,且 14 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
16 changes: 16 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy Docs to gh-pages
on:
push:
branches:
- master
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
37 changes: 37 additions & 0 deletions .github/workflows/issue-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Issue Comment

on:
issues:
types: [labeled]

jobs:
reply-helper:
runs-on: ubuntu-latest
steps:
- name: help wanted
if: github.event.label.name == 'pr welcome'
uses: actions-cool/[email protected]
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to submit compliant commit message, provide changelog/documentation/test cases, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
您好 @${{ github.event.issue.user.login }},我们完全同意您的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写符合规范的commit message,提供改动所需相应的 changelog、测试用例、文档等,我们会尽快进行 Review,提前感谢和期待您的贡献。
- name: pls use issue template
if: github.event.label.name == 'pls use issue template'
uses: actions-cool/[email protected]
with:
actions: 'create-comment, close-issue'
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please use the issue template to report. This issue will be closed.
您好 @${{ github.event.issue.user.login }},请使用 issue 模板反馈问题。该 issue 将要被关闭。
- name: Need Reproduction
if: github.event.label.name == 'Need Reproduction'
uses: actions-cool/[email protected]
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @${{ github.event.issue.user.login }}, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

0 comments on commit d01de2f

Please sign in to comment.