Skip to content

Contributing to the project through Github web interface

afred edited this page Feb 12, 2015 · 6 revisions

If you are confident using git from the command line of your computer, please do that. If not, then follow this guide to contribute to the project through Github's web interface.

This should be a small set of work, such as modifying the xsl stylesheet to map a specific PBCore xml element to its EBU RDF-XML counterpart.

  1. From project home page, https://github.com/WGBH/pbucore, locate the drop down that lists the branches, and make sure you are on the master branch.

image

  1. Click the box, and type in a meaningful name for your new branch. Then click "Create branch".

IMPORTANT! Make sure you are creating your branch from 'master'!

image

  1. Awesome! You have a branch. Now you can copy the file from Github to your computer, and make some changes. Navigate to a file you want to change, e.g. pbcore-2-ebucore.xsl.

image

  1. Click the file to view it. Notice that you are still on the branch you created in Create a branch. Here you can copy and paste the file to your computer, and make edits.

HINT: The "Raw" button (toward the left of the screen) will display a view of the file that may be easier to copy.

image

  1. After you are satisfied with the changes you made to your file on your computer, you are ready to commit it to your branch in the Github repository. From the screen in Copy the file to your computer for editing, click on the "Edit" icon (with the pencil, toward the left of the screen).

image

  1. Here you are presented with the Github editor. Copy and paste the file from your computer into the editor.

image

  1. When you are ready to commit your change, scroll to the bottom of the editor. Enter a meaningful commit message. Make sure the Commit directly to [your branch] option is selected. Click "Commit changes".

image

  1. If you need to add new files, go back to the project home page. Make sure you are on your branch, then click the + button after pbucore / .

image

  1. Give your file an appropriate name, use the editor to write (or paste) your file.

image

  1. At the bottom of the screen, commit your file in the same way as you did in Commit your changed file to your branch on Github..
  1. After adding/editing all the files you need to, go back to the project home page. You may see a bar labeled "Your recently pushed branches" that contains your branch name. If you are ready to merge your branch into the master branch, click the "Compare & pull request" button.

image

  1. Enter a meaningful message that briefly describes your branch as a whole. Then click "Create pull request".

image

NOTE: If you do not see the "Able to merge" green checkbox, then you may need to rebase your branch onto the master branch. Leave a comment for @afred in the comments.

  1. Congrats! We now have a PR for your branch that can be reviewed by others, and hopefully merged into the master branch.

image

If there is any additional conversation that needs to happen before merging your PR, it should happen in the comments section below.

image

  1. If additional changes need to be made to your PR before merging, simply make your changes as you did in the previous steps, making sure to do so on your branch. The PR will automatically update after any new commits to your branch. Once you've fixed what needs fixing, notify someone in the comments section of the PR by mentioning their github username with the @ symbol.