Skip to content

Commit 5e66ea8

Browse files
lcx-seimalijinke666yingying.xwysemantic-release-botzxc0328
authored
* fix: total 配置项取用错误 (#1338) * feat(interaction): 增加单元格的右键事件 close #1326 (#1334) * chore: 🤖 更新 lock 和 changelog 文件 (#1339) * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🔖 @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1003) * chore(release): 🤖 @antv/s2-v1.6.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1046) * chore(release): 🤖 @antv/s2-v1.7.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.9.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.9.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.9.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.9.1 [skip ci] * chore: 🤖 更新 lock 和 changelog 文件 (#1101) * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🔖 @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.3.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.3.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.4.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.4.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.5.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.5.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1003) * chore(release): 🤖 @antv/s2-v1.6.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.6.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1046) * chore(release): 🤖 @antv/s2-v1.7.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.7.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.8.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.8.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.9.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.9.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.9.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.9.1 [skip ci] * chore: 🤖 更新 lock 和 changelog 文件 Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: xinhui.zxh <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: Jinke Li <[email protected]> * feat(interaction): 透视表支持隐藏列头 (#1081) * feat(interaction): 透视表支持隐藏列头 * fix: 修复默认隐藏不生效 * docs: 修改文档错别字 * docs: 优化文档 * test: 修复测试 * style(drilldown): 下钻组件增加自定义dom节点 (#1102) * style(drilldown): 下钻组件增加自定义dom节点 * docs: 补充下钻配置文档 * fix: 修复行头为空无默认角头指标文字问题 (#1104) * fix: 修复行头为空无默认角头指标文字问题 * test: 增加角头单元格文本单测 * style: 代码优化 * style: 代码优化 * feat(tooltip): tooltip 自定义操作项点击事件透出 cell 信息 close #1106 (#1107) * feat(tooltip): tooltip 自定义操作项点击事件透出 cell 信息 close #1106 * docs: 完善文档 * fix: 不添加总计时错误地添加了小计节点 (#1111) * fix: 不添加总计时错误地添加了小计节点 * test: 增加总计节点测试 * docs: 新增获取单元格数据文档 (#1117) * fix: 增加行头收起展开按钮回调事件的透传参数 (#1121) * fix: 增加行头收起展开按钮回调事件的透传参数 * test: 单测修复 * fix: 修复头部cell错误使用meta中formatter的问题,close #1014 (#1120) * fix: 修复头部cell错误format问题 * test: 补充头部cell单测 * fix: 移除col cell中无用的formatter属性 * fix: 对于 extra 字段单独处理 * fix: 明细表锁行/列时分割线阴影显隐逻辑 (#1123) * fix(facet): 明细表分界线阴影按需绘制 * fix(facet): 兼容分页情况 * fix(copy): 当异步复制失败时降级为同步复制 (#1125) * fix(copy): 当异步复制失败时降级为同步复制 * docs: 更新文档 * docs: 更新demo * test: 更新测试 * fix: rename * test: 修复测试 * fix: 梳理单元格对齐方式, close #1084 (#1128) * fix: 修复row cell 文本对齐 * fix: 修复corner cell 文本对齐 * refactor: remove unused import * docs: shrink icon size * docs: add custom alignment docs * docs: add alt for img * docs: add space between word and Chinese * feat: ✨ 支持覆盖默认icon (#1130) * fix: corner 事件监听失效(之前只有点击文字时生效) (#1131) * fix: 修复对全局鼠标按下事件的污染 (#1132) * fix(interaction): 修复开启复制后, 无法复制表格外的文字 (#1134) * fix(interaction): 修复开启复制后, 无法复制表格外的文字 * chore: 语法问题 * docs: 新增如何提问 faq (#1118) * docs: 新增如何提问 faq * chore: 更新 pr reviewers * chore: 润湿文档 & s2options => s2Options * feat: ✨ 允许用户自定义行头单元格宽度 (#1135) * feat: 维度切换组件增加allowEmpty配置 close #533 (#1136) * feat: add allowEmpty config for switcher * docs: update swithcer docs for allow empty config * docs: add demo gif in docs * feat: adaptive 的 container 自适应包含 header 和 page (#1133) * feat: adaptive 的 container 自适应包含 header 和 page * refactor: adaptive 自适应,使用flex 替代直接获取 element height的方式 * fix: 修复单测报错,1 changeSize 命名 g-base 重复,导致部分代码调用出错。2 添加 wrapper 参数 * test: adaptive 为 false 时,options width 和 height 改变不需要触发 changeSheetSize 方法 * refactor: 添加 changeSize 别名方法,兼容线上使用 * refactor: 样式合并 * feat(tooltip): 支持自定义挂载节点 (#1139) * feat(tooltip): 支持自定义挂载节点 * test: 修复测试 * test: 修改测试断言描述 * test: 修复测试 * test: 修复测试 * fix: 修复未开启tooltip, 还是会渲染 container 节点的问题 * test: 修复测试 * chore(release): @antv/[email protected] @antv/[email protected] (#1141) * chore(release): 🤖 @antv/s2-v1.10.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.10.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.11.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.11.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1168) * chore(release): 🤖 @antv/s2-v1.12.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.11.1 [skip ci] * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.12.1 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.11.2 [skip ci] * fix: 指标列头对齐样式修复升级 * fix: 指标列头对齐样式修复升级 * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-v1.12.2 [skip ci] * chore(release): 🔖@antv/[email protected] * chore(release): 🤖 @antv/s2-react-v1.11.3 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1198) * chore(release): 🤖 @antv/s2-v1.13.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.12.0 [skip ci] * chore(release): 🔖@antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.13.1 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.12.1 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] (#1247) * chore(release): 🤖 @antv/s2-v1.14.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.13.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.15.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.14.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.16.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.15.0 [skip ci] * chore(release): @antv/[email protected] @antv/[email protected] * chore(release): 🤖 @antv/s2-v1.17.0 [skip ci] * chore(release): 🤖 @antv/s2-react-v1.15.1 [skip ci] * chore: 🤖 更新 lock 和 changelog 文件 Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: xinhui.zxh <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: 刘嘉一 <[email protected]> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: stone <[email protected]> * chore(ci): 增加 sync changelog 成功&失败的通知 (#1340) * chore: 增加 pengding 标签 action (#1341) * fix: 不应以mutable的方式修改headerActionIcons (#1331) * fix: 不应以mutable的方式修改headerActionIcons * test: 修复下钻测试 * refactor: 优化执行下钻函数 * chore(ci): 修复 action 格式错误 (#1343) * docs: 修正总计文档 (#1347) * fix(facet): DataCell 边框改为统一绘制的 Grid (#1297) * feat: grid 绘制 * fix: 添加测试用例 * fix: 还原 stateShapes 修改 * fix: revert change * fix: 单测修复 * fix: 单测修复 * fix: 常量抽取 * fix: cr 修复 * fix: 测试修复 * fix: 减少 if 嵌套 * fix(tooltip): 修复存在小计/总计时汇总数据计算错误 close #1137 (#1346) * fix(tooltip): 修复存在小计/总计时汇总数据计算错误 close #1137 * fix: 更新注释 * fix: 兼容行头场景 * test: 增加单测 * fix: 优化 getMeta 写法 * fix: update * feat: 支持回调函数调整 Tooltip 位置 (#1350) * feat: 支持回调函数调整 Tooltip 位置 * style: 代码优化 * fix(interaction): 修复默认隐藏列的配置更新为空数组时, 未触发表格更新 (#1351) * fix(interaction): 修复默认隐藏列的配置更新为空数组时, 未触发表格更新 * fix: 简化 render 参数 * docs: 补充文档 * refactor(tooltip): 增加 adjustPosition 回调参数 (#1354) * refactor(tooltip): 增加 adjustPosition 回调参数 * style: fix cr * fix: 下钻数据没有按照用户数据展示 (#1353) * fix: 树状结构下多层级排序失效的问题 * fix: clearDrillDown 无法全量清空的问题 * chore: 修改注释错误 * test: 测试添加组内排序后树状结构下展示是否正确 * test: 测试第二次下钻的数据,按照第一次下钻的顺序排序的问题 * chore: 使用 typeof 判断类型,会误判null, 使用 isObject 进行判断 * docs: 修正下钻文档参数错误 * feat: 丰富tooltip关闭的验证逻辑 (#1352) * feat: 丰富tooltip关闭的验证逻辑 * test: 补充测试用例 pr.#1352 * test: 测试用例逻辑校正 * chore: react-playgroud demo customTooltip默认状态调整 * feat(theme): 新增度量值的主题配置, 修复小计总计主题配置不生效 close #1357 (#1364) * feat(theme): 新增度量值的主题配置, 修复小计总计主题配置不生效 close #1357 * test: 增加主题测试 * docs: 增加自定义小计/总计单元格的例子 (#1366) * fix(interaction): 修复自定义单元格有自定义图片时无法触发点击 close #1360 (#1365) * fix(interaction): 修复自定义单元格有自定义图片时无法触发点击 close #1360 * chore: 删除测试代码 * feat: Vue 1.0 (#1290) * chore: 添加 antd vue 依赖 * refactor: 重新组织playgorund代码结构,增加less打包配置 * chore: 添加 shared 工具包 * refactor: 删除冗余配置属性s2Options * refactor: 简化useSpreadsheet hook以及相关类型定义 * refactor: 抽离getBaseSheetComponentOptions方法 * feat: 抽离公共类型到shared中 * feat: 加入最基础版base-sheet组件 * chore: update vue-tsc * fix: 修复类型错误 * feat: 添加emit配置 * fix: 处理不是以on开头的emit * refactor: 优化component类型定义 * refactor: 取消App.vue的setup模式 * feat: 增加useEvent hook * feat: 增加event事件demo * fix: 调整监听的生命周期 * fix: 修复getSpreadsheet回调处理方式 * feat: 构建实例时使用原始数据而非响应式数据 * feat: pagination 翻页器 * feat: 增加 useUpdate hooks 用于更新配置 * refactor: 抽离工具函数traverse * refactor: 代码风格优化 * refactor: 重新定义showPagination * refactor: 统一react/vue的i18n * fix: type 重用 * refactor: 优化mutable类型定义 * refactor: useEvents内部处理生命周期 * feat: 增加 useResize hook 事件 * feat: 完善 useResize hook 事件, 重构react中 resize事件 * fix: 修复base sheet props类型问题 fix: 修复useResize ut * refactor: 简化useUpdate处理配置逻辑 * feat: 在useLoading中添加layout响应事件 * refactor: 修复typo * refactor: 删除core层readonly限制 * chore: 升级vue-tsc * fix: 修复类型定义问题 * refactor: 重构i18n * refactor: 处理i18n引入模块问题 * refactor: resize加入trailing配置 * refactor: getInitProps增加对optional key的处理 * feat: 新增 Vue 的 Tooltip 适配 * feat: 新增 Vue 的 Tooltip 适配 * feat: 新增 Vue 的 Tooltip 适配 * feat(interaction): vue 和 react 增加右键事件透传 * fix: 修复 tooltip 类型定义问题 * refactor: 重命名 base sheet props, emits 类型定义 * Revert "refactor: 重命名 base sheet props, emits 类型定义" This reverts commit 59f2d4c. * feat: 增加pivot sheet 组件 * feat: 增加table sheet, sheet入口 组件 * feat: 增加useExpoes hook * fix: remove trailing config for debounce * fix(tooltip): 修复 tooltip 内容不更新的问题 * docs: 添加 vue readme 文档 * docs: 更新 vue issue template * refactor: 细节优化 * docs: 简介添加 vue 版本介绍 * docs: 添加 vue quick start * docs: 添加 vue 获取组件实例文档 Co-authored-by: 刘嘉一 <[email protected]> Co-authored-by: Jinke Li <[email protected]> * fix: fieldValue精度过高时intervalShape未绘制 (#1372) * fix(strategysheet): 修复趋势分析表多列头时叶子节点未和数值单元格对齐 (#1371) * fix(strategysheet): 修复趋势分析表多列头时叶子节点未和数值单元格对齐 * test: 增加主题测试 * fix: 明细表下range-selection报错 (#1368) * docs: 增加 vue 自适应文档 (#1373) * docs: 增加 vue 自适应文档 * docs: 修改缩进 * Update S2DataConfig.zh.md (#1369) * docs: readme中添加 s2-vue badges (#1375) * feat: sortFunc 支持使用手动排序兜底 (#1374) * feat: 增加sortFunc兜底排序 * docs: 更新sortFunc文档 * chore: 并发构建 (#1376) * chore: 文案修正 (#1377) * chore: 文案修正 * chore: fix ci * chore(ci): ci 构建提速 (#1378) * fix: 增加默认条件格式默认默认默认值 (#1379) * docs: 新增马赛克图 (#1382) * docs: 文档增加 s2-vue 的说明 (#1380) * docs: 文档增加 s2-vue 的说明 * docs: fix * ci: 回退回 macos-11 * test: fix * feat: 新增 "如何用 S2 买房" demo (#1383) * fix: 修复表头组件中,高级排序无效问题 * docs: 修复高级排序 demo 无法留存状态的问题 * feat: 新增 "如何用 S2 买房" demo * feat: 给 gatsby 添加样式 * chore(release): @antv/[email protected] @antv/[email protected] @antv/[email protected] Co-authored-by: Jinke Li <[email protected]> Co-authored-by: yingying.xwy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: xinhui.zxh <[email protected]> Co-authored-by: wengyidong.wyd <[email protected]> Co-authored-by: YardWill <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Wenjun Xu <[email protected]> Co-authored-by: stone <[email protected]> Co-authored-by: edison-tianhe <[email protected]>
1 parent 75ac5fc commit 5e66ea8

File tree

252 files changed

+7629
-2609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+7629
-2609
lines changed

.eslintrc.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ module.exports = {
3333
},
3434
},
3535
rules: {
36-
'react-hooks/exhaustive-deps': 'warn',
37-
'react-hooks/rules-of-hooks': 'error',
3836
'prettier/prettier': [
3937
1,
4038
{
@@ -49,7 +47,7 @@ module.exports = {
4947
},
5048
],
5149
'import/order': 2,
52-
'import/no-default-export': 2,
50+
'import/no-default-export': 0,
5351
'no-restricted-syntax': 0,
5452
semi: 0,
5553
'no-console': 2,
@@ -73,6 +71,8 @@ module.exports = {
7371
'@typescript-eslint/no-empty-function': 0,
7472
'@typescript-eslint/explicit-module-boundary-types': 0,
7573
'import/no-named-default': 0,
74+
'react-hooks/exhaustive-deps': 0,
75+
'react-hooks/rules-of-hooks': 0,
7676
'react/jsx-filename-extension': [
7777
1,
7878
{
@@ -112,7 +112,7 @@ module.exports = {
112112
'prefer-arrow-callback': 2,
113113
'prefer-const': 2,
114114
'max-statements-per-line': [2, { max: 1 }],
115-
'max-params': [1, 3],
115+
'max-params': [1, 4],
116116
'no-unreachable': 2,
117117
eqeqeq: [
118118
2,
@@ -122,11 +122,20 @@ module.exports = {
122122
},
123123
],
124124
curly: [2, 'multi-line', 'consistent'],
125+
'guard-for-in': 0,
126+
'vue/multi-word-component-names': 0,
125127
},
126128
overrides: [
127129
{
128130
files: ['*.vue'],
129131
parser: 'vue-eslint-parser',
130132
},
133+
{
134+
files: ['*.tsx'],
135+
rules: {
136+
'react-hooks/exhaustive-deps': 1,
137+
'react-hooks/rules-of-hooks': 2,
138+
},
139+
},
131140
],
132141
};

.github/ISSUE_TEMPLATE/ask-for-question.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: '🤔'
55
labels: ❔question
66
---
77

8-
98
### 🖋 Description
109

1110
### 😊 Expected Behavior

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,36 @@ title: '🐛'
77
### 🏷 Version
88

99
<!-- Required! -->
10+
<!-- eg. `1.16.0` 🙅🏻‍♀️🚫 `latest`, `1.x` -->
1011

1112
| Package | Version |
1213
| -------------- | --------- |
13-
| @antv/s2 | - |
14-
| @antv/s2-react | - |
14+
| @antv/s2 | |
15+
| @antv/s2-react | |
16+
| @antv/s2-vue | |
17+
18+
### Sheet Type
19+
20+
<!-- Required! -->
21+
22+
- [ ] PivotSheet
23+
- [ ] TableSheet
24+
- [ ] GridAnalysisSheet
25+
- [ ] StrategySheet
1526

1627
### 🖋 Description
1728

1829
<!-- Required! -->
1930

2031
### ⌨️ Code Snapshots
2132

33+
<!-- Required! -->
2234
<!-- eg. `s2Options` and `s2DataCfg`, or `<SheetComponent {...} />` -->
2335

2436
### 🔗 Reproduce Link
2537

38+
<!-- eg. use S2 code sandbox template https://codesandbox.io/s/29zle -->
39+
2640
### 🤔 Steps to Reproduce
2741

2842
<!-- Required! -->
@@ -33,4 +47,4 @@ title: '🐛'
3347

3448
### 💻 System information
3549

36-
<!-- eg: chrome: v91.0, window -->
50+
<!-- eg: chrome: v91.0, window 🙅🏻‍♀️🚫 `latest`, `1.x` -->

.github/workflows/auto-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
if: "!contains(github.event.head_commit.message, '[skip ci]') && startsWith(github.event.head_commit.message , 'chore(release):')"
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717

18-
- name: Use Node.js 16.x
19-
uses: actions/setup-node@v2
18+
- name: Use Node.js 16
19+
uses: actions/setup-node@v3
2020
with:
21-
node-version: 16.x # semantic-release 需要 >= 16 的 Node.js 环境
21+
node-version: 16 # semantic-release 需要 >= 16 的 Node.js 环境
2222
cache: 'yarn'
2323

2424
- name: Install dependencies

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

.github/workflows/compressed-size.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
jobs:
88
compressed-size:
99

10-
runs-on: ubuntu-latest
10+
runs-on: macos-latest
1111

1212
steps:
1313

14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- uses: preactjs/compressed-size-action@v2
1616
with:
1717
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/issue-labeled.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
token: ${{ secrets.GITHUB_TOKEN }}
1818
issue-number: ${{ github.event.issue.number }}
1919
body: |
20-
你好 @${{ github.event.issue.user.login }},请提供一个可以在线访问的链接, 或者使用 [codesandbox](https://codesandbox.io/s/29zle) 提供示例并详细说明复现步骤, 15 天内未回复issue自动关闭。
20+
你好 @${{ github.event.issue.user.login }},请提供一个可以在线访问的链接, 或者使用 [codesandbox](https://codesandbox.io/s/29zle) 提供示例并详细说明复现步骤 ([查看更多模板](https://www.yuque.com/antv/vo4vyz/bam4vz)), 15 天内未回复issue自动关闭。
2121
22-
Hello, @${{ github.event.issue.user.login }}, please provide an accessible link or usage [codesandbox](https://codesandbox.io/s/29zle) to describe the reproduction steps. The issue will be closed without any replay within 15 days.
22+
Hello, @${{ github.event.issue.user.login }}, please provide an accessible link or usage [codesandbox](https://codesandbox.io/s/29zle) to describe the reproduction steps ([more template](https://www.yuque.com/antv/vo4vyz/bam4vz)). The issue will be closed without any replay within 15 days.
2323
2424
- name: Need more info
2525
if: github.event.label.name == '👀 need more info'
@@ -91,7 +91,19 @@ jobs:
9191
body: |
9292
你好 @${{ github.event.issue.user.login }},经过我们的反复讨论, 你的需求现已被采纳, 我们会排期开发, 请关注后续发布日志。
9393
94-
Hello, @${{ github.event.issue.user.login }}, your feature request have been accepted after our repeated discussion. We will schedule the development, please pay attention to the follow-up release logs.
94+
Hello, @${{ github.event.issue.user.login }}, your feature request has been accepted after our repeated discussion. We will schedule the development, please pay attention to the follow-up release logs.
95+
96+
- name: Pending
97+
if: github.event.label.name == '💤 pending'
98+
uses: actions-cool/issues-helper@main
99+
with:
100+
actions: 'create-comment'
101+
token: ${{ secrets.GITHUB_TOKEN }}
102+
issue-number: ${{ github.event.issue.number }}
103+
body: |
104+
你好 @${{ github.event.issue.user.login }},经过我们的反复讨论, 你的需求现已被采纳, 我们会排期开发, 但人力资源有限, 短期内无法支持, 请关注后续发布日志。当然, 如果能贡献 PR 帮助我们改进, 不胜感激!
105+
106+
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!
95107
96108
- name: Rejected
97109
if: github.event.label.name == '❌ rejected'

.github/workflows/lint.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@ on: [push, pull_request]
44

55
jobs:
66
lint:
7-
runs-on: ubuntu-latest
7+
runs-on: macos-latest
88
if: "!contains(github.event.head_commit.message, '[skip ci]')"
99
strategy:
1010
matrix:
11-
# node-version: [12.x, 14.x, 16.x]
12-
node-version: [16.x]
11+
node-version: [16]
1312

1413
steps:
15-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1615

1716
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1918
with:
2019
node-version: ${{ matrix.node-version }}
2120
cache: 'yarn'

.github/workflows/preview-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Preview Build
22

3-
on:
3+
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

@@ -9,14 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
ref: ${{ github.event.pull_request.head.sha }}
1515

1616
- name: build
1717
run: |
1818
yarn site:bootstrap
1919
yarn site:build
20+
2021
- name: upload dist artifact
2122
uses: actions/upload-artifact@v2
2223
with:

.github/workflows/sync-notify.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: 📢 Sync Notify
2+
3+
on:
4+
workflow_run:
5+
workflows: ["🔁 Sync Site S2 Lock And Changelog With PR"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
on-success:
11+
runs-on: ubuntu-latest
12+
if: github.event.workflow_run.conclusion == 'success'
13+
steps:
14+
- name: Sync success after ding talk dev group notify
15+
uses: zcong1993/actions-ding@master
16+
with:
17+
dingToken: ${{ secrets.DING_TALK_ACCESS_TOKEN }}
18+
ignoreError: true
19+
body: |
20+
{
21+
"msgtype": "link",
22+
"link": {
23+
"title": "✅ 同步 S2 Lock 和 Changelog 成功",
24+
"text": "📢 请发布值班合并该 PR 后, 安装 S2 最新版本, 本地运行官网, 检查无误后部署 (根目录运行: `yarn site:deploy`)",
25+
"messageUrl": "https://github.com/antvis/S2/actions/workflows/sync-site-lock-changelog-with-pr.yml",
26+
"picUrl": "https://gw.alipayobjects.com/zos/antfincdn/ISzgBCtgR/2c5c4aaa-4f40-46f7-8f6b-427fa9ff07bb.png"
27+
}
28+
}
29+
on-failure:
30+
runs-on: ubuntu-latest
31+
if: github.event.workflow_run.conclusion == 'failure'
32+
steps:
33+
- name: Sync failed after ding talk dev group notify
34+
uses: zcong1993/actions-ding@master
35+
with:
36+
dingToken: ${{ secrets.DING_TALK_ACCESS_TOKEN }}
37+
ignoreError: true
38+
body: |
39+
{
40+
"msgtype": "link",
41+
"link": {
42+
"title": "🚨 🔁 同步 S2 Lock 和 Changelog 失败",
43+
"text": "🔗 请点击链接查看具体原因, 点击右上角 [Re-run all jobs] 手动同步 🚑",
44+
"messageUrl": "https://github.com/antvis/S2/actions/workflows/sync-site-lock-changelog-with-pr.yml",
45+
"picUrl": "https://gw.alipayobjects.com/zos/antfincdn/ISzgBCtgR/2c5c4aaa-4f40-46f7-8f6b-427fa9ff07bb.png"
46+
}
47+
}

0 commit comments

Comments
 (0)