This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.yml
235 lines (218 loc) · 6.55 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
title: InnerSource fundamentals
tagline: High level yet impactful InnerSource concepts to help transform your organization.
description: Organizations of all sizes and in all industries are chatting about InnerSource concepts. This course walks you through some of the key concepts of InnerSource and helps you build up an internal toolkit for adopting InnerSource practices.
template:
name: innersource
repo: innersource-template
before:
- type: createIssue
title: Welcome
body: 00_welcome.md
- type: updateBranchProtection
# Course artifacts:
# 1. Issue: Welcome
# 2. PR: Repository ownership and names
# 3. PR: Create discoverable repos
# 4. PR: Issue and PR templates
# 5. PR: Workflows
# 6. PR: Managing projects on GitHub
# 7. PR: Measuring success
# 8: Issue: Publish your toolkit
steps:
#1
- title: Answer your first challenge question
description: Determine the differences between open source and InnerSource.
link: '{{ repoUrl }}/issues/1'
event: issues.edited
actions:
- type: createPullRequest
title: Repository ownership and names
head: repo-owner
body: 01_repo-owner.md
action_id: ownerPR
- type: respond
with: 01_innersource-v-opensource.md
data:
url: '%actions.ownerPR.data.html_url%'
- type: closeIssue
#2
- title: Answer the ownership challenge
description: Discover how repository ownership affects visibility and access.
link: '{{ repoUrl }}/pull/2'
event: pull_request.edited
actions:
- type: removeBranchProtection
required: false
- type: respond
with: 02_repo-owner-answer.md
#3
- title: Merge the ownership pull request
description: Beef up your InnerSource toolkit with resources about repository ownership.
link: '{{ repoUrl }}/pull/2'
event: pull_request.closed
actions:
- type: updateBranchProtection
required: false
- type: createPullRequest
title: Create discoverable repos
head: discoverable-repos
body: 03_discoverable.md
action_id: discoverablePR
- type: respond
with: goto-pr.md
data:
url: '%actions.discoverablePR.data.html_url%'
#4
- title: Answer the discoverability challenge
description: Learn about ways to make your repository easy to discover.
link: '{{ repoUrl }}/pull/3'
event: issue_comment.created
actions:
- type: removeBranchProtection
required: false
- type: respond
with: 04_discoverability-answer.md
#5
- title: Merge the discoverability pull request
description: Add resources for making discoverable repositories to your InnerSource toolkit.
link: '{{ repoUrl }}/pull/3'
event: pull_request.closed
actions:
- type: updateBranchProtection
required: false
- type: createPullRequest
title: Issue and PR templates
head: templates
body: 05_templates.md
action_id: templatesPR
- type: respond
with: goto-pr.md
data:
url: '%actions.templatesPR.data.html_url%'
#6
- title: Answer the templates challenge question
description: Determine how template files can help you create easy-to-join projects.
link: '{{ repoUrl }}/pull/4'
event: pull_request.edited
actions:
- type: removeBranchProtection
required: false
- type: respond
with: 06_templates-answer.md
#7
- title: Merge the templates pull request
description: Add starter templates to your InnerSource toolkit.
link: '{{ repoUrl }}/pull/4'
event: pull_request.closed
actions:
- type: updateBranchProtection
required: false
- type: createPullRequest
title: Workflows
head: workflows
body: 07_workflows.md
action_id: workflowsPR
- type: respond
with: goto-pr.md
data:
url: '%actions.workflowsPR.data.html_url%'
#8
- title: Answer the workflows challenge question
description: Discover how being transparent about your workflow can help others contribute.
link: '{{ repoUrl }}/pull/5'
event: pull_request.edited
actions:
- type: removeBranchProtection
required: false
- type: respond
with: 08_workflows-answer.md
#9
- title: Merge the workflows pull request
description: Add branching and workflow strategies to your InnerSource toolkit.
link: '{{ repoUrl }}/pull/5'
event: pull_request.closed
actions:
- type: updateBranchProtection
required: false
- type: createPullRequest
title: Managing projects on GitHub
head: projects
body: 09_projects.md
action_id: projectsPR
- type: respond
with: goto-pr.md
data:
url: '%actions.projectsPR.data.html_url%'
#10
- title: Answer the project management challenge
description: Learn about how you can surface your project management strategies to potential contributors.
link: '{{ repoUrl }}/pull/6'
event: pull_request.edited
actions:
- type: removeBranchProtection
required: false
- type: respond
with: 10_projects-answer.md
#11
- title: Merge the project management pull request
description: Beef up your InnerSource toolkit with project management tips.
link: '{{ repoUrl }}/pull/6'
event: pull_request.closed
actions:
- type: updateBranchProtection
required: false
- type: createPullRequest
title: Measuring success
head: metrics
body: 11_metrics.md
action_id: metricsPR
- type: respond
with: goto-pr.md
data:
url: '%actions.metricsPR.data.html_url%'
#12
- title: Answer the success metrics challenge
description: Begin thinking about how to measure the success of your InnerSource program.
link: '{{ repoUrl }}/pull/7'
event: issue_comment.created
actions:
- type: removeBranchProtection
required: false
- type: respond
with: 12_metrics-answer.md
#13
- title: Merge the metrics pull request
description: Add possible metrics to your InnerSource toolkit.
link: '{{ repoUrl }}/pull/7'
event: pull_request.closed
actions:
- type: updateBranchProtection
required: false
- type: createIssue
title: Publish your toolkit
body: 13_publish.md
action_id: publishIssue
- type: respond
with: goto-pr.md
data:
url: '%actions.publishIssue.data.html_url%'
#14
- title: Enable GitHub Pages
description: Publish your InnerSource toolkit by turning on GitHub Pages.
link: '{{ repoUrl }}/pull/8'
event: page_build
actions:
- type: removeBranchProtection
required: false
- type: octokit
method: repos.getPages
owner: '%payload.repository.owner.login%'
repo: '%payload.repository.name%'
action_id: pagesUrl
- type: respond
issue: Publish your toolkit
with: 14_congratulations.md
data:
deploymentURL: '%actions.pagesUrl.data.html_url%'
forkURL: '%payload.repository.html_url%/fork'
downloadURL: '%payload.repository.html_url%/archive/main.zip'