2021-02-20 09:23:35 +08:00
name : Issue Open Check
on :
issues :
types : [ opened]
2022-04-11 11:15:26 +08:00
permissions :
contents : read
2021-02-20 09:23:35 +08:00
jobs :
2021-09-22 11:52:14 +08:00
issue-open-check :
2022-04-11 11:15:26 +08:00
permissions :
contents : read # for visiky/dingtalk-release-notify to get latest release
issues : write # for actions-cool/issues-helper to update issues
pull-requests : write # for actions-cool/issues-helper to update PRs
2021-02-20 09:23:35 +08:00
runs-on : ubuntu-latest
steps :
2022-03-19 21:53:48 +08:00
- uses : actions-cool/check-user-permission@v2
2021-03-04 22:51:42 +08:00
id : checkUser
with :
require : 'write'
2021-10-19 19:36:22 +08:00
check-bot : true
2021-03-04 22:51:42 +08:00
2023-01-11 20:30:08 +08:00
- name : add unconfirmed label
2023-01-11 21:37:51 +08:00
uses : actions-cool/issues-helper@v3
2023-01-11 20:30:08 +08:00
with :
actions : 'add-labels'
issue-number : ${{ github.event.issue.number }}
labels : 'unconfirmed'
2021-02-20 09:23:35 +08:00
- name : check invalid
2022-03-20 11:07:34 +08:00
if : (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.require-result == 'false')
2022-02-21 10:03:56 +08:00
uses : actions-cool/issues-helper@v3
2021-02-20 09:23:35 +08:00
with :
actions : 'create-comment,add-labels,close-issue'
issue-number : ${{ github.event.issue.number }}
labels : 'Invalid'
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 Helper](http://new-issue.ant.design) to create an issue, thank you!
你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](http://new-issue.ant.design) 来创建 issue 以方便我们定位错误。谢谢配合!
- name : check website
2022-02-21 10:03:56 +08:00
uses : actions-cool/issues-helper@v3
2021-02-20 09:23:35 +08:00
id : checkid
with :
actions : 'check-issue'
issue-number : ${{ github.event.issue.number }}
2021-12-21 16:53:57 +08:00
# 格式如:'x1,x2' or 'x1,x2/y1,y2' 最多支持 2 个数组
2022-12-09 18:47:53 +08:00
title-includes : '官网,网站,国内,镜像,mobile ant design,mobile.ant.design,ant design,ant design pro,pro.ant.design/挂了,挂掉了,无法访问,不能访问,访问速度,访问慢,访问不了,加载太慢,加载慢,加载很慢,出问题,打不开,登不上,can not open,cannot open,can not be reached'
2021-02-20 09:23:35 +08:00
- name : deal website
if : steps.checkid.outputs.check-result == 'true'
2022-02-21 10:03:56 +08:00
uses : actions-cool/issues-helper@v3
2021-02-20 09:23:35 +08:00
with :
actions : 'create-comment,close-issue'
issue-number : ${{ github.event.issue.number }}
body : |
2022-12-07 23:37:12 +08:00
如果你无法访问 Ant Design 官网,可以先点此[downforeveryoneorjustme.com/ant.design](https://downforeveryoneorjustme.com/ant.design) 检查网站是不是挂了,如果没挂,可以尝试翻墙或访问国内镜像站点。
2021-02-20 09:23:35 +08:00
## 官网
* Ant Design : https://ant.design
* Ant Design Pro : https://pro.ant.design
* Ant Design Pro Preview : https://preview.pro.ant.design
* Ant Design Mobile : https://mobile.ant.design
* Ant Motion : https://motion.ant.design
## 国内镜像
2022-11-17 21:24:40 +08:00
* 官方镜像 : https://ant-design.antgroup.com
2022-05-23 18:42:05 +08:00
* Gitee 镜像 : http://ant-design.gitee.io
2022-11-17 21:24:40 +08:00
* Ant Design 4.x : https://4x-ant-design.antgroup.com
* Ant Design 3.x : https://ant-design-3x.gitee.io
* Ant Design 2.x : https://ant-design-2x.gitee.io
* Ant Design 1.x : https://ant-design-1x.gitee.io
* Ant Design Pro : https://ant-design-pro.gitee.io
* Ant Design Mobile : https://antd-mobile.gitee.io
* Ant Motion : https://ant-motion.gitee.io
2021-09-22 11:52:14 +08:00
2021-02-20 09:23:35 +08:00
- name : check ie
if : contains(github.event.issue.body, 'ant-design-issue-helper') == true && contains(github.event.issue.title, 'IE9') == true || contains(github.event.issue.title, 'IE 9') == true || contains(github.event.issue.title, 'IE10') == true || contains(github.event.issue.title, 'IE 10') == true || contains(github.event.issue.title, 'IE11') == true || contains(github.event.issue.title, 'IE 11') == true || contains(github.event.issue.title, 'Internet Explorer') == true || contains(github.event.issue.body, 'IE9') == true || contains(github.event.issue.body, 'IE 9') == true || contains(github.event.issue.body, 'IE10') == true || contains(github.event.issue.body, 'IE 10') == true || contains(github.event.issue.body, 'IE11') == true || contains(github.event.issue.body, 'IE 11') == true || contains(github.event.issue.body, 'Internet Explorer') == true
2022-02-21 10:03:56 +08:00
uses : actions-cool/issues-helper@v3
2021-02-20 09:23:35 +08:00
with :
actions : 'add-labels'
issue-number : ${{ github.event.issue.number }}
labels : 'IE | Firefox | Safari,Internet Explorer'
2021-09-30 12:09:03 +08:00
2022-03-07 22:20:03 +08:00
- name : check ie11-
if : contains(github.event.issue.body, 'ant-design-issue-helper') == true && contains(github.event.issue.title, 'IE9') == true || contains(github.event.issue.title, 'IE 9') == true || contains(github.event.issue.title, 'IE10') == true || contains(github.event.issue.title, 'IE 10') == true || contains(github.event.issue.body, 'IE9') == true || contains(github.event.issue.body, 'IE 9') == true || contains(github.event.issue.body, 'IE10') == true || contains(github.event.issue.body, 'IE 10') == true
2022-02-21 10:03:56 +08:00
uses : actions-cool/issues-helper@v3
2021-09-30 12:09:03 +08:00
with :
actions : 'create-comment, close-issue'
issue-number : ${{ github.event.issue.number }}
body : |
Hello @${{ github.event.issue.user.login }}, v4 only support IE11 and above.
2022-03-19 18:22:27 +08:00
- name : send to dingtalk
uses : visiky/dingtalk-release-notify@main
with :
2022-11-28 10:41:40 +08:00
DING_TALK_TOKEN : |
${{ secrets.DINGDING_BOT_TOKEN }}
${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }}
2023-12-06 19:05:30 +08:00
notify_title : '🔥 @${{ github.event.issue.user.login }} 创建了 issue: ${{ github.event.issue.title }} ${{ github.event.issue.html_url }}'
2023-07-17 12:36:50 +08:00
notify_body : '### 🔥 @${{ github.event.issue.user.login }} 创建了 issue: [${{ github.event.issue.title }}](${{ github.event.issue.html_url }}) <hr />'
2022-03-19 18:56:55 +08:00
notify_footer : '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。'
2022-03-19 18:22:27 +08:00
at_all : false # whether to ding everybody