Contributing to redhat-cop/rhel-good-practices
Welcome to the redhat-cop/rhel-good-practices
repository! We appreciate your interest in contributing. This guide will walk you through the entire process of contributing to the project, from setting up your environment to submitting your changes.
Table of Contents
- Getting Started
- Setting Up Your Environment
- Making Changes
- Creating a Pull Request
- Code Review Process
- Additional Resources
Getting Started
Before you start contributing, make sure you have the following: - A GitHub account. - Basic knowledge of Git and GitHub workflows. - Familiarity with the project's purpose and guidelines (check the README).
Setting Up Your Environment
- Fork the Repository:
- Go to the repository page.
- Click the "Fork" button at the top right to create a copy of the repository under your GitHub account.
-
Proceed and create the fork.
-
Clone Your Fork:
-
Clone your forked repository to your local machine (replace YOUR-USERNAME with your GitHub username):
-
Set Upstream Remote:
-
Add the original repository as an upstream remote to sync changes:
-
Sync Your Fork:
- Fetch the latest changes from the upstream repository:
-
Merge the changes into your main branch:
-
Create a New Branch:
- Create a new branch for your changes:
Making Changes
- Make Your Changes:
- Make the necessary changes to the code or documentation.
-
Follow the project's coding standards and guidelines.
-
Commit Your Changes:
- Stage your changes:
-
Commit your changes with a clear and descriptive commit message:
-
Push Your Changes:
- Push your changes to your forked repository:
Creating a Pull Request
- Open a Pull Request:
- Go to your forked repository on GitHub.
- Click the "Compare & pull request" button.
- Describe Your Changes:
- Provide a clear title and description for your pull request.
-
Reference any related issues using
#issue-number
. -
Submit the Pull Request:
- Click "Create pull request" to submit your changes for review.
Code Review Process
- Maintainers will review your pull request and may request changes.
- If changes are requested, make the necessary updates and push them to your branch. The pull request will automatically update.
- Once your pull request is approved, it will be merged into the main repository.
Additional Resources
- GitHub Docs: Contributing to a Project
- GitHub Flow Guide
- How to Write a Good Commit Message
- Git Cheat Sheet
Thank you for contributing to redhat-cop/rhel-good-practices
! Your efforts help improve the project for everyone. If you have any questions, feel free to reach out to the maintainers.
Happy contributing! 🚀