Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 2.79 KB

Contribution.md

File metadata and controls

89 lines (60 loc) · 2.79 KB

Contributing to the PyTorch-SVGRender

The PyTorch-SVGRender community is a collaborative initiative driven by the community, emphasizing a commitment to being free and void of exploitation. Organized spontaneously by community members, we invite you to contribute to the PyTorch-SVGRender open-source community and help elevate it to new heights!

Submitting a Pull Request (PR)

As a contributor, before submitting your request, kindly follow these guidelines:

  1. Start by checking the PyTorch-SVGRender GitHub to see if there are any open or closed pull requests related to your intended submission. Avoid duplicating existing work.

  2. Fork the PyTorch-SVGRender repository and download your forked repository to your local machine.

    git clone [your-forked-repository-url]
  3. Add the original PyTorch-SVGRender repository as a remote to sync with the latest updates:

    git remote add upstream ximinng/PyTorch-SVGRender
  4. Sync the code from the main repository to your local machine, and then push it back to your forked remote repository.

    # Pull the latest code from the upstream branch
    git fetch upstream
    
    # Switch to the main branch
    git checkout main
    
    # Merge the updates from the upstream branch into main, synchronizing the local main branch with the upstream
    git merge upstream/main
    
    # Additionally, sync the local main branch to the remote branch of your forked repository
    git push origin main
    

Note: Sync the code from the main repository before each submission.

  1. Create a branch in your forked repository for your changes, ensuring the branch name is meaningful.

    git checkout -b my-docs-branch main
  2. While making modifications and committing changes, adhere to our Commit Message Format.

    git commit -m "[docs]: xxxx"
  3. Push your changes to your GitHub repository.

    git push origin my-docs-branch
  4. Submit a pull request to PyTorch-SVGRender:main on the GitHub repository page.

Commit Message Format

Commit messages must include both <type> and <summary> sections.

[<type>]: <summary>
  │        │
  │        └─⫸ Briefly describe your changes, without ending with a period.
  │
  └─⫸ Commit Type: |docs|feat|fix|refactor|

Type

  • docs: Modify or add documents.
  • feat: Introduce a new feature.
  • fix: Fix a bug.
  • refactor: Restructure code, excluding new features or bug fixes.

Summary

Describe modifications in English, without ending with a period.

e.g., git commit -m "[docs]: add a contributing.md file"