From 175263cded5faa88e1b074c06bad0a95230c3314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=E7=AB=99=E8=AE=AD=E7=BB=83=E8=90=A5=E5=AD=A6=E5=91=98-20?= =?UTF-8?q?200119?= Date: Wed, 18 Aug 2021 17:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B001=5FPython=E5=88=9D=E4=BD=93?= =?UTF-8?q?=E9=AA=8C/index.yml,=2001=5FPython=E5=88=9D=E4=BD=93=E9=AA=8C/n?= =?UTF-8?q?ext.md,=2001=5FPython=E5=88=9D=E4=BD=93=E9=AA=8C/first.md,=2002?= =?UTF-8?q?=5F=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B/next.md,=2002=5F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B/first.md,=2002=5F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=B1=BB=E5=9E=8B/index.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../first.md" | 2 +- .../index.yml" | 92 +++++++++---------- .../next.md" | 2 +- .../first.md" | 2 +- .../index.yml" | 2 +- .../next.md" | 2 +- 6 files changed, 51 insertions(+), 51 deletions(-) diff --git "a/01_Python\345\210\235\344\275\223\351\252\214/first.md" "b/01_Python\345\210\235\344\275\223\351\252\214/first.md" index 5e74787..f946d4d 100644 --- "a/01_Python\345\210\235\344\275\223\351\252\214/first.md" +++ "b/01_Python\345\210\235\344\275\223\351\252\214/first.md" @@ -3,4 +3,4 @@ (x) 开始学习 {{太棒了,让我们开始学习新的内容吧}} -|| 小提示:点击开始学习按钮就ok了 || \ No newline at end of file +|| 小提示:点击开始学习按钮就ok了 || diff --git "a/01_Python\345\210\235\344\275\223\351\252\214/index.yml" "b/01_Python\345\210\235\344\275\223\351\252\214/index.yml" index be507e8..8c8f077 100644 --- "a/01_Python\345\210\235\344\275\223\351\252\214/index.yml" +++ "b/01_Python\345\210\235\344\275\223\351\252\214/index.yml" @@ -57,54 +57,54 @@ step4: with: 01_step5_code.md to: step7 -# step5: -# link: '{{chapter_1_issue}}' -# #description: "提交代码" -# transitions: -# with: 'ch101' -# events: ['push'] -# action: -# - type: create_pipeline -# with: https://codechina.csdn.net/-/snippets/582/raw/master/.gitlab-ci.yml -# store: -# ch101_test_url: '{{result.data.html_url}}' -# ch101_test_id: '{{result.data.id}}' -# - type: issue_comment.created -# with: commit_ci_run_ch101.md -# to: step6 +step5: + link: '{{chapter_1_issue}}' + #description: "提交代码" + transitions: + with: 'ch101' + events: ['push'] + action: + - type: create_pipeline + with: https://codechina.csdn.net/-/snippets/582/raw/master/.gitlab-ci.yml + store: + ch101_test_url: '{{result.data.html_url}}' + ch101_test_id: '{{result.data.id}}' + - type: issue_comment.created + with: commit_ci_run_ch101.md + to: step6 -# step6: -# link: '{{chapter_1_issue}}' -# # description: "代码提交" -# # 判断CI 结果,成功的话提示下一步,失败的话提示重新 coding -# transitions: -# - with: -# events: ['pipeline'] -# left: 'failed' -# operator: '=' -# right: '{{object_attributes.status}}' -# action: -# # CI 未通过提示 -# - type: pipeline_result -# with: '{{ch101_test_url}}' -# - type: issue_comment.created -# with: commit_error_ch101.md -# to: step5 +step6: + link: '{{chapter_1_issue}}' + # description: "代码提交" + # 判断CI 结果,成功的话提示下一步,失败的话提示重新 coding + transitions: + - with: + events: ['pipeline'] + left: 'failed' + operator: '=' + right: '{{object_attributes.status}}' + action: + # CI 未通过提示 + - type: pipeline_result + with: '{{ch101_test_url}}' + - type: issue_comment.created + with: commit_error_ch101.md + to: step5 -# - with: '{{ch101_test_id}}' -# events: ['pipeline'] -# left: 'success' -# operator: '=' -# right: '{{object_attributes.status}}' -# action: -# # CI 通过提示 -# - type: pipeline_result -# with: '{{ch101_test_url}}' -# - type: issue_comment.created -# with: commit_ci_done_option.md -# - type: issue_comment.created -# with: chapter_1_end_1.md -# to: step7 + - with: '{{ch101_test_id}}' + events: ['pipeline'] + left: 'success' + operator: '=' + right: '{{object_attributes.status}}' + action: + # CI 通过提示 + - type: pipeline_result + with: '{{ch101_test_url}}' + - type: issue_comment.created + with: commit_ci_done_option.md + - type: issue_comment.created + with: chapter_1_end_1.md + to: step7 step7: link: '{{chapter_1_issue}}' diff --git "a/01_Python\345\210\235\344\275\223\351\252\214/next.md" "b/01_Python\345\210\235\344\275\223\351\252\214/next.md" index 19541f8..1d501c2 100644 --- "a/01_Python\345\210\235\344\275\223\351\252\214/next.md" +++ "b/01_Python\345\210\235\344\275\223\351\252\214/next.md" @@ -2,4 +2,4 @@ (x) 继续学习 {{太棒了,让我们看看接下来的学习内容吧}} -|| 小提示:点击继续学习按钮就可以进入下一步啦。 || \ No newline at end of file +|| 小提示:点击继续学习按钮就可以进入下一步啦。 || diff --git "a/02_\346\225\260\346\215\256\347\261\273\345\236\213/first.md" "b/02_\346\225\260\346\215\256\347\261\273\345\236\213/first.md" index 5e74787..f946d4d 100644 --- "a/02_\346\225\260\346\215\256\347\261\273\345\236\213/first.md" +++ "b/02_\346\225\260\346\215\256\347\261\273\345\236\213/first.md" @@ -3,4 +3,4 @@ (x) 开始学习 {{太棒了,让我们开始学习新的内容吧}} -|| 小提示:点击开始学习按钮就ok了 || \ No newline at end of file +|| 小提示:点击开始学习按钮就ok了 || diff --git "a/02_\346\225\260\346\215\256\347\261\273\345\236\213/index.yml" "b/02_\346\225\260\346\215\256\347\261\273\345\236\213/index.yml" index cde0730..038ca46 100644 --- "a/02_\346\225\260\346\215\256\347\261\273\345\236\213/index.yml" +++ "b/02_\346\225\260\346\215\256\347\261\273\345\236\213/index.yml" @@ -21,7 +21,7 @@ before: with: 002_1_paragraph_basic.md store: chapter_2_issue: '{{result.data.html_url}}' - - type: issue_comment.created + - type: choice with: first.md to: step1 diff --git "a/02_\346\225\260\346\215\256\347\261\273\345\236\213/next.md" "b/02_\346\225\260\346\215\256\347\261\273\345\236\213/next.md" index 19541f8..1d501c2 100644 --- "a/02_\346\225\260\346\215\256\347\261\273\345\236\213/next.md" +++ "b/02_\346\225\260\346\215\256\347\261\273\345\236\213/next.md" @@ -2,4 +2,4 @@ (x) 继续学习 {{太棒了,让我们看看接下来的学习内容吧}} -|| 小提示:点击继续学习按钮就可以进入下一步啦。 || \ No newline at end of file +|| 小提示:点击继续学习按钮就可以进入下一步啦。 || -- GitLab