@@ -14,55 +14,65 @@ before:
1414
1515# Repo artifacts:
1616# 1. Issue: Welcome
17- # 2. Issue: Transfer your course
18- # -OR-
1917# 2. PR: Add a course title and description
2018# 3. PR: Setup the learner's repo
2119# 4. PR: Write the course steps
2220# 5. Issue: Publish your course
21+ # Note: if the learner chooses to transfer their course immediately, there will be an issue inserted after PR#2 with those instructions
2322
2423steps :
2524
2625# 1
2726- title : Welcome
2827 description : Decide whether to complete a guided course, or use boilerplate as is.
29- event : issues.closed
28+ event : issues
3029 link : ' {{ repoUrl }}/issues/1'
3130 actions :
3231 - type : gate
33- left : ' %payload.issue.assignee%'
32+ left : ' %payload.issue.title%'
33+ operator : ===
34+ right : Welcome
35+ - type : gate
36+ left : ' %payload.action%'
37+ operator : ===
38+ right : closed
39+ required : false
3440 else :
35- - type : createPullRequest
36- title : Add a course title and description
37- body : 01.0_add-title.md
38- head : title
39- action_id : metaPR
40- - type : assignRegistrant
41- issue : ' %actions.metaPR.data.number%'
42- - type : octokit
43- method : pullRequests.createComment
44- owner : ' %actions.metaPR.data.head.repo.owner.login%'
45- repo : ' %actions.metaPR.data.head.repo.name%'
46- number : ' %actions.metaPR.data.number%'
47- commit_id : ' %actions.metaPR.data.head.sha%'
48- path : config.yml
49- body : |
50- ```suggestion
51- title: My amazing course
52- ```
53- position : 6
41+ - type : gate
42+ left : ' %payload.action%'
43+ operator : ===
44+ right : assigned
45+ - type : createIssue
46+ title : Transfer your course
47+ body : how-to-publish.md
48+ action_id : transferIssue
5449 - type : respond
55- with : goto-first-pr .md
50+ with : goto-transfer .md
5651 data :
57- url : ' %actions.metaPR.data.html_url%'
58- - type : createIssue
59- title : Transfer your course
60- body : how-to-publish.md
61- action_id : transferIssue
52+ url : ' %actions.transferIssue.data.html_url%'
53+ - type : createPullRequest
54+ title : Add a course title and description
55+ body : 01.0_add-title.md
56+ head : title
57+ action_id : metaPR
58+ - type : assignRegistrant
59+ issue : ' %actions.metaPR.data.number%'
60+ - type : octokit
61+ method : pullRequests.createComment
62+ owner : ' %actions.metaPR.data.head.repo.owner.login%'
63+ repo : ' %actions.metaPR.data.head.repo.name%'
64+ number : ' %actions.metaPR.data.number%'
65+ commit_id : ' %actions.metaPR.data.head.sha%'
66+ path : config.yml
67+ body : |
68+ ```suggestion
69+ title: My amazing course
70+ ```
71+ position : 6
6272 - type : respond
63- with : goto-transfer .md
73+ with : goto-first-pr .md
6474 data :
65- url : ' %actions.transferIssue .data.html_url%'
75+ url : ' %actions.metaPR .data.html_url%'
6676
6777# 2
6878- title : Give your course a title
0 commit comments