MongoDB welcomes community contributions! If you’re interested in making a contribution to the MongoDB Shell, please follow the steps below before you start writing any code:
- Sign the contributor's agreement. This will allow us to review and accept contributions.
- Fork the repository on GitHub
- Create a branch with a name that briefly describes your feature
- Implement your feature or bug fix
- Add new test cases that verify your bug fix or make sure no one
unintentionally breaks your feature in the future and run them with
npm test
- You can use
it.only()
instead ofit()
in mocha tests to run only a subset of tests. This can be helpful, because running the full test suite likely takes some time.
- You can use
- Add comments around your new code that explain what's happening
- Commit and push your changes to your branch then submit a pull request
You can report new bugs by creating a new issue. Please include as much information as possible about your environment.
To release a new version of this plugin, follow these steps:
- Run the Prepare Release workflow with the desired type of version bump (major, minor, patch) or an exact version.
- The workflow will create a new release branch and a new pull request with the changes. Review the changes and ensure everything on CI looks good.
- Run the Publish Release workflow from the release branch. This will publish the plugin to npm, merge the release PR, and create a new github release.