Skip to content

Commit

Permalink
chore: 不按 issue 模版提交自动关闭 (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 authored Oct 27, 2023
1 parent 2edd99c commit 58508ea
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ eg.

<!-- Required! -->
<!-- eg. `s2Options` and `s2DataCfg`, or `<SheetComponent {...} />` -->
<!-- 请粘贴你的核心代码片段,包括但不限于 `报错信息`, `s2Options` 等,请不要粘贴你自己的业务代码,请注意使用 markdown code 标签 -->
<!-- 请粘贴你的核心代码片段 (文本形式,而不是图片),包括但不限于 `报错信息`, `s2Options` 等,请不要粘贴你自己的业务代码,请注意使用 markdown code 标签 -->
<!-- 如果你使用官网的在线示例,编辑代码后复现了 Bug,请粘贴你的代码,而不是直接贴一个在线示例的链接,没有任何意义,它不会保存你刚写的代码 -->

### 🔗 Reproduce Link
Expand Down
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,39 @@ labels: 🙏feature request
<!-- ⚠️ Please fill in the template strictly, otherwise it will be closed directly (请严格按照模板填写,否则直接关闭) -->
<!-- ⚠️ 请严格按照模板填写,否则直接关闭 -->

### 🏷 Version

<!-- Required! -->
<!-- 请填写你正在使用的版本 -->
<!-- 请不要写 🙅🏻‍♀️🚫 `latest`, `1.x` -->
<!--
eg.
| Package | Version |
| -------------- | ------- |
| @antv/s2 | 1.2.0 |
| @antv/s2-react | 1.3.3 |
| @antv/s2-vue | - |
-->

| Package | Version |
| -------------- | ------- |
| @antv/s2 | |
| @antv/s2-react | |
| @antv/s2-vue | |

### Sheet Type

<!-- Required! -->
<!-- 请填写你具体使用的表格类型 -->

- [ ] PivotSheet
- [ ] TableSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
- [ ] EditableSheet

### 🖋 Description

<!-- Required! -->
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
body: |
你好 @${{ github.event.issue.user.login }},经过我们的反复讨论, 你的需求现已被采纳, 我们会排期开发, 但人力资源有限, 短期内无法支持, 请关注后续发布日志。当然, 如果能贡献 PR 帮助我们改进, 不胜感激!
Hello, @${{ github.vent.issue.user.login }}, your feature request has been accepted after our repeated discussion. We will schedule the development. However, it could not be supported in the short term since limited time, please pay attention to the follow-up release logs. Of course, looking forward for your PR!
Hello, @${{ github.event.issue.user.login }}, your feature request has been accepted after our repeated discussion. We will schedule the development. However, it could not be supported in the short term since limited time, please pay attention to the follow-up release logs. Of course, looking forward for your PR!
- name: Rejected
if: github.event.label.name == '❌ won''t support'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/issue-opend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
Hello, @${{ github.event.issue.user.login }}, please edit your issue title. a concise issue title will save everyone time. please do not leave the title as the body or empty.
# 如果是 bug 的 issue, 但是基本的版本号,表格类型, 描述都没有, 直接关闭, 不多BB.
- name: check bug report issue body
if: contains(github.event.issue.title, '🐛') == true && contains(github.event.issue.body, 'Version') == false && contains(github.event.issue.body, 'Sheet Type') == false && contains(github.event.issue.body, 'Description') == false
# 如果 issue 的提交者无视模版, 连基本的版本号,表格类型, 描述都没有, 直接自动关闭, 不多BB.
- name: check issue body
if: contains(github.event.issue.body, 'Version') == false && contains(github.event.issue.body, 'Sheet Type') == false && contains(github.event.issue.body, 'Description') == false
uses: actions-cool/issues-helper@main
with:
actions: 'create-comment,add-labels,close-issue'
Expand Down

1 comment on commit 58508ea

@vercel
Copy link

@vercel vercel bot commented on 58508ea Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

antvis-s2 – ./

antvis-s2-antv-s2.vercel.app
antvis-s2.vercel.app
antvis-s2-git-master-antv-s2.vercel.app

Please sign in to comment.