Developer Guide
Create a pull request

Creating a Pull Request

Once you've made your changes to the MedModels codebase and are ready to share them, you'll submit a pull request (PR). Here's a guide to walk you through the process:

1. Push your Local Branch:

  • Commit your changes locally using clear and concise commit messages following the Conventional Commits standard (https://www.conventionalcommits.org/en/v1.0.0/ (opens in a new tab)).

  • This standard encourages using a specific format for commit messages that categorizes your changes. Here's the breakdown:

    • Type: Start your message with type like feat, fix, refactor, docs, etc. We use the following types in this project:
      • build: Changes related to build infrastructure or tools.
      • chore: Changes that don't directly affect functionality, like updating dependencies or formatting.
      • ci: Changes related to the continuous integration pipeline.
      • docs: Changes to documentation or comments.
      • feat: Introduction of a new feature or functionality.
      • fix: Bug fixes or resolving issues.
      • test: Adding or improving tests.
      • refactor: Code improvements that don't introduce new features or fix bugs (e.g., improving code structure or readability).
  • Push your local branch to your remote repository on GitHub.

2. Create a Pull Request:

  • Navigate to the MedModels repository on GitHub and go to the "Pull requests" tab.
  • Click on the green "New pull request" button.
  • Select the branch containing your changes from the "head" branch dropdown.
  • Choose the branch you want your changes merged into from the "base" branch dropdown (usually the main branch).
  • Provide a clear and descriptive title for your pull request that reflects the changes you made.
    • The title should follow the Conventional Commits type (e.g., "feat: Add support for new image format").
  • In the body of the pull request, elaborate on your changes and provide any additional context or testing instructions if needed.

3. Address Feedback and Merge:

  • Once submitted, reviewers may provide feedback or request changes. Address these comments and make any necessary adjustments to your code.
  • After receiving approval from reviewers, you can merge your pull request into the main branch.

Using Conventional Commits effectively helps maintain a clear and organized commit history for the project.

By following these steps and adhering to the Conventional Commits standard, you'll ensure a smooth pull request experience for yourself and the MedModels maintainers.