Simple lab for students to start to use GitHub and submit their first pull request.
- Create a GitHub account
- Exercise 1: Create your first pull request
- Exercise 2: Create your first repo from a template
- Next steps
Go ahead and sign up a public GitHub account.
With that done, it's now time to create your first GitHub contribution! Follow the steps in the Practice-Pull-Requests repo.
Ok, now that you've learned how to contribute to an existing project, it's time to create and configure your own repository from the Project Sample template.
First, click the green "Use this template" button at the top of the repo. Create a copy under your GitHub user name. You can make it public or private if you want to work on something before releasing it later.
This repo is a bit more complex than the pull reqest practices repo, but you'll notice that it has the same key README.md
, CONTRIBUTING.md
, and LICENSE
files as you saw there.
From here, you'll want to get familiar with 4 of the tabs at the top of your repo. You've already worked with issues and pull requests. Let's ignore ZenHub (if you have it) and Actions for now and focus on Projects, Wiki, Security, Insights, and Settings.
This is GitHub's built in project management feature for tracking issues on a board. It can be used similar to Trello or ZenHub. This is a good way to manage your wall of work and track progress during standups or scrums. You can create projects at the repo level, or manage tasks in many repos by using one at the organization level.
This is an alternative to providing your documentation alongside what's in the Code part of the repo. There are pros and cons to this, as folks may not know you have a wiki unless you explicitly point to it from your README.md
. For a good example of how wikis are used alongside code, have a look at the ClusterDuck Protocol README.md and wiki.
Here you can review how security issues are handles. There are some options you can check, and you'll quickly become familar with the GitHub dependabot which will scan public repos for dependency vulnerabilities and often send you pull requests. If you're building a Node.js app, dependabot will be your new best friend.
This tab serves as your metrics dashboard. You can see how your code is being updated over time, who your leading contributors are, and how many people are finding your repo from various links.
Finally, this tab contains just about every other configuration for your project. You can manage user permissions here and invite others to collaborate on your project. One other interesting item is Pages. This allows you to publish a public website from your repository. So if you're looking for free webhosting (you can even point a custom domain at it) this could be interesting. This is used to host pyrrha-platform.org.
After you've gotten the hang of things through this workshop repository, we encourage you to continue learning more about contributing to open source.
-
Spend 4-6 hours on the free "Introduction to Open Source" class. It's intended for technical and non-technical folks alike to learn about open source, which is becoming a key skill in today's world. You can earn a badge and certificate after completion.
-
Explore the existing Call for Code projects and make your first contribution! Anything from a small typo fix, to a language translation or documentation update, to an important code fix is welcome!