You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.yml
+84-22Lines changed: 84 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -57,33 +57,44 @@ steps:
57
57
event: issues.closed
58
58
link: '{{ repoUrl }}/issues/1'
59
59
actions:
60
+
- type: gate
61
+
left: '%payload.issue.title%'
62
+
operator: ===
63
+
right: Welcome to this repository
64
+
else:
65
+
- type: respond
66
+
with: e-unexpected.md
67
+
data:
68
+
expected: close the issue titled **Welcome to this repository**
60
69
- type: createIssue
61
-
title: Find the similar issue
62
-
body: 01_crosslink.md
70
+
title: Fix the sidebar
71
+
body: 01_sidebar.md
72
+
comments:
73
+
- 01_crosslink.md
63
74
action_id: similarIssue
64
75
- type: createProjectBoard
65
76
name: v1.0.0
66
77
description: Planning for v1.0.0 release
67
78
columns:
68
79
- Backlog
69
-
- Done
80
+
- In progress
70
81
action_id: projectBoard
71
82
- type: octokit
72
83
method: projects.createColumn
73
84
project_id: '%actions.projectBoard.data.id%'
74
-
name: In Progress
85
+
name: Done
75
86
owner: '%payload.repository.owner.login%'
76
87
repo: '%payload.repository.name%'
77
-
action_id: ipColumn
88
+
action_id: doneColumn
78
89
- type: octokit
79
90
method: projects.createCard
80
91
owner: '%payload.repository.owner.login%'
81
92
repo: '%payload.repository.name%'
82
93
content_id: '%actions.similarIssue.data.id%'
83
94
content_type: Issue
84
-
column_id: '%actions.ipColumn.data.id%'
95
+
column_id: '%actions.doneColumn.data.id%'
85
96
- type: createIssue
86
-
title: There's something similar here
97
+
title: Broken sidebar
87
98
body: 01_the-similar-crosslink.md
88
99
- type: closeIssue
89
100
issue: Welcome
@@ -100,9 +111,19 @@ steps:
100
111
link: '{{ repoUrl }}/issues/7'
101
112
actions:
102
113
- type: gate
103
-
left: '(8)'
104
-
operator: test
105
-
right: '%payload.comment.body%'
114
+
every: true
115
+
gates:
116
+
- left: '%payload.issue.title%'
117
+
operator: ===
118
+
right: Fix the sidebar
119
+
- left: '(8)'
120
+
operator: test
121
+
right: '%payload.comment.body%'
122
+
else:
123
+
- type: respond
124
+
with: e-unexpected.md
125
+
data:
126
+
expected: comment on the issue titled **Fix the sidebar** with the comment `#8`, the number of the similar issue
106
127
- type: respond
107
128
with: 02_find-commit.md
108
129
@@ -113,9 +134,19 @@ steps:
113
134
link: '{{ repoUrl }}/issues/7'
114
135
actions:
115
136
- type: gate
116
-
left: '(312f87)'
117
-
operator: test
118
-
right: '%payload.comment.body%'
137
+
every: true
138
+
gates:
139
+
- left: '%payload.issue.title%'
140
+
operator: ===
141
+
right: Fix the sidebar
142
+
- left: '(312f87)'
143
+
operator: test
144
+
right: '%payload.comment.body%'
145
+
else:
146
+
- type: respond
147
+
with: e-unexpected.md
148
+
data:
149
+
expected: comment on the issue titled **Fix the sidebar** with the comment `312f872f79e50d505f02be5ddc97b3f7504d0189`, the SHA of the commit we're looking for
119
150
- type: respond
120
151
with: 03_context.md
121
152
data:
@@ -133,36 +164,55 @@ steps:
133
164
right: '%payload.project_card.content_url%'
134
165
else:
135
166
- type: respond
136
-
with: e-wrong-pr.md
167
+
with: e-unexpected.md
168
+
issue: Fix the sidebar
137
169
data:
138
-
commit: 312f87
139
-
issue: Find the similar issue
170
+
expected: add pull request \#5 to the Done column of the v1.0.0 project
140
171
- type: respond
141
172
with: 04_find-broken-build.md
142
-
issue: Find the similar issue
173
+
issue: Fix the sidebar
143
174
144
175
# Step 5:
145
176
- title: Assign yourself
146
177
description: Assign yourself to the pull request with a broken build
147
178
event: pull_request.assigned
148
179
link: '{{ repoUrl }}/issues/7'
149
180
actions:
181
+
- type: gate
182
+
left: '%payload.pull_request.title%'
183
+
operator: ===
184
+
right: Add Git tips
185
+
else:
186
+
- type: respond
187
+
with: e-unexpected.md
188
+
data:
189
+
expected: 'assign yourself to the pull request titled **Add Git tips**'
150
190
- type: respond
151
191
with: 05_fix-build.md
152
192
153
193
# Step 6: Something to do with tests
154
194
- title: Fix the broken build
155
195
description: Fix the broken build in the pull request with a new commit
156
-
event: push
196
+
event: pull_request.synchronize
157
197
link: '{{ repoUrl }}/pull/6'
158
198
actions:
159
199
- type: getFileContents
160
200
filename: docs/git-tips.md
161
201
action_id: fileContents
162
202
- type: gate
163
-
left: '(tricks)'
164
-
operator: test
165
-
right: '%actions.fileContents%'
203
+
every: true
204
+
gates:
205
+
- left: '%payload.pull_request.title%'
206
+
operator: ===
207
+
right: Add Git tips
208
+
- left: '(tricks)'
209
+
operator: test
210
+
right: '%actions.fileContents%'
211
+
else:
212
+
- type: respond
213
+
with: e-unexpected.md
214
+
data:
215
+
expected: edit `docs/git-tips.md` on the `add-git-tips` branch so that the word "tricks" is properly spelled
166
216
- type: createStatus
167
217
state: success
168
218
sha: '%payload.head_commit.id%'
@@ -173,9 +223,21 @@ steps:
173
223
# Step 7: Merge pull request
174
224
- title: Merge
175
225
description: Merge the final pull request
176
-
event: push
226
+
event: pull_request.closed
177
227
link: '{{ repoUrl }}/pull/6'
178
228
actions:
229
+
- type: gate
230
+
every: true
231
+
gates:
232
+
- left: '%payload.pull_request.merged%'
233
+
- left: '%payload.pull_request.title%'
234
+
operator: ===
235
+
right: Add Git tips
236
+
else:
237
+
- type: respond
238
+
with: e-unexpected.md
239
+
data:
240
+
expected: merge the pull request titled **Add Git tips**
Welcome to the course! We're going to walk through some strategies for dealing with large repositories. This is a similar issue to #1, but I'll let you decide if we should keep it or not.
3
+
Welcome to the course! We're going to walk through some strategies for dealing with large repositories. This is a similar issue to #1. Please close this issue.
Copy file name to clipboardExpand all lines: responses/00_welcome-issue.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Welcome!
2
2
3
-
Welcome to this Learning Lab course about working in large repositories. For example, you could be working in repositories with a lot of history. Or, working with many collaborators. No matter how your repository is "large", it's important to know how to navigate your workspace.
3
+
Welcome to this Learning Lab course about finding your way through the history of GitHub repositories. For example, you could be working in repositories with a lot of history, many collaborators, or many files.
4
4
5
5
Before you take this course, you may want to go through the [Introduction to GitHub](https://lab.github.com/githubtraining/introduction-to-github) course on Learning Lab.
6
6
@@ -12,7 +12,9 @@ In this course, you'll learn how to do lots of things, like:
12
12
13
13
### Cross-linking issues and pull requests
14
14
15
-
GitHub has special capabilities to help reference other information on GitHub. For example, if someone references a GitHub issue or pull request from another issue or pull request, a link is created. At the same time, a cross-reference is created in the other issue. This two-way reference helps people track relationships of information across GitHub.
15
+
GitHub has special capabilities to help reference other information on GitHub. For example, when you reference another issue or pull request by number, that number will be hyperlinked. At the same time, a cross-reference is created in the linked issue or pull request. This two-way reference helps people track the relationship of information across GitHub.
16
+
17
+

Copy file name to clipboardExpand all lines: responses/01_crosslink.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
When you're working in a repository, you might want to find other issues or pull requests. Maybe someone has told you about a conversation, but they didn't send you a direct link. Or, maybe you remember an issue from the past but you don't know exactly where it is.
4
4
5
-
Next, we'll practice finding issues and creating crosslinks to improve discoverability later.
5
+
In this case, we want to see if there's another reference to the broken sidebar somewhere on this repository, and track down any work that's been attempted related to this. Let's see what we can find out!
6
6
7
7
### Finding issues and pull requests
8
8
@@ -19,5 +19,8 @@ When you want to create a crosslink, try typing the title of an issue or pull re
19
19
### :keyboard: Activity: Find and link to a related issue
20
20
21
21
1. Please find the issue that is similar to this one
22
-
- This does _not_ mean that the issue is referenced, like in the last step - you should go look in the [Issues]({{ repoURL }}/issues) tab to find an issue with a similar title
23
-
2. Comment in this issue with a reference to the related issue with a short description
22
+
- This does _not_ mean that the issue is referenced, like in the last step. This time, we're looking for a related issue that hasn't been connected to this one in any way.
23
+
- Try looking in the [Issues]({{ repoUrl }}/issues) tab to find an issue with a similar title to this one.
24
+
2. Comment in this issue with a reference to the related issue and a short description, something along the lines of "this is a duplicate of issue #(number)".
_Note: the content of this comment simulates common usage of issues as a way to request features of report bugs. Scroll down to the next comment in this issue for your instructions._
2
+
3
+
There's no sidebar! Is this user error or is it actually missing?
When you're working in a repository, you might want to find other issues or pull requests. Maybe someone has told you about a conversation, but they didn't send you a direct link. Or, maybe you remember an issue from the past but you don't know exactly where it is.
4
-
5
-
### Finding conversations
6
-
7
-
You can read all about the different ways to search in the [GitHub Help documentation](https://help.github.com/en/articles/searching-issues-and-pull-requests#search-by-open-or-closed-state).
8
-
9
-
### Creating Links
10
-
11
-
To learn about creating references, check out [GitHub's documentation](https://help.github.com/en/articles/autolinked-references-and-urls).
1
+
I think this project would be better if it had a sidebar.
Copy file name to clipboardExpand all lines: responses/02_find-commit.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
Great job finding the duplicate issue! Feel free to close the other issue as a duplicate of this one, but I'll leave it up to you. Let's move on to finding out if these issues ever led to a sidebar being added to our project!
2
+
1
3
# Finding commits
2
4
3
5
An important part of version control is the ability to look into the past. By using `git blame`, and finding the story behind a commit, we're able to do more than _blame_ people for code. We're able to see the story around why a commit was made - what is the associated pull request? Who approved the pull request? What tests were run on that commit before it was merged?
Copy file name to clipboardExpand all lines: responses/03_context.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
Thanks for finding that commit! We now know that the sidebar was indeed added, and it was done in that commit. Let's see if we can dig a little deeper to find out if any planning or conversation occurred around this change.
2
+
1
3
# Context
2
4
3
5
As we've already seen, conversations in issues and pull requests can reference other work.
@@ -27,17 +29,17 @@ When you're looking at a commit on GitHub, you can see a lot of information. Fro
27
29
28
30
## Step 4: Give more context
29
31
30
-
In the story above, you might want to `@mention` the authors involved in the article. You may want to find them in person, or set up another way to collaborate. In this case, we want to collate the spread out information that you found through the commit.
32
+
To help others find relevant context, we want to collate the information that you found in the prior steps.
31
33
32
34

33
35
34
-
You'll notice that this issue is part of [Project v1.0.0]({{ repoUrl }}/projects/1). Let's add the related pull request to the same project.
36
+
One way we can do this, is by using [GitHub Projects](https://help.github.com/en/github/managing-your-work-on-github/about-project-boards). You'll notice that this issue is part of [Project v1.0.0]({{ repoUrl }}/projects/1), which tells us that the sidebar is part of the work related to our version 1.0.0 release. Let's add the related pull request to the same project so that the two artifacts can be tracked in tandem.
35
37
36
38
### :keyboard: Activity: Use a project to track related efforts
37
39
38
40
1. Go back to {{ commitId }}.
39
41
1. Click the link to the related pull request.
40
42
1. In the pull request, click on **Projects** on the right side, and choose the `v1.0.0` project from the list.
41
-
1. When the PR is added to the project, you'll see it's _Awaiting triage_, let's triage it! Click on the project drop down, and place it into the **In Progress** column.
43
+
1. When the PR is added to the project, you'll see it's _Awaiting triage_, let's triage it! Click on the project drop down, and place it into the **Done** column.
42
44
43
-
I'll respond in this issue when you've added the pull request to the In Progress column of the v1.0.0 project.
45
+
I'll respond in this issue when you've added the pull request to the Done column of the v1.0.0 project.
Copy file name to clipboardExpand all lines: responses/07_congratulations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Great job! In this course, you've learned a lot about finding and sharing information. Within a GitHub repository, you can find history about what changes were made, and more importantly, _why_ changes were made.
4
4
5
-
If you'd like to see this project on GitHub Pages, go to the [Settings tab]({{ repoURL }}/settings) of this repository and scroll down. Then, under **GitHub Pages**, select the **`master` branch `/docs` folder** as the source.
5
+
If you'd like to see this project on GitHub Pages, go to the [Settings tab]({{ repoUrl }}/settings) of this repository and scroll down. Then, under **GitHub Pages**, select the **`master` branch `/docs` folder** as the source.
6
6
7
7
Want to keep learning? Feel free to [check out our other courses]({{ host }}/courses).
0 commit comments