-
Notifications
You must be signed in to change notification settings - Fork 7
Contributing to the project through Github web interface
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.
- 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.
- 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'
!
- 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
.
- 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.
- 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).
- Here you are presented with the Github editor. Copy and paste the file from your computer into the editor.
- 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".
- 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 afterpbucore /
.
- Give your file an appropriate name, use the editor to write (or paste) your file.
- 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..
- 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.
- Enter a meaningful message that briefly describes your branch as a whole. Then click "Create pull request".
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.
- Congrats! We now have a PR for your branch that can be reviewed by others, and hopefully merged into the
master
branch.
If there is any additional conversation that needs to happen before merging your PR, it should happen in the comments section below.
- 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.