| lang | en | ||||
|---|---|---|---|---|---|
| title | Contributing Guide | ||||
| title-en | Contributing Guide | ||||
| title-ja | コントリビューティングガイド | ||||
| related |
|
||||
| instructions-for-ais |
|
This document provides contribution guidelines for this project.
External contributors do not have write access to this repository, so contributions follow a fork-based workflow.
Package Distribution: This package is published to npmjs.com (promidas).
For development environment setup and daily development workflow, see DEVELOPMENT.md.
For documentation standards and guidelines, see DOCUMENTATION.md.
For release procedures (maintainers only), see RELEASE.md.
We welcome contributions! Here's how to get started:
- Good First Issues: Look for
good-first-issuelabel on GitHub Issues - Documentation: Improvements to README, guides, or examples
- Bug Fixes: Check
buglabeled issues - Feature Requests: See
enhancementlabeled issues - Test Coverage: Add tests for existing functionality
- Check existing issues - Avoid duplicate work by searching existing issues and pull requests
- Discuss major changes - Open an issue first for significant features or architectural changes
- Read documentation - See DEVELOPMENT.md for environment setup and workflow
- GitHub Issues: For bug reports, feature requests, and technical questions
- Pull Request Discussions: For questions about specific code changes
- Language: English or Japanese are both welcome
Click "Fork" on GitHub or use GitHub CLI:
gh repo fork F88/promidas --clonegit checkout -b feature/my-feature
# or
git checkout -b fix/my-bugfixBranch Naming Conventions:
feature/*- New featuresfix/*- Bug fixesdocs/*- Documentation updatesrefactor/*- Code refactoringtest/*- Test additions or improvementsperf/*- Performance improvements
- Follow existing code style (ESLint and Prettier will help)
- Add tests for new functionality
- Update documentation as needed
- Keep commits focused and atomic (one logical change per commit)
Use Conventional Commits format (see below for details):
git add .
git commit -m "feat(store): add caching strategy"git push origin feature/my-featureThen create a Pull Request on GitHub.
To sync your fork with the upstream repository:
# Add upstream remote (first time only)
git remote add upstream https://github.com/F88/promidas.git
# Fetch and rebase
git fetch upstream
git rebase upstream/mainFollow the Conventional Commits format:
<type>(<scope>): <subject>
<body>
<footer>
Type:
feat: New featuresfix: Bug fixesdocs: Documentation only changesstyle: Changes that do not affect the meaning of the code (formatting, etc.)refactor: Code changes that neither fix a bug nor add a featureperf: Performance improvementstest: Adding or correcting testsbuild: Changes to the build system or external dependenciesci: Changes to CI configuration files and scriptschore: Other changes (releases, etc.)
Breaking Change:
For breaking changes, add ! after the type or include BREAKING CHANGE: in the footer:
feat(api)!: remove deprecated endpoints
BREAKING CHANGE: All v1 API endpoints have been removed.
- [ ] All tests pass (`npm test`)
- [ ] Exports tests pass (`npm run test:exports`)
- [ ] Performance tests pass (`npm run test:perf`)
- [ ] Linter passes (`npm run lint`)
- [ ] Formatting passes (`npm run format:check`)
- [ ] Type checking passes (`npm run typecheck`)
- [ ] Build succeeds (`npm run build`)
- [ ] Commit messages follow Conventional Commits format
Follow Conventional Commits format:
feat(store): add new caching strategy
fix(fetcher): handle network timeout correctly
docs: update installation guide
Provide a clear description of your changes:
## Description
Brief description of what this PR does and why.
## Type of Change
- [ ] Bug fix (non-breaking change fixing an issue)
- [ ] New feature (non-breaking change adding functionality)
- [ ] Breaking change (fix or feature causing existing functionality to change)
- [ ] Documentation update
## Related Issues
Fixes #123
Related to #456
## Testing
- [ ] Added new tests
- [ ] All existing tests pass
- [ ] Manual testing performed
## Documentation
- [ ] Updated relevant documentation
- [ ] Added JSDoc comments for new code- Automated Checks: All CI checks must pass
- Maintainer Review: Typically responds within 2-3 business days
- Address Feedback: Update your PR based on review comments
- Approval: Once approved, maintainers will merge your PR
If CI checks fail:
- Review the error messages in the CI logs
- Run the same checks locally (see Pre-PR Checklist)
- Fix the issues and push new commits
- CI will automatically re-run on the updated PR
Your contribution will be included in the next release and credited in the CHANGELOG.md.
- Be responsive: Address feedback promptly and professionally
- Be receptive: Accept constructive criticism gracefully
- Ask questions: If feedback is unclear, ask for clarification
- Keep discussions focused: Stay on topic and relevant to the PR
- Be respectful: Assume good intentions and be kind
- Be specific: Explain why, not just what needs to change
- Be helpful: Suggest alternatives or improvements
- Be timely: Provide feedback in a reasonable timeframe
- Code follows project conventions and style guide
- Tests adequately cover new functionality
- Documentation is clear and up-to-date
- No unnecessary breaking changes
- Performance impact is acceptable
- Security considerations are addressed
When reporting a bug, include:
- Clear description: What happened vs. what you expected
- Reproduction steps: Minimal code to reproduce the issue
- Environment: Node.js version, OS, package version
- Error logs: Complete error messages and stack traces
- Additional context: Screenshots, related issues, etc.
When requesting a feature, include:
- Use case: Why is this feature needed? What problem does it solve?
- Proposed solution: How would you like it to work?
- Alternatives: Other solutions you've considered
- Additional context: Examples from other libraries, mockups, etc.
DO NOT open public issues for security vulnerabilities.
For security concerns:
- Review docs/security.md for security guidelines
- Report vulnerabilities privately through GitHub Security Advisories
- Include detailed reproduction steps and impact assessment
- Allow reasonable time for the maintainers to address the issue before public disclosure