We welcome contributions to the Vercel Action project! This document provides guidelines and standards for contributing.
- Fork and clone the repository
- Install dependencies:
npm install - Run tests:
npm test - Run linter:
npm run lint
We use Conventional Commits specification for our commit messages. This leads to more readable messages and enables automatic generation of the changelog.
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Must be one of the following:
- build: Changes that affect the build system or external dependencies
- chore: Other changes that don't modify src or test files
- ci: Changes to our CI configuration files and scripts
- docs: Documentation only changes
- feat: A new feature
- fix: A bug fix
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- revert: Reverts a previous commit
- style: Changes that do not affect the meaning of the code (white-space, formatting, etc)
- test: Adding missing tests or correcting existing tests
# Feature with scope
feat(auth): add OAuth2 integration
# Bug fix
fix: resolve memory leak in deployment process
# Breaking change
feat: update to Vercel CLI v30
BREAKING CHANGE: Minimum Node.js version is now 18This repository uses commitlint to ensure all commit messages follow our convention. The commit-msg hook will automatically validate your commit messages.
If your commit is rejected, please review the message format and ensure it follows the convention above.
- Ensure your PR title follows the Conventional Commits format
- Update the README.md with details of changes if needed
- Ensure all tests pass and linting is clean
- Request review from maintainers
- We use ESLint with the Antfu config for code formatting and linting
- Run
npm run lintto check your code - Run
npm run lint:fixto automatically fix issues
- Write tests for new features
- Ensure existing tests pass
- Run
npm testbefore submitting PR
Feel free to open an issue for any questions about contributing!