@@ -5,35 +5,54 @@ template:
55 name : partner-bootcamp-actions
66before :
77 - type : createIssue
8- title : Setting up your environment!
8+ title : " Activity 1: Setting up your environment!"
99 body : new-issue.md
1010 labels :
1111 - provision probot app
12+ store :
13+ EnvironmentIssueUrl : ' {{ result.data.html_url }}'
14+ EnvironmentIssueNumber : ' {{ result.data.number }}'
1215 - type : createPullRequest
13- title : Creating Azure Resources
16+ title : " Activity 2: Creating Azure Resources"
1417 body : create-azure-resources.md
1518 head : creating-azure-resources
19+ store :
20+ AzureSetupPRNumber : ' {{ result.data.number }}'
21+ AzureSetupPRUrl : ' {{ result.data.html_url }}'
22+
23+ - type : createPullRequest
24+ title : " Activity 3: Add a CI/CD workflow"
25+ head : add-ci-cd-workflow
26+ body : ci-cd-instructions.md
27+
28+ - type : createPullRequest
29+ title : " Activity 4: Add a probot feature"
30+ head : add-probot-feature
31+ body : probot-feature-instructions.md
32+
33+ - type : createPullRequest
34+ title : " Activity 5: Add a teardown workflow"
35+ head : add-teardown-workflow
36+ body : teardown-instructions.md
37+
38+
39+
1640steps :
1741 - title : First step
1842 description : The first step in your course
1943 event : pull_request.closed
20- link : " {{ repoUrl }}"
44+ link : " {{ store.EnvironmentIssueUrl }}"
2145 actions :
2246 # if the pull was merged then comment in the issue with steps
2347 # to trigger the workflow
24- - type : gate
25- every : true
26- gates :
27- - left : ' %payload.action%'
28- operator : ===
29- right : closed
30- - left : ' %payload.pull_request.merged%'
31- else :
32- - type : closeIssue
33- issue : Setting up your environment!
48+ - type : gate
49+ left : ' {{ payload.pull_request.merged }}'
50+ else :
51+ - type : closeIssue
52+ issue : ' {{ store.EnvironmentIssueNumber }}'
3453 # else if pull was simply closed, then also close the issue
3554 # and don't comment
36- - type : respond
37- with : trigger-azure-config.md
38- issue : Setting up your environment!
39- # Respond with "all-set" for next class... see you soon!
55+ - type : respond
56+ with : trigger-azure-config.md
57+ issue : Setting up your environment!
58+ # Respond with "all-set" for next class... see you soon!
0 commit comments