Skip to content

Commit 061046d

Browse files
simplejasonvthinkxie
authored andcommitted
docs(changelog): add issue helper && 0.5.x docs automatically (#565)
1 parent 84895cb commit 061046d

4 files changed

Lines changed: 16 additions & 53 deletions

File tree

.github/ISSUE_TEMPLATE.md

Lines changed: 8 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,15 @@
11
<!--
2-
1. 官方 issue 用于报告 bug 和需求建议,关于Angular的使用和开发问题在这里可能不会得到解答,感谢您的理解。
3-
2. 建议使用英文进行提问,这样你的问题可以被更多的人阅读和回答。如果表达上确实较复杂,英文标题加中文描述也是可选的方案。
4-
3. 报告 BUG 时请务必按照下列格式书写,并尽可能提供源代码、在线演示(http://plnkr.co/edit/tpl:sKWy62)、复现步骤、复现演示、GIF 演示等。我们和你一样都希望尽快解决问题,请不要浪费时间在互相追问上。
5-
4. 注意你的 issue 格式,不适合阅读的格式会被忽视或直接关闭。
6-
5. 如果需要粘贴源码,尽量避免截图并注意代码格式。关于如何在 Markdown 中书写代码可以参考:https://segmentfault.com/markdown
7-
6. 抱怨不能解决问题,通畅有效和心情舒畅的交流才能解决。
8-
-->
9-
10-
## I'm submitting a...
11-
<!-- Check one of the following options with "x" -->
12-
<pre><code>
13-
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
14-
[ ] Feature request
15-
[ ] Documentation issue or request
16-
[ ] Regression (a behavior that used to work and stopped working in a new release)
17-
[ ] Support request => Please do not submit support request here
18-
</code></pre>
19-
20-
## Current behavior
21-
<!-- Describe how the issue manifests. -->
22-
23-
24-
## Expected behavior
25-
<!-- Describe what the desired behavior would be. -->
2+
IMPORTANT: Please use the following link to create a new issue:
263
4+
http://ng.ant.design/issue-helper/#/new-issue
275
28-
## Minimal reproduction of the problem with instructions
29-
<!--
30-
如果可能的话请尽量提供Plnkr地址:http://plnkr.co/edit/tpl:sKWy62
31-
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
32-
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:sKWy62).
6+
If your issue was not created using the app above, it will be closed immediately.
337
-->
348

35-
## What is the motivation / use case for changing the behavior?
36-
<!-- Describe the motivation or the concrete use case. -->
37-
38-
39-
## Environment
9+
<!--
10+
注意:请使用下面的链接来新建 issue:
4011
41-
<pre><code>
42-
Angular version: X.Y.Z
43-
<!-- Check whether this is still an issue in the most recent Angular version -->
44-
ng-zorro-antd version: X.Y.Z
45-
<!-- Check whether this is still an issue in the most recent ng-zorro-antd version -->
46-
Browser:
47-
- [ ] Chrome (desktop) version XX
48-
- [ ] Firefox version XX
49-
- [ ] Safari (desktop) version XX
50-
- [ ] IE version XX
51-
52-
For Tooling issues:
53-
- Node version: XX <!-- run `node --version` -->
54-
- Platform: <!-- Mac, Linux, Windows -->
12+
http://ng.ant.design/issue-helper/#/new-issue
5513
56-
Others:
57-
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->
58-
</code></pre>
14+
不是用上面的链接创建的 issue 会被立即关闭。
15+
-->

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"start": "ng serve",
99
"build": "ng build --prod",
1010
"doc": "ng build --prod",
11+
"helper": "bash ./release-helper.sh",
1112
"generate": "bash ./build.sh",
12-
"release": "npm run generate && ng build --prod",
13+
"release": "npm run generate && ng build --prod && npm run helper",
1314
"test": "node --max_old_space_size=5120 ./node_modules/@angular/cli/bin/ng test --single-run --code-coverage",
1415
"integration": "npm run generate && bash ./integration-test.sh",
1516
"lint": "ng lint",

release-helper.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
rm -rf issue-helper && rm -rf ./doc/issue-helper && git clone https://github.com/NG-ZORRO/issue-helper.git && cp -R issue-helper/issue-helper ./doc/
3+
rm -rf issue-helper
4+
# download 0.5.x
5+
rm -rf ./doc/version && mkdir ./doc/version && cd ./doc/version && git clone https://github.com/NG-ZORRO/0.5.5-doc.git 0.5.x

src/showcase/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<a href="#/changelog"><span>更新记录</span></a>
9191
</div>
9292
<div>
93-
<a target="_blank" rel="noopener noreferrer" href="https://github.com/NG-ZORRO/ng-zorro-antd/issues">
93+
<a target="_blank" rel="noopener noreferrer" href="http://ng.ant.design/issue-helper/#/new-issue">
9494
<span>报告 Bug</span></a>
9595
</div>
9696
</li>

0 commit comments

Comments
 (0)