Aqui está o documento "How to Contribute to MiniAutoGen" atualizado para incorporar a prática do Gitflow:
Thank you for your interest in contributing to MiniAutoGen! This guide is aligned with the Gitflow workflow to ensure a smooth contribution process.
To start, you need your own copy of the repository.
-
Fork the Repository:
- Visit the MiniAutoGen GitHub repository: MiniAutoGen Repo.
- Click on 'Fork' at the top right corner to create a copy in your GitHub account.
-
Clone the Repository:
- Open your terminal.
- Clone the forked repository:
git clone https://github.com/your-username/miniAutoGen.git
- Replace
your-username
with your GitHub username.
-
Navigate to the Project Directory:
- Enter the cloned directory:
cd miniautogen
- Enter the cloned directory:
-
Install Dependencies:
- Ensure you have Poetry installed (Poetry's official site).
- Install dependencies:
poetry install
Read the Gitflow Workflow Pattern
-
Sync with
develop
Branch:- Sync your local
develop
branch with the upstream repository:git checkout develop git pull origin develop
- Sync your local
-
Create a Feature or Hotfix Branch:
- For new features:
git checkout -b feature/your-feature-name develop
- For hotfixes:
git checkout -b hotfix/your-hotfix-name main
- Use descriptive names for your branches.
- For new features:
-
Edit or Add Files:
- Implement your changes, ensuring they align with project standards.
-
Commit Changes:
- Stage your changes:
git add .
- Commit with a descriptive message:
git commit -m "A brief description of the changes"
- Stage your changes:
-
Push Your Changes:
- Push to your fork:
git push origin your-branch-name
- Push to your fork:
-
Submit a Pull Request:
- On your forked GitHub repository, click 'Pull Request' > 'New Pull Request'.
- Select your branch and describe your changes.
- Create the PR against the
develop
branch for features, ormain
for hotfixes.
- PRs are reviewed by maintainers.
- Address feedback if any.
- Approved PRs will be merged according to Gitflow procedures.
- Stay Up to Date: Regularly sync your fork and branches.
- Adhere to Guidelines: Follow the project's coding standards and contribution guidelines.
Thank you for contributing to MiniAutoGen. We value your contributions and commitment to making this project great!