Skip to content

Commit

Permalink
talk about forks
Browse files Browse the repository at this point in the history
  • Loading branch information
kweav committed Jun 4, 2024
1 parent 4166d7f commit e34ed0d
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion getting_started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,43 @@ When updates are made to files that aren't specific to the course content but in
- [File for the main course OTTR_Template updates](https://github.com/jhudsl/OTTR_Template/blob/main/.github/sync.yml)
- [File for the OTTR_Quizzes updates](https://github.com/jhudsl/OTTR_Quizzes/blob/main/.github/sync.yml)

#### Making edits to these files if you're not part of the jhudsl GitHub organization

If you're not part of the jhudsl GitHub organization, to edit the `sync.yml` file you'll need to
- fork the repo
- make the changes (described below) to `sync.yml`, committing them to a branch
- create a PR in the original OTTR repo using your branch

Detailed instructions for these steps are provided below:
- Click the pencil in the upper right for "Fork this repository and edit the file"
- Click the green button that says "Fork this repository"
- Make the edits to the file, adding your repository's name where it says `#NEW REPO HERE#`. Be careful to indent the same amount as the other repositories listed.
![](https://raw.githubusercontent.com/jhudsl/OTTR_Template/main/resources/screenshots/edit-sync.yml.png)
- Click the green "Commit changes..." button. As the banner on the top of the page says, this will write your changes to a new branch in your fork so you can open a pull request.
- Add a commit message or extended description beyond what's there if you want to provide more info and click the green Propose Changes button.
- This will automatically open a new page comparing the changes from your branch to the original repo. Click the green "Create pull request" button to create a PR with your edits to the sync.yml file to the OTTR repo.
- Edit the title or provide an extended description beyond what's there if you want (if you already did that when you created your commit, GitHub will copy that over). Click the green "Create pull request" button. This will create a PR in the OTTR repo.
- To make sure that we see the PR, you'll want to add a comment with `@cansavvy` to alert us there's a PR that needs to be merged. Scroll down to "Add a comment", type the `@cansavvy`, and click the green "Comment" button.

Some alternative information on these steps are available [here from GitHub](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) or from [James Priest's Gist on the Fork and PR Workflow](https://gist.github.com/james-priest/74188772ef2a6f8d7132d0b9dc065f9c) (note: you don't need to clone the forked repo locally, instead making edits online and committing to a new branch).

If you'd rather not create a fork and open a PR, we can make edits to the `sync.yml` file for you if you open an issue in the relevant repo (links below) providing us the information about your repo (organization or username as well as the new repo name) or submit a response in our [OTTR Feedback Google Form](https://forms.gle/jGQnd5oemHWyuUq28) providing the information for your new repo in the "Do you have any overall suggestions for OTTR?" question.

| Repository | Issues Link |
|:---------------------:|:---------------------------------------------------------------------------:|
| OTTR_Template | [Open an issue here](https://github.com/jhudsl/OTTR_Template/issues/new/choose) |
| OTTR_Quizzes | [Open an issue here](https://github.com/jhudsl/OTTR_Quizzes/issues/new/choose) |
| OTTR_Template_Website | [Open an issue here](https://github.com/jhudsl/OTTR_Template_Website/issues/new/choose)|

#### Making edits to these files if you are part of the jhudsl GitHub organization

- Add your repository's name where it says `#NEW REPO HERE#`. Be careful to indent the same amount as the other repositories listed.
![](https://raw.githubusercontent.com/jhudsl/OTTR_Template/main/resources/screenshots/edit-sync.yml.png)
- Click on `Commit changes...`
- Type `Add new repository to sync` to `Commit message`.
- Choose `Create a new branch for this commit and start a pull request.` Name the branch what you like.
![](https://raw.githubusercontent.com/jhudsl/OTTR_Template/main/resources/screenshots/add-repo-sync.png)
- Click `Propose changes`.
- See [this guide](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) for any questions you have about creating a pull request from your forked repository.
- Write a short pull request description describing that you are adding a new repository to the `sync.yml` file.
- Click `Create Pull Request`
- Request `@cansavvy` as a reviewer.
Expand Down

0 comments on commit e34ed0d

Please sign in to comment.