We're so thankful you're considering contributing to an open source project of the U.S. government! If you're unsure about anything, just ask -- or submit the issue or pull request anyway. The worst that can happen is you'll be politely asked to change something. We appreciate all friendly contributions.
We encourage you to read this project's CONTRIBUTING policy (you are here), its LICENSE, and its README.
Look for issues labeled good-first-issue
for good opportunities to contribute. These issues are specifically chosen to help newcomers get involved with the project.
Our project maintainers are listed in MAINTAINERS.md. They are responsible for reviewing and merging all pull requests. Feel free to tag them in issues or pull requests for assistance.
To work on this project, you'll need:
- Node.js 20 or later
- Go 1.22 or later
- SCC tool (installed via
go install github.com/boyter/scc/v3@latest
) - GitHub CLI (optional, but helpful for testing)
# Clone the repository
git clone https://github.com/DSACMS/code-json-generator.git
cd code-json-generator
# Install dependencies
npm install
# Build the project
npm run package
# Run tests
npm test
We follow the GitHub Flow Workflow:
- Fork the project
- Check out the
main
branch - Create a feature branch
- Write code and tests for your change
- From your branch, make a pull request against
DSACMS/code-json-generator/main
- Work with repo maintainers to get your change reviewed
- Wait for your change to be pulled into
DSACMS/code-json-generator/main
- Delete your feature branch
- Tests are written using Jest and can be found in the
__tests__
directory - Run tests with
npm test
- All new features should include corresponding test coverage
- Test files should follow the naming convention:
*.test.ts
- This project uses TypeScript and follows standard TypeScript conventions
- We follow the Prettier code formatting rules
- ESLint is used for code linting
- All code must pass typechecking and linting before being merged
- Run
npm run lint
to check your code
When creating an issue please try to adhere to the following format:
### Description
Clear description of the issue or feature request
### Expected behavior
What should happen
### Actual behavior
What is happening (for bugs)
### Steps to reproduce
1. Step one
2. Step two
3. Step three
### Additional context
Any other relevant information
- Pull requests should be focused on a single change
- Include tests for any new functionality
- Update documentation as needed
- Follow our commit message format:
feat(scope): description of feature
- Additional details about the change
- Any breaking changes
- Any migration steps required
Pull requests are reviewed by the maintainers listed in MAINTAINERS.md. Reviews will check for:
- Code quality and style
- Test coverage
- Documentation updates
- Breaking changes
- Security implications
Releases are created by maintainers as needed when significant changes are merged. We use semantic versioning for releases.
Documentation improvements are always welcome! Please file an issue first to discuss any major changes. Key areas for documentation:
- README.md updates
- Code comments
- Example workflows
- TypeScript type definitions
We adhere to the CMS Open Source Policy. If you have any questions, just shoot us an email.
Submit a vulnerability: Vulnerability reports can be submitted through Bugcrowd. Reports may be submitted anonymously. If you share contact information, we will acknowledge receipt of your report within 3 business days.
For more information about our Security, Vulnerability, and Responsible Disclosure Policies, see SECURITY.md.
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication as indicated in LICENSE.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest.