-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
140 lines (131 loc) · 3.5 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
title: Setting up a Reason React App
tagline: From Zero to Release in a blink 🚀
tags:
- reason
- bucklescript
- reason-react
- react
description:
Hello and welcome!
In this lab we will cover the basic setup needed to build Reason React
applications, covering testing, documenting them, building, and releasing them!
template:
name: my-reason-react-app
repo: lab-template.bootstrap-reason-react-app
before:
- type: createIssue
title: Welcome
body: 00.00-welcome.md
comments:
- 00.01-what-we-are-building.md
- 00.02-begin-here.md
steps:
- title: Welcome
description: Get the course started!
event: issues
link: '{{ repoUrl }}/issues/1'
actions:
- type: gate
left: '%payload.action%'
operator: ===
right: closed
- type: createPullRequest
title: Getting Started
body: 01.00-setup.md
head: setup
action_id: setup_pr
- type: respond
issue: '%actions.setup_pr.data.number%'
with: 01.00-setup.activities.md
- type: assignRegistrant
issue: '%actions.setup_pr.data.number%'
- type: respond
with: 00.03-goto-first-pr.md
data:
url: '%actions.setup_pr.data.html_url%'
- title: 'Install Dependencies'
description: Get the repo up and working in your computer
event: pull_request.synchronize
link: '{{ repoUrl }}/pull/2'
actions:
- type: getFileContents
action_id: fileContents
filename: 'yarn.lock'
- type: gate
left: '/^# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.$/gm'
operator: test
right: '%actions.fileContents%'
- type: respond
with: 01.01-install-vs-code.md
- title: 'Setting up an Editor'
description: Install VS Code
event: pull_request.synchronize
link: '{{ repoUrl }}/pull/2'
actions:
- type: getFileContents
action_id: fileContents
filename: lib/js/src/model.bs.js
- type: gate
left: '/Generated by BUCKLESCRIPT/gm'
operator: test
right: '%actions.fileContents%'
- type: respond
with: 01.02-build-project.md
- title: 'Building the Project'
description: Create project bundle
event: pull_request.synchronize
link: '{{ repoUrl }}/pull/2'
actions:
- type: getFileContents
filename: bundle/index.js
action_id: bundle_index_js
- type: gate
left: '/fastpack/gm'
operator: test
right: '%actions.bundle_index_js%'
- type: respond
with: 01.03-run-tests.md
- title: 'Testing the Project'
description: Run the tests in the project.
event: pull_request.synchronize
link: '{{ repoUrl }}/pull/2'
actions:
- type: getFileContents
filename: __tests__/model_test.re
action_id: model_test_re
- type: gate
left: '/toBe\(true\)/gm'
operator: test
right: '%actions.model_test_re%'
- type: respond
with: 01.05-check-app-local.md
- title: 'Verifying the App Works'
description: Create project bundle
event: pull_request_review.submitted
link: '{{ repoUrl }}/pull/2'
actions:
- type: gate
left: '%payload.review.state%'
operator: ===
right: approved
- type: createIssue
title: This is just the Beginning!
body: 02.00-end.md
action_id: final_issue
- type: respond
with: 01.06-github-pages.md
data:
final_issue: '%actions.final_issue.data.html_url%'
- type: mergePullRequest
pullRequest: Getting Started
- type: deleteBranch
branch: setup
- title: 'Fin: Wrapping it up!'
description: Additional links
event: issues
link: '{{ repoUrl }}/issues/3'
actions:
- type: gate
left: '%payload.action%'
operator: ===
right: closed