-
-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: fix contains check #28666
ci: fix contains check #28666
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5520cb8:
|
Size Change: 0 B Total Size: 797 kB ℹ️ View Unchanged
|
这样是不是够用了。 |
可以使用正则表达式么?例如 title.match |
够了,11 以后 再无 IE 😂 |
这个主要是写在 yml 配置里,怕不支持太复杂的语法。如果放到 js 里,就有很多办法了 |
@@ -60,7 +60,7 @@ jobs: | |||
* Ant Design Pro Preview : https://prosite.z23.web.core.windows.net | |||
|
|||
- name: check-ie | |||
if: contains(github.event.issue.body, 'ant-design-issue-helper') == true && (contains(github.event.issue.title, 'IE') == true || contains(github.event.issue.title, 'Internet Explorer') == true) | |||
if: contains(github.event.issue.body, 'ant-design-issue-helper') == true && github.event.issue.title.includes('IE9') == true || github.event.issue.title.includes('IE 9') == true || github.event.issue.title.includes('IE10') == true || github.event.issue.title.includes('IE 10') == true || github.event.issue.title.includes('IE11') == true || github.event.issue.title.includes('IE 11') == true || contains(github.event.issue.title, 'Internet Explorer') == true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样精确一点,body 里有也可以。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚看到 😅
github 的自带函数不区分大小写校验
导致 #28659 校验 IE 通过
@kerm1it 有没有好的校验单个 IE 的办法,用 split(' ') ?但有人会用 IE11 之类的,所以还是决定直接校验大写 'IE'