Thank you for considering contributing to GnoScan! We value and appreciate your input. Before submitting a pull request, please check the guidelines below.
Steps
- Check existing issues or pull requests before submitting a new one to avoid duplicate submissions.
- Fork the GnoScan repository.
- Create a new branch from the latest
developbranch for your changes. - Make changes and commit them with a concise and descriptive message using the Conventional Commits format. Please check spelling, grammar, and remove any trailing whitespace.
- Push your branch to your forked repository.
- Submit a pull request with
developas the base branch.
Branch Policy
- Start contribution branches from
developand targetdevelopwhen opening pull requests. developis the default branch and deploys to the dev environment.mainis the release candidate branch; do not targetmainunless a maintainer explicitly requests it.- Before submitting, verify that the PR base is
developand the commit list and diff contain only the intended changes.
Release
- Production is deployed only by the
releaseworkflow, run frommainby maintainers. Select thebumplevel (patch/minor/major); the nextvX.Y.Ztag is derived from the latestv*tag. It creates the tag, publishes release notes since the previousv*tag, and deploys that commit to Vercel Production. To redeploy an existing release, run the workflow from that tag (Use workflow from: Tags →vX.Y.Z) withredeployenabled (bumpis ignored). - Re-running a failed
releaserun (Re-run all jobs) reuses the tag that same run already pushed (annotated with its run id) instead of bumping again; the tag push and release creation are skipped when they already exist. - Add the
skip-changeloglabel to pull requests that should not appear in release notes.
Pull Request Language Write pull request titles and descriptions in English.
Pull Request Title Your pull request title must follow the conventional commits format and start with one of the following types:
- feat: A new feature.
- Use this type when you introduce a new feature to the codebase or enhance existing functionality.
- Example: feat: Add user authentication
- chore: Routine tasks or maintenance.
- Use this type when you perform tasks that don't directly change the codebase, such as updating dependencies, configuration changes, or setting up build processes.
- Example: chore: Update dependencies
- fix: A bug fix.
- Use this type when you fix a bug or an issue in the existing codebase.
- Example: fix: Resolve memory leak issue
- docs: Documentation changes.
- Use this type when you update documentation or contribution guidelines.
- Example: docs: Clarify the contribution base branch
- test: Adding missing tests or correcting existing tests.
- Use this type when you add new tests to improve code coverage or fix existing tests that were incorrect or failing.
- Example: test: Add unit tests for user registration
- style: Changes that do not affect the meaning of the code.
- Use this type when you make changes that only affect the code's appearance, such as whitespace, indentation, or formatting adjustments.
- Example: style: Apply gofmt to the codebase
- refactor: Refactoring code that neither fixes a bug nor adds a feature.
- Use this type when you restructure existing code to improve its readability, performance, or maintainability without changing its functionality.
- Example: refactor: Optimize database query logic
This will help maintain a clean and consistent commit history and make it easier for other developers to understand the changes made in each commit.