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 55
/
config.yml
287 lines (275 loc) · 8.19 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
title: Introduction to GitHub
description: If you are looking for a quick and fun introduction to GitHub, you've found it. This class will get you started using GitHub in less than an hour.
template:
name: github-slideshow
repo: caption-this-template
description: 'A robot powered training repository :robot:'
preferences:
- type: radio
name: gitTool
label: Preferred Git tool
description: Learn right from the web UI, or using your chosen tool
options:
- label: Use the GitHub.com web interface
value: dotcom
- label: Use the command line
value: cli
- label: Use Visual Studio Code
value: vscode
- type: dropdown
name: language
label: Language
description: Choose your preferred language.
options:
- label: English
value: en
- label: Español
value: es
- label: 日本語
value: ja
- label: Français
value: fr
before:
- type: updateBranchProtection
- type: createIssue
title: Getting Started with GitHub
body: 00_introduction.md
comments:
- 00_assign-yourself.md
# Course artifacts:
# 1. Issue: Getting started with GitHub
# 2. Issue: Your first contribution
# 3. PR: [Created by learner]
steps:
# 1
- title: Assign yourself
description: Assign the first issue to yourself.
translations:
es:
title: Asígnate
description: Asígnate la primera propuesta.
fr:
title: Assignation
description: Assignez-vous la première Issue.
ja:
title: 担当者になろう
description: 初めてのイシューの担当者になりましょう。
event: issues.assigned
link: '{{ repoUrl }}/issues/1'
actions:
- type: gate
left: '%payload.assignee.login%'
operator: ===
right: '%user.username%'
- type: respond
with: 01_turn-on-gh-pages.md
# 2
- title: Turn on GitHub Pages
description: Turn on GitHub Pages in the settings page of the repository.
translations:
es:
title: Activa GitHub Pages
description: Activa GitHub Pages en la página de configuración del repositorio.
fr:
title: Activation de GitHub Pages
description: Activez GitHub Pages sur la page de configuration du dépôt.
ja:
title: GitHub Pagesを有効化しよう
description: リポジトリの設定画面でGitHub Pagesを有効化しましましょう。
event: page_build
link: '{{ repoUrl }}/issues/1'
actions:
- type: octokit
method: repos.getPages
owner: '%payload.repository.owner.login%'
repo: '%payload.repository.name%'
store:
pagesUrl: '{{ result.data.html_url }}'
action_id: pagesUrl
- type: respond
issue: Getting Started with GitHub
with: 02_close-issue.md
# 3
- title: Close an issue
description: Cease a conversation by closing an issue.
translations:
es:
title: Cierra una propuesta
description: Termina una conversación al cerrar una propuesta.
fr:
title: Fermer l'Issue
description: Achevez l'Issue en la cloturant.
ja:
title: Issueを閉じよう
description: Issueを閉じることで議論を終えましょう。
event: issues.closed
link: '{{ repoUrl }}/issues/1'
actions:
- type: createIssue
action_id: contrib_issue
title: Your first contribution
body: 03_your-first-contribution.md
comments:
- 03_create-a-branch.md
data:
thePayload: '%payload%'
- type: respond
with: 03_head-to-branch.md
data:
issueURL: '%actions.contrib_issue.data.html_url%'
# 4
- title: Create a branch
description: Create a branch for introducing new changes.
translations:
es:
title: Crea una rama
description: Crea una rama para introducir nuevos cambios.
fr:
title: Création d'une branche
description: Créez une branche afin d'introduire un changement.
ja:
title: ブランチを作ろう
description: 新しい変更をするためのブランチを作りましょう。
event: create
link: '{{ repoUrl }}/issues/2'
actions:
- type: respond
issue: Your first contribution
with: 04_commit-something.md
data:
thePayload: '%payload%'
# 5
- title: Commit a file
description: Commit your file to the branch.
translations:
es:
title: Confirma un archivo
description: Confirma un archivo a tu rama.
fr:
title: Soumettre un fichier
description: Ajoutez un fichier à votre branche.
ja:
title: ファイルをコミットしよう
description: ブランチにファイルをコミットしましょう。
event: push
link: '{{ repoUrl }}/issues/2'
actions:
- type: respond
issue: Your first contribution
with: 05_open-a-pr.md
data:
branch: '%payload.ref%'
url: '%payload.repository.html_url%/compare/%payload.ref%?expand=1'
# 6
- title: Open a pull request
description: Open a pull request to propose your new file to the codebase.
translations:
es:
title: Abre una solicitud de extracción
description: Abre una solicitud de extracción para proponer agregar tu nuevo archivo al proyecto.
fr:
title: Ouverture d'une Pull Request
description: Ouvrez une Pull Request afin de proposer l'ajout de votre fichier au projet.
ja:
title: プルリクエストをオープンしよう
description: 新しいファイルをコードベースに追加する提案をするためにプルリクエストをオープンしましょう。
event: pull_request
link: '{{ repoUrl }}/issues/2'
actions:
- type: gate
gates:
- left: '%payload.action%'
operator: ===
right: opened
- left: '%payload.action%'
operator: ===
right: edited
- left: '%payload.action%'
operator: ===
right: synchronize
- type: closeIssue
issue: Your first contribution
- type: gate
left: '%payload.pull_request.body%'
else:
- type: createReview
body: 06_fix-body.md
event: REQUEST_CHANGES
- type: gate
left: '%payload.pull_request.base.ref%'
operator: ===
right: main
else:
- type: createReview
body: 06_fix-base.md
event: REQUEST_CHANGES
- type: getTree
action_id: tree
recursive: true
sha: '%payload.pull_request.head.sha%'
- type: gate
left: '%actions.tree.data.tree%'
operator: includes
right: path:/_posts\/\d{4}-\d{2}-\d{2}-%user.username%\.md/
else:
- type: createReview
body: 06_fix-filename.md
event: REQUEST_CHANGES
data:
expected: _posts/0000-01-02-%user.username%.md
url: '%payload.pull_request.html_url%/files'
- type: createReview
body: 06_request-changes.md
event: 'COMMENT'
data:
branch: '%payload.pull_request.head.ref%'
url: '%payload.pull_request.html_url%/files'
# 7
- title: Respond to a review
description: Respond to a PR review.
translations:
es:
title: Responde a una revisión
description: Responde a una revisión en tu solicitud de extracción.
fr:
title: Réponse à une revue
description: Répondez à la relecture de votre Pull Request.
ja:
title: レビューに対応しよう
description: プルリクエストへのレビューへの対応をしましょう。
event: pull_request.synchronize
link: '{{ repoUrl }}/pull/3'
actions:
- type: removeBranchProtection
- type: createReview
body: 07_pr-succeeds.md
event: APPROVE
data:
branch: '%payload.pull_request.head.ref%'
# 8
- title: Merge your pull request
description: Make your changes live by merging your PR.
translations:
es:
title: Fusiona tu solicitud de extracción
description: Publica tus cambios al fusionar tu solicitud de extracción.
fr:
title: Fusion de la Pull Request
description: Livrez vos changement en fusionant votre Pull Request.
ja:
title: プルリクエストをマージしよう
description: プルリクエストをマージすることで変更を取り込みましょう。
event: pull_request.closed
link: '{{ repoUrl }}/pull/3'
actions:
- type: gate
left: '%payload.pull_request.merged%'
else:
- type: respond
with: 08_reopen.md
- type: respond
with: 08_reminder-delete.md
tags: [
"Git","GitHub Pages","Branches","Commits","Pull Requests"
]
video: "sz6zfrQpCQg"