🙌 Postar Open Source Contributing Guide
Thank you for your interest in this project! We welcome all forms of contribution, including reporting issues, submitting bug fixes, proposing new features, and more. To ensure the healthy development of the project, please read and follow the guidelines below before contributing.
Table of Contents
Getting Started
Clone the project locally:
bashgit clone https://github.com/gitcoffee-os/postar.gitInstall dependencies
Install the required dependencies based on the project's needs. You can usually find installation instructions in the project's README file.Create a new branch
Before starting work, make sure to pull the latest code from themainormasterbranch and create a new branch for the issue or feature you want to work on:bashgit checkout -b <feature-branch-name>
Reporting Issues
If you find a problem or have a suggestion, please follow these steps to report it:
- Create a new issue on the Issues page on GitHub.
- Describe the issue in detail, including reproduction steps, error messages, screenshots, and any other information that might help resolve the issue.
Submitting Code
Branch Management
When making any changes, always create a new branch from the latest main or master branch and commit your work to that branch.
Commit Message Convention
We follow the Conventional Commits specification for commit message formatting. Ensure each commit message is concise and follows this format:
<type>(<scope>): <description>Examples:
feat(publisher): add Medium platform publishing support
fix(content): fix missing images during content extraction
docs: update API usage examples in documentationCommon types:
feat: New featurefix: Bug fixdocs: Documentation onlystyle: Code formatting (no functional changes)refactor: Code refactoringtest: Adding or updating testschore: Miscellaneous (e.g., build process or dependency management)
Code Style
This project uses Prettier and ESLint to enforce code style. Before submitting code, make sure it has been auto-formatted and passes static checks. If you don't have these tools installed, follow these steps:
Install dependencies:
bashpnpm iRun code formatting:
bashpnpm run format pnpm run format:check
Testing
We encourage writing tests to ensure code quality and prevent regressions. Before submitting code, make sure all tests pass.
Add tests
If your changes involve a feature or bug fix, add new unit tests for that part and ensure the tests cover all relevant scenarios.Run tests
Run the project's test suite to ensure all tests pass.bashpnpm test
Code Review
Every submission goes through Pull Request (PR) review. We welcome anyone to participate in the review process. When reviewing, please follow these points:
- Check functionality: Ensure the code solves the problem or implements the intended feature.
- Check code quality: Ensure the code is easy to read and understand, and follows the project's coding standards.
- Check test coverage: Ensure that feature changes haven't caused test failures; write new tests if necessary.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Thank you for contributing to this project! If you have any questions or suggestions, please feel free to ask — we'll do our best to help.