How to Contribute to Open Source in Hacktoberfest 2022 [Ultimate Guide]Read more" />How to Contribute to Open Source in Hacktoberfest 2022 [Ultimate Guide]Read more" />

How to Contribute to Open Source in Hacktoberfest 2022 [Ultimate Guide]

Open Source projects rule the world with their [usually] good code quality, but more importantly because they are available for free. This also means that the usage-to-contribution ratio is very low,

In other words, a few hundred contributors work on maintaining/improving those open-source projects compared to thousands or millions of users.

Hacktoberfest is one such event from DigitalOcean that encourages you to contribute back to your favorite projects. In exchange for your contributions, you either get a gift from DigitalOcean, or you can choose to plant a tree instead.

Who Can Participate in Hacktoberfest?

Everyone is welcome to participate in Hacktoberfest 2022.

You do not need to be a developer or a computer science student. Whether you’re an artist, a writer, or a translator, anyone can contribute back to open-source projects in one way or the other.

Why Should You Participate in Hacktoberfest?

With Hacktoberfest, DigitalOcean is trying to bring awareness around open-source projects. It aims to encourage users to explore the adventure of an open-source project developer.

You also realize the value of the developer who makes the code available for free by investing in their time, effort, and mental energy.

The Hacktoberfest event encourages you to support your favorite open-source projects. So, you can ensure that the project/tool you love constantly improves, and you get to use it for your requirements.

After all, open-source is all about community efforts and preventing vendor lock-in. So, you cannot expect the developer to do all the work for your benefit, right?

Not to mention, all this exposure to new people around the globe will show you “how to do x” in a different way that will be new to you. Things like that help you think out of the box when you are cornered with a challenging problem.

What Projects Do I Contribute To?

  • You can find eligible code repositories on GitLab.
  • Please ensure that the project you are contributing to has the “Hacktoberfest” topic. Contributions made to other projects may not be counted towards your end goal.

    What Can I Do and How to Get Started?

    First, please ensure that you have registered for Hacktoberfest using your GitHub or GitLab account.

    “But I do not know to program, is that okay?”

    Yes, that is completely fine! Contributing to open source does not mean you must know how to write code. Code is only one part of open source. There are many things an open-source project might need. Below are just a few off the top of my mind:

    • Adding/Fixing Code: This is the obvious thing one might think about contributing to open-source projects. You can send in bug fixes, new features, or even fix a security issue. Send in a pull request for a feature that you have always wanted!
    • Improving Documentation: Documentation is essential for every project. Developers read it, and users need it. You can help improve/fix the documentation.
    • Helping in Translation: Being open source means anyone around the globe can access your project. But that also means that there will be people who do not be able to write/read/speak English.
      Translation made available in their native language will boost collaboration.
    • Creating Graphics: Some software projects do not have anyone who can create graphics like a good Logo. You can help with such tasks as well.
    • UI/UX design: If you can’t contribute with graphics, you can help with the UI/UX design.

    You can also help spread the word, and share the project with the world to to improve its social presence.

    Additionally, you can support the projects financially if you do not have time to participate in Hacktoberbest.

    Things to Know Before Joining the Hacktoberfest

    GitLab or GitHub must be dated between October 1st and October 31st (inclusive).
  • At least four of your pull requests must be merged or accepted in the respective repositories.
  • Your pull request must be sent to repositories that have the topic “Hacktoberfest” in it, or it must be labeled as “Hacktoberfest-accepted“.
  • Note that the first 40,000 participants to get their pull requests merged will be entitled to a prize from DigitalOcean. For Hacktoberfest 2022, the prize is a Hacktoberfest 2022 T-shirt. You can opt to plant a tree instead of getting a t-shirt.

    There a few more conditions that could affect your participation, those include:

    • More than two pull requests labeled as “spam” will disqualify you for this Hacktoberfest and future DigitalOcean events.
    • Any pull requests labeled as “Invalid” (by the maintainer) will be discarded from your total goal.
    • Any pull request sent to repositories that do not align with Hacktoberfest’s values will not be counted against your total. At the moment, there is no official list that notifies you of any such repositories. If unsure, ask a question on the official Hacktoberfest Discord server.
    • Please avoid sending pull requests that are only slightly beneficial or are there just for the sake of introducing a minor change. Examples include “Fixed whitespaces“, “Fix typos“, “Reformat code using spaces instead of tabs“, and “Increment from 0 to i instead of decrementing i to 0“.

    How Do I Know The Contributing Guidelines for Projects?

    While I discuss the process of contributing to a project in the next section, you should check every project’s guidelines before you proceed.

    The file will usually contain some of the following items:

    • Code of Conduct: Please read this VERY CAREFULLY. This refers to the acceptable behavior of an individual for said project. If you fail to uphold this, your future contributions may go unnoticed; they might even get rejected outright.
    • Code Formatting: Each project has its coding style. It is best to format the code according to the code formatting laid out in the
    • ToC: Some projects require you to accept the terms and conditions (about your rights to your contributed code) before your pull request merges. Please read this carefully and ensure you are comfortable with the restrictions (if any apply).
    • License: Please read the license under which the repository’s code is made available. You must adhere to said license.
    • Contributor Resources: Since this file ( is intended for first-time contributors, you will also be given some contributor resources to help you understand how a code review takes place, and what things need to be done a pull request to be merged.
    • PR tags: Some maintainers expect you to create a pull request using a tag. Some of these tags might be “bug fix”, “new feature”, “good first issues”, etc. This helps the maintainer(s) and the community to focus on the issues of their interest.
    • Issue templates: If you send in a pull request, sometimes you are required to run a few commands. These commands may do a few things like “cleanup build files”, “remove custom configuration files”, etc.
    • How to set up a development environment: Sometimes, the file will also list all the packages you need to build the software project. Optionally, you will also be told: “how to package this”. These items will be included so that you can test if your changes break something before you send in a pull request.
    • Ownership info: This section will include details like “Person X handles pull requests for bug fixes”, so if your pull request for a bug fix does not get accepted, you can ask person X for input and how you can improve your pull request, so it gets accepted.

    How Does The Entire Process Work?

    Now that you are aware of the prerequisites. How do you proceed? How do you make your first pull request? Is it too technical for first-time users?

    Not really. You just have to type in a few commands, and follow a step-by-step method carefully. There’s nothing overwhelming. You just have to be patient with the entire process.

    To sum up, here’s what you have to do:

    1. Install and Setup Git.
    2. Create a GitHub or GitLab account.
    3. Fork the repository you want to contribute to.
    4. Work with the repository using Git.
    5. Submit the code/change to the repository.

    How To Make Your First Pull Request?

    Fret not, I will provide you all the steps in the correct order to get you started.

    1. Install Git on Your System

    sudo apt install git git-man

    Users of Fedora/RHEL-based Linux distributions can install git using the dnf package manager like so:

    sudo dnf install git git-core git-core-doc

    Users of Arch Linux can install git using the pacman package manager with the following command:

    sudo pacman -Sy git

    Install git on macOS

    macOS users can install git using either the brew or macports package managers.

    # brew users
    brew install git
    # macports users
    sudo port install git

    Install git on Windows

    Windows users that prefer an installable .exe file, you can download it from GitHub releases.

    Or, if you prefer using a package manager on Windows, use winget with the command:

    winget install --id Git.Git -e --source winget

    2. Setup Git

    Once you have git installed, some configuration needs to be made. Git needs your name and e-mail address to log a commit.

    You can add your name and e-mail address to git using the following commands:

    git config --global "your name here"
    git config --global "your email here"

    Doing so will help others know who made which change and how to contact them. Not to forget that without a name and an e-mail provided to git, you will not be able to create any commits.

    You can refer to our Git command guide to explore other essential commands.

    3. Creating a GitHub or GitLab account

    Once Git is installed and set up, we can proceed to create a GitHub or GitLab account. If you already have an account, skip to the next step.

    To create a GitHub account, click here. If you want to create a GitLab account, click here.

    Provide your name, and e-mail address, and choose a suitable username and a strong password. Once your account is set-up, it is highly advised that you also set-up two-factor authentication. The documentation to enable 2FA on GitHub can be found here, and GitLab users should look here.

    4. How do I send a pull request?

    To participate in Hacktoberfest 2022, you must have 4 of your pull requests accepted/merged. I will demonstrate how you can send a pull request.

    My personal preference is GitLab, but GitHub is more popular among the people new to the open source community, so I will demonstrate the procedure using GitHub. The steps will be same for GitLab users, with only minor UI differences.

    a. Fork a repository

    The action of “forking a repository” refers to creating your own copy of the repository to work on it. So let us find some Hacktoberfest repositories on GitLab and GitHub to fork.

    I have selected the compress-pdf repository on GitHub for this demonstration. Visit the repository of your choice and look for the “Fork” button.

    Leave a Comment

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Server Status

    Aradippou Chat 1 Chat 2 Larnaca Limassol Nicosia

    Chat Links

    Official Links.

    1. Chat 1.
    2. Chat 2.

    Alternative Mirror Links.

    1. KiwiIRC 1.
    2. KiwiIRC 2.

    Other Web Clients.

    1. IrcCloud.

    Recent Posts

    Related Posts:


    Super Club Radio


    CyIRC Tweets

    • Eli: Hello, I am Eli. Ask me anything!

    Eli thinking ...
    Scroll Up