How to Get Started with Contributing to Open Source

Share

Summary

This video provides a comprehensive guide on contributing to open-source projects, from finding suitable projects to submitting your first pull request. It emphasizes evaluating project activity and community support, understanding documentation, and following best practices for making contributions.

Highlights

Introduction to Open Source Contribution Steps
00:00:00

The video outlines seven steps for contributing to open source: finding a project, deciding on it, reading documentation, finding work, asking for clarification, working on the project, and submitting a pull request. It highlights the importance of contributing to tools you already use, like PyTorch, but also offers external resources for finding projects.

Finding a Suitable Project
00:00:39

The first step is to identify projects you frequently use that are open source. If no such projects come to mind, websites like GitHub's 'Great for new contributors', 'Up for grabs', and 'Code Triage' can help. These sites list projects suitable for beginners, often indicating active communities and manageable issues.

Evaluating a Project's Suitability for New Contributors
00:01:50

To determine if a project is good for new contributors, check for a license, a code of conduct, and contribution documentation. Assess the project's activity by looking at recent commits, issue creation and closure rates, and the responsiveness of maintainers to issues and pull requests, as demonstrated with the YouTube-DL library.

Understanding the Project and its Documentation
00:04:44

Before contributing, thoroughly read the project's documentation, including the README, contributing guidelines, and code of conduct. This helps in understanding the project's jargon, vision, and expected contribution process. It ensures your contributions align with the project's goals and practices.

Finding Something to Work On
00:06:10

Ways to find tasks include fixing typos in the documentation, filtering open issues by 'good first issue' labels, or searching for 'to do' comments within the codebase. For more complex tasks, engaging with existing issue discussions is crucial for clarity.

Asking for Clarification and Communication
00:08:24

While minor fixes might not require much communication, for significant changes or new features, always inform the maintainers. If working on a specific issue, ask questions in the issue thread and state your intention to work on it to avoid duplication and ensure guidance.

Working on the Project: Forking and Cloning
00:09:00

To start, fork the repository to create your own copy. Then, clone your forked repository to your local machine. Before making changes, review the project's contributing guide for specific development and documentation rules. Create a new branch for your changes to keep your work isolated from the main branch.

Making and Pushing Changes
00:10:57

Make your desired changes in your local branch. Before pushing, ensure your local main branch is up-to-date with the original project's main branch to avoid conflicts. Then, commit your changes with a clear message, referencing any relevant issue numbers. Finally, push your branch to your forked GitHub repository.

Submitting a Pull Request
00:12:47

On GitHub, navigate to your forked repository and click 'Compare & pull request'. Ensure you are proposing changes from your branch to the original project's main branch. Fill out the pull request template, adhering to any specific patterns or information requested in the contribution documentation. You can also create a 'draft pull request' for ongoing work that needs feedback.

Post-Submission Expectations
00:13:54

After submitting, be prepared for feedback, which may include comments, suggestions, or even rejection. Maintain an open and friendly attitude, as open-source communities value collaboration and learning. The goal is to contribute and grow together.

Recently Summarized Articles

Loading...