Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit c59100f

Browse files
committed
leverage first issue
1 parent 4146dd9 commit c59100f

File tree

3 files changed

+50
-44
lines changed

3 files changed

+50
-44
lines changed

config.yml

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,11 @@ template:
55
name: lab-starter
66
repo: write-a-ll-course-template
77
before:
8-
- type: createPullRequest
9-
title: Add a course title and description
8+
- type: createIssue
9+
title: Welcome
1010
body: 00.0_welcome.md
11-
head: title
1211
comments:
13-
- 01.0_add-title.md
14-
action_id: metaPR
15-
- type: assignRegistrant
16-
issue: '%actions.metaPR.data.number%'
17-
- type: octokit
18-
method: pullRequests.createComment
19-
owner: '%actions.metaPR.data.head.repo.owner.login%'
20-
repo: '%actions.metaPR.data.head.repo.name%'
21-
number: '%actions.metaPR.data.number%'
22-
commit_id: '%actions.metaPR.data.head.sha%'
23-
path: config.yml
24-
body: |
25-
```suggestion
26-
title: My amazing course
27-
```
28-
position: 6
12+
- welcome-2.md
2913
- type: updateBranchProtection
3014

3115
# Repo artifacts:
@@ -36,25 +20,46 @@ before:
3620

3721
steps:
3822

23+
# 1
24+
- title: Welcome
25+
description: Decide whether to complete a guided course, or use boilerplate as is.
26+
event: issues.closed
27+
link: '{{ repoUrl }}/issues/1'
28+
actions:
29+
- type: gate
30+
left: '%payload.issue.assignee%'
31+
else:
32+
- type: createPullRequest
33+
title: Add a course title and description
34+
body: 00.0_welcome.md
35+
head: title
36+
comments:
37+
- 01.0_add-title.md
38+
action_id: metaPR
39+
- type: assignRegistrant
40+
issue: '%actions.metaPR.data.number%'
41+
- type: octokit
42+
method: pullRequests.createComment
43+
owner: '%actions.metaPR.data.head.repo.owner.login%'
44+
repo: '%actions.metaPR.data.head.repo.name%'
45+
number: '%actions.metaPR.data.number%'
46+
commit_id: '%actions.metaPR.data.head.sha%'
47+
path: config.yml
48+
body: |
49+
```suggestion
50+
title: My amazing course
51+
```
52+
position: 6
53+
- type: createIssue
54+
title: Transfer your course
55+
body: 14.0_congratulations.md
56+
3957
# 1
4058
- title: Give your course a title
4159
description: Name your course so learners can find it.
42-
event: pull_request
60+
event: pull_request.synchronize
4361
link: '{{ repoUrl }}/pull/1'
4462
actions:
45-
- type: gate
46-
left: '%payload.pull_request.action'
47-
operator: ===
48-
right: synchronize
49-
else:
50-
- type: gate
51-
left: '%payload.pull_request.action%'
52-
operator: ===
53-
right: closed
54-
required: false
55-
- type: createIssue
56-
title: Transfer your course
57-
body: 14.0_congratulations.md
5863
- type: getFileContents
5964
action_id: fileContents
6065
filename: 'config.yml'

responses/00.0_welcome.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22

33
:running_woman: If you look around this repository, you'll find a few standard template files in your Code tab. These contain most of what you need to get a Learning Lab course up and running. You can take this code as-is and create a Learning Lab course on your own.
44

5-
- For a fully guided course writing experience, continue with this PR!
6-
- If you'd like to work on your own, close this pull request and we'll provide instructions on how to transfer the course to your own organization.
5+
### How do you prefer to work?
76

8-
### Documentation
9-
10-
:book: The official [Learning Lab docs](https://github.github.com/learning-lab-equipment/#/) contain full instructions on how to create courses. We'll link to the docs throughout the course. Take a look if you'd like more information about steps we take in this course.
11-
12-
### New to GitHub?
13-
14-
For this course, you'll need to know how to create a branch on GitHub, commit changes using Git, and open a pull request on GitHub. If you need a refresher on the GitHub flow, check out [the Introduction to GitHub course]({{ host}}/courses/introduction-to-github).
15-
16-
You'll also need a general understanding of webhooks and the GitHub API. [The Getting started with GitHub Apps course]({{ host}}/courses/getting-started-with-github-apps) is a good place to start.
7+
- :octocat: For a fully guided course writing experience, close this issue.
8+
- :car: If you'd like to work on your own, assign this issue to yourself and then close it. We'll provide instructions on how to transfer the course to your own organization.

responses/welcome-2.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Documentation
2+
3+
:book: The official [Learning Lab docs](https://github.github.com/learning-lab-equipment/#/) contain full instructions on how to create courses. We'll link to the docs throughout the course. Take a look if you'd like more information about steps we take in this course.
4+
5+
### New to GitHub?
6+
7+
For this course, you'll need to know how to create a branch on GitHub, commit changes using Git, and open a pull request on GitHub. If you need a refresher on the GitHub flow, check out [the Introduction to GitHub course]({{ host}}/courses/introduction-to-github).
8+
9+
You'll also need a general understanding of webhooks and the GitHub API. [The Getting started with GitHub Apps course]({{ host}}/courses/getting-started-with-github-apps) is a good place to start.

0 commit comments

Comments
 (0)