First, thank you for taking the time to contribute!
The following is a set of guidelines for contributors as well as information and instructions around our maintenance process. The two are closely tied together in terms of how we all work together and set expectations, so while you may not need to know everything in here to submit an issue or pull request, it's best to keep them in the same document.
Before contributing code, we recommend reading the DEVELOPER.md documentation which covers:
- Architecture overview and data flow
- Directory structure and key modules
- Collection processor system
- How to add new features and processors
- Testing guidelines
Contributing isn't just writing code - it's anything that improves the project. All contributions are managed right here on GitHub. Here are some ways you can help:
If you're running into an issue, please take a look through existing issues and open a new one if needed. If you're able, include steps to reproduce, environment information, and screenshots/screencasts as relevant.
New features and enhancements are also managed via issues.
Pull requests represent a proposed solution to a specified problem. They should always reference an issue that describes the problem and contains discussion about the problem itself. Discussion on pull requests should be limited to the pull request itself, i.e. code review.
This project uses Conventional Commits for version management. Commit messages are validated using commitlint via husky git hooks.
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
| Type | Description | Version Bump |
|---|---|---|
| feat | New feature | Minor |
| fix | Bug fix | Patch |
| docs | Documentation only | None |
| style | Code style changes (formatting, etc.) | None |
| refactor | Code refactoring | None |
| perf | Performance improvements | Patch |
| test | Adding or updating tests | None |
| build | Build system or dependencies | None |
| ci | CI/CD configuration | None |
| chore | Other changes | None |
| revert | Revert a previous commit | Depends |
To indicate a breaking change, add ! after the type/scope or include BREAKING CHANGE: in the footer:
feat!: remove deprecated API endpoint
BREAKING CHANGE: The /v1/users endpoint has been removed. Use /v2/users instead.
Breaking changes will trigger a major version bump.
Helping to test an open source project and provide feedback on success or failure of those tests is also a helpful contribution. Submitting the results of testing as a comment on a Pull Request of a specific feature or as an Issue when testing the entire project is the best approach for providing testing results.
The develop branch is the development branch which means it contains the next version to be released. main contains the stable development version. Always work on the develop branch and open up PRs against develop.
This project uses Release Please for automated releases:
- Commit your changes using conventional commit format
- Merge to develop - When commits are merged to develop, Release Please automatically:
- Analyzes commits since the last release
- Creates/updates a Release PR with changelog and version bump
- Merge the Release PR - When the Release PR is merged:
- A new GitHub Release is created
- The package is published to npm
- Tags are created automatically
- Branch: Starting from
develop, cut a release branch namedrelease/X.Y.Zfor your changes. - Version bump: Ensure
package.jsonversion is correct (usually handled by Release Please). - Changelog: Verify
CHANGELOG.mdis updated (usually handled by Release Please). - Props: Update
wiki/CREDITS.mdfile with any new contributors, and confirm maintainers are accurate. - New files: Check to be sure any new files/paths that are unnecessary in the production version are included in
.gitattributesor.distignore. - Readme updates: Make any other readme changes as necessary in the
README.mdfile. - Merge: Make a non-fast-forward merge from your release branch to
develop(or merge the pull request), then do the same fordevelopintomain. - Push: Push your
mainbranch to GitHub. - Compare
maintodevelopto ensure no additional changes were missed. - Test the pre-release ZIP locally by downloading it from the Build Plugin action artifact.
If you run into issues during the release process and things have NOT fully deployed to npm or other external locations, then the best thing to do will be to delete any Tag or Release that's been created, research what's wrong, and once things are resolved work on re-tagging and re-releasing.
If you run into issues during the release process and things HAVE deployed externally, then the best thing to do will be to research what's wrong and once things are resolved work on a patch release. At the top of the changelog / release notes it's best to note that it's a hotfix to resolve whatever issues were found after the previous release.