forked from github/training-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into github-103-review
- Loading branch information
Showing
42 changed files
with
159 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
[//]: # "This is used in both the CLI and Desktop course" | ||
|
||
It's time to share your page with the world! To do that, you will follow the same steps of the GitHub workflow, but this time you will do it on the class repository. | ||
|
||
![gif of following the directions below](../images/gifs/github-desktop/join-repo-make-issue-pages.gif) | ||
|
||
1. Visit the [class repository](https://github.com/githubschool/on-demand-github-pages/). | ||
1. Click the **Issues** tab. | ||
1. Request push access by [creating an Issue](https://github.com/githubschool/on-demand-github-pages/issues/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
It's time to get your hands dirty! Use these steps to access our shared project: | ||
|
||
![gif of the directions]( ../images/gifs/intro/join-repo-make-issue-introduction.gif) | ||
|
||
1. Sign in with your GitHub account. | ||
2. Navigate to our shared project and become a collaborator. Click on [this link](https://github.com/githubschool/open-enrollment-classes-introduction-to-github/issues/) and create an issue. The GitHubTeacher user will auto-magically add you to our project as a collaborator. | ||
1. Navigate to our [shared project](https://github.com/githubschool/open-enrollment-classes-introduction-to-github/issues/) and click the **New issue** button. | ||
1. Enter a title for your issue and click **Submit new issue**. The GitHubTeacher user will auto-magically add you to our project as a collaborator. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
It is time to create the branch you will use to add your pin to the map. Here's how you do it: | ||
|
||
![gif of directions](../images/gifs/intro/create-branch-intro.gif) | ||
|
||
1. Navigate to the <a href="https://github.com/githubschool/open-enrollment-classes-introduction-to-github/" target="_blank">Code tab</a> in the class repository. | ||
2. Click the drop-down titled `master`. | ||
3. In the field, enter this unique name for your branch: `<your-username-your-city>`. | ||
4. Press Enter to create your branch. | ||
2. Click the drop-down titled **Branch: master**. | ||
3. In the field, enter this unique name for your branch: `your-username-your-city`. | ||
4. Click **Create branch: your-username-your-city** or press the Enter key to create your branch. | ||
|
||
> When you begin typing in the branch field, a blue button should display, if it doesn't, you aren't a collaborator on the project and need to create an issue [here](https://github.com/githubschool/open-enrollment-classes-introduction-to-github/issues/). |
2 changes: 2 additions & 0 deletions
2
_includes/activity/intro-to-github/04-create-a-file-on-github.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
_includes/activity/intro-to-github/05a-collaborate-on-pull-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
:tada: Congratulations! You have created your Pull Request. Now it is time to put your collaborator hat on and go help others! | ||
|
||
![gif of directions](../images/gifs/intro/collaborate.gif) | ||
|
||
1. Now that your pull request has been created, go back to the pull request list to find an <a href="https://github.com/githubschool/open-enrollment-classes-introduction-to-github/pulls?q=is%3Aopen+is%3Apr" target="_blank">open pull request</a> -- other than your own. | ||
1. Provide feedback :loudspeaker: and motivation :tada:. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
If all of your checks are passing and you do not have any requested changes from other students, you can go ahead and merge your pull request: | ||
|
||
![gif of directions](../images/gifs/intro/merge-intro.gif) | ||
|
||
1. Open your [Pull Request](https://github.com/githubschool/open-enrollment-classes-introduction-to-github/pulls) to be merged. | ||
1. Scroll to the bottom of the Pull Request and click the **Merge pull request** button. | ||
1. You can accept the default merge commit message. | ||
1. Click **Confirm merge**. | ||
1. Delete the branch, as it no longer contains unique work. | ||
1. Click **Delete branch** to delete the branch, as it no longer contains unique work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
### Troubleshooting Common Issues | ||
|
||
These are a couple of the reasons that builds can fail in this class. If your pull request is not passing and can't be merged, double check the following things: | ||
|
||
#### File Name is Incorrect | ||
|
||
The file for the class should be in the `/_pins` folder and should be named `YOUR-USERNAME`.json. Double check to make sure that: | ||
|
||
- Your file isn't in the: `/_pin` or `/pins` folders. | ||
- Your file doesn't end with: `.jason`, `.md`, `.txt`. | ||
|
||
#### Format of the File is Incorrect | ||
|
||
The contents of your `.json` file should look like this: | ||
|
||
``` | ||
--- | ||
githubHandle: YOUR-USERNAME | ||
latitude: | ||
longitude: | ||
--- | ||
``` | ||
Double check that: | ||
|
||
- You included 3 dashes before and after your code `---` and not `...` or other characters. | ||
- The `H` in `Handle` is capitalized | ||
- The spelling of `Handle`, `latitude`, and `longitude`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#### 404 error | ||
Somewhere down the cascade of tests **Travis CI** will check if the URL following `pageUrl` actually exists. The test and the complete build will fail if a website does not exist (a "404 error"). | ||
|
||
It is possible you might have mistyped your URL or something went wrong when you tried to publish your website. It is also possible that users who previously merged their branch with the master have sadly deleted their repository and their website disappeared. | ||
|
||
Try and discover in the log which URL is causing a 404 error. You can double check whether the website exist by copying it into your browser. | ||
|
||
Because you are working in your own branch it is safe to change the code however you like. If you see something that can be fixed easily you could just edit the offending file. For instance you can replace the broken URL with something that does exist (e.g. `github.com`). | ||
A more rigorous solution would be to delete the file altogether. | ||
|
||
Once your fix is correct and the build is no longer failing, you are ready to merge your branch with the `master`. You might get some merge conflicts you will need to address first. Ask `@githubteacher` if you get stuck. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.