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

Commit 3f2e98a

Browse files
authored
Merge pull request #1 from githubtraining/troubleshooting
First draft edits
2 parents 372cb99 + 27253f8 commit 3f2e98a

19 files changed

Lines changed: 269 additions & 124 deletions

config.yml

Lines changed: 116 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -12,116 +12,140 @@ before:
1212
- type: createIssue
1313
title: Welcome to this repository
1414
body: 00_existing-welcome.md
15-
# - type: createPullRequest
16-
# title: Create documentation structure
17-
# body: 00_create-documentation-structure.md
18-
# head: create-documentation-structure
19-
# - type: mergePullRequest
20-
# pullRequest: Create documentation structure
21-
# - type: createPullRequest
22-
# title: Add new pages
23-
# body: 00_add-new-pages.md
24-
# head: add-new-pages
25-
# - type: mergePullRequest
26-
# pullRequest: Add new pages
27-
# - type: createPullRequest
28-
# title: Add navigation
29-
# body: 00_add-navigation.md
30-
# head: add-navigation
31-
# - type: mergePullRequest
32-
# pullRequest: Add navigation
33-
# - type: createPullRequest
34-
# title: Add Git tips
35-
# body: 00_add-git-tips.md
36-
# head: add-git-tips
37-
# - type: createStatus
38-
# state: failure
39-
# sha: 8a649c52d198e6ab0e80692bb660d08b299f479f
15+
- type: createPullRequest
16+
title: Create documentation structure
17+
body: 00_create-documentation-structure.md
18+
head: create-documentation-structure
19+
- type: mergeBranch
20+
head: create-documentation-structure
21+
- type: deleteBranch
22+
branch: create-documentation-structure
23+
- type: createPullRequest
24+
title: Add new pages
25+
body: 00_add-new-pages.md
26+
head: add-new-pages
27+
- type: mergeBranch
28+
head: add-new-pages
29+
- type: deleteBranch
30+
branch: add-new-pages
31+
- type: createPullRequest
32+
title: Add navigation
33+
body: 00_add-navigation.md
34+
head: add-navigation
35+
- type: mergeBranch
36+
head: add-navigation
37+
- type: deleteBranch
38+
branch: add-navigation
39+
- type: createPullRequest
40+
title: Add Git tips
41+
body: 00_add-git-tips.md
42+
head: add-git-tips
43+
- type: createStatus
44+
state: "failure"
45+
failure:
46+
description: >-
47+
Please make sure that all words are spelled correctly.
48+
sha: ab8fe26dfd24d863908a5074e704358023d11109
49+
context: failing-build
4050

4151
steps:
4252

4353
# Step 1:
4454
- title: Close the linked issue
4555
description: Close the linked issue
4656
event: issues.closed
47-
link: '{{ repoUrl }}'
57+
link: '{{ repoUrl }}/issues/1'
4858
actions:
4959
- type: createIssue
5060
title: Find the similar issue
5161
body: 01_crosslink.md
52-
# - type: createIssue
53-
# title: There's something similar here
54-
# body: 01_the-similar-crosslink.md
55-
# - type: respond
56-
# with: 01_next-step.md
57-
# - type: respond
58-
# with: 01_next-step.md
59-
# issue: Welcome to this repository
62+
- type: createIssue
63+
title: There's something similar here
64+
body: 01_the-similar-crosslink.md
65+
- type: closeIssue
66+
issue: Welcome
67+
- type: respond
68+
with: 01_next-step.md
69+
- type: respond
70+
with: 01_next-step.md
71+
issue: Welcome
6072

6173
# Step 2: Crosslink
62-
# - title: Create a crosslink
63-
# description: Find the relevant or duplicate issue or pull request, and create a contexual crosslink
64-
# event: issue_comment.created
65-
# link: '{{ repoUrl }}'
66-
# actions:
67-
# - type: gate
68-
# left: '(6)'
69-
# operator: test
70-
# right: '%payload.comment.body%'
71-
# - type: respond
72-
# with: 02_find-commit.md
74+
- title: Create a crosslink
75+
description: Find the relevant or duplicate issue or pull request, and create a contexual crosslink
76+
event: issue_comment.created
77+
link: '{{ repoUrl }}/issues/7'
78+
actions:
79+
- type: gate
80+
left: '(8)'
81+
operator: test
82+
right: '%payload.comment.body%'
83+
- type: respond
84+
with: 02_find-commit.md
7385

7486
# Step 3:
75-
# - title: Find a commit
76-
# description: Find a specific commit (related to content concept of issue in step 2)
77-
# event: issue_comment.created
78-
# link: '{{ repoUrl }}'
79-
# actions:
80-
# - type: gate
81-
# left: '(312f87)'
82-
# operator: test
83-
# right: '%payload.comment.body%'
84-
# - type: respond
85-
# with: 03_context.md
87+
- title: Find a commit
88+
description: Find a specific commit (related to content concept of issue in step 2)
89+
event: issue_comment.created
90+
link: '{{ repoUrl }}/issues/7'
91+
actions:
92+
- type: gate
93+
left: '(312f87)'
94+
operator: test
95+
right: '%payload.comment.body%'
96+
- type: respond
97+
with: 03_context.md
8698

8799
# Step 4: Finding info and context
88-
# - title: Find context
89-
# description: Mention the author in the pull request where commit was created
90-
# event: issue_comment.created
91-
# link: '{{ repoUrl }}'
92-
# actions:
93-
# - type: gate
94-
# left: '(proper author)'
95-
# operator: test
96-
# right: '%payload.comment.body%'
97-
# - type: gate (validate that the comment is in the proper pull request)
98-
# left: 1
99-
# operator: test
100-
# right: '%payload.issue.number%'
101-
# - type: respond
102-
# with: 04_find-broken-build.md
100+
- title: Find context
101+
description: Create a link to the pull request where the commit was created
102+
event: issue_comment.created
103+
link: '{{ repoUrl }}/issues/7'
104+
actions:
105+
- type: gate
106+
left: '(5)'
107+
operator: test
108+
right: '%payload.comment.body%'
109+
- type: respond
110+
with: 04_find-broken-build.md
103111

104112
# Step 5:
105-
# - title: Assign yourself to the pr with broken build
106-
# description: Assign yourself to the pr with broken build
107-
# event: issues.assigned
108-
# link: '{{ repoUrl }}'
109-
# actions:
110-
# - type: respond
111-
# with: 05_fix-build.md
113+
- title: Assign yourself to the pr with broken build
114+
description: Assign yourself to the pr with broken build
115+
event: pull_request.assigned
116+
link: '{{ repoUrl }}/issues/7'
117+
actions:
118+
- type: respond
119+
with: 05_fix-build.md
112120

113121
# Step 6: Something to do with tests
114-
# - title: Fix the broken build
115-
# description: Fix the broken build
116-
# event: push
117-
# link: '{{ repoUrl }}'
118-
# actions:
119-
# - type: gate
120-
# left: '(tricks)'
121-
# operator: test
122-
# right: '%payload.comment.body%'
123-
# - type: createStatus
124-
# state: success
125-
# - type: createIssue
126-
# title: Congratulations!
127-
# body: 06_congratulations.md
122+
- title: Fix the broken build
123+
description: Fix the broken build
124+
event: push
125+
link: '{{ repoUrl }}/pull/6'
126+
actions:
127+
- type: getFileContents
128+
filename: docs/git-tips.md
129+
action_id: fileContents
130+
- type: gate
131+
left: '(tricks)'
132+
operator: test
133+
right: '%actions.fileContents%'
134+
- type: createStatus
135+
state: success
136+
sha: '%payload.head_commit.id%'
137+
- type: respond
138+
with: 06_please-merge.md
139+
issue: Add Git tips
140+
141+
# Step 7: Merge pull request
142+
- title: Merge the pull request
143+
description: Merge the final pull request
144+
event: push
145+
link: '{{ repoUrl }}/pull/6'
146+
actions:
147+
- type: createIssue
148+
title: Congratulations!
149+
body: 07_congratulations.md
150+
- type: respond
151+
with: 07_final-issue.md

responses/00_add-git-tips.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Adding Git Tips
22

3-
This pull request adds tips and tricks for using Git.
3+
This pull request adds a page to the documentation about tips and tricks for using Git.
4+
5+
_Note: This is the pull request that you should assign yourself to in step 5._

responses/00_add-navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Add navigation
22

3-
This pull request introduces navigation to the documentation
3+
This pull request introduces navigation to the documentation.

responses/00_add-new-pages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# adding new pages
1+
# Adding new pages
22

3-
pull request for adding new pages
3+
This pull request introduces new pages to the documentation.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
This is a pull request for introducing the documentation strucutre for docsify.
1+
# Documentation structure
2+
3+
This pull request introduces the structure for the documentation.

responses/00_existing-welcome.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Welcome!
22

3-
(This is the issue that has duplicate information as the other welcome issue, and we will ask users to close this issue.) It's important that this issue references the other welcome issue, like #1
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, but I'll let you decide if we should keep it or not.

responses/00_welcome-issue.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
# Welcome to this course!
1+
# Welcome!
22

3-
## Step 1: Find and close the crosslinked issue
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.
44

5-
### :keyboard: Activity:
5+
In this course, you'll learn how to do lots of things, like:
66

7-
Find the issue that is crosslinked automatically from the instruction issue and close it because we don't need multiple threads with the same things. Maybe there's some info to bring over? Describing course goals really high level, and describing crosslinks between issues and pull requests
7+
- Find relevant issues and pull requests
8+
- Search history to find context
9+
- Make connections within GitHub to help others find things
10+
11+
### Cross-linking issues and pull requests
12+
13+
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.
14+
15+
## Step 1: Find an issue
16+
17+
Below, you will see a reference to another issue. The other issue references _this_ issue. The other issue appears to be a duplicate, so it would be a good idea to close it.
18+
19+
### :keyboard: Activity: Find and close the cross-linked issue
20+
21+
1. Find the other issue referenced from this issue
22+
2. Close that issue
23+
24+
<hr>
25+
<h3 align="center">I will respond with your next steps in that issue.</h3>

responses/01_crosslink.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
# Finding relevant history
22

3-
This is a new issue that has content similar to another issue. (or they could be pull requests). (In an existing issue that has a related issue or pull request buried somewhere)
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.
44

5-
## Step 2:
5+
Next, we'll practice finding issues and creating crosslinks to improve discoverability later.
66

7-
## :keyboard: Activity:
7+
### Finding issues and pull requests
8+
9+
You can search for issues and pull requests in many ways, like by author, title, or even the most recently updated. You can also search closed issues. 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).
10+
11+
### Creating references
12+
13+
When you link to another issue, a reference within GitHub is automatically created. In fact, you don't even need to include the full link. If you were to type `#5` within a comment, that would turn into a link to issue or pull request number 5.
14+
15+
When you want to create a crosslink, try typing the title of an issue or pull request directly after you type the `#` symbol. GitHub will suggest issues or pull requests that will link to the right place. To learn even more, check out [GitHub's documentation](https://help.github.com/en/articles/autolinked-references-and-urls).
16+
17+
## Step 2: Create crosslinks
18+
19+
## :keyboard: Activity: Find and link to a related issue
20+
21+
1. Please find the related issue
22+
2. Comment in this issue with a reference to the related issue with a short description
823

9-
Please find the related issue and create a crosslink with a short description. Info about how to find issues and pull requests.

responses/01_next-step.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Your next steps can be found:
1+
[Your next steps can be found here]({{ repoUrl }}/issues/7).
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
# The similar one
1+
# How to find issues and pull requests
22

3-
This is a similar issue to 01_crosslink.md and should be crosslinked.
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+
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).

0 commit comments

Comments
 (0)