A repository intended to help test coverage features on Qlty quickly.
# Create a single PR with test coverage
ruby scripts/create_pull_requests.rb 1
# Create a PR without test coverage
ruby scripts/create_pull_requests.rb --no-coverage 1
# Create multiple PRs at once (useful for merge queue testing)
ruby scripts/create_pull_requests.rb 5The scripts/create_pull_requests.rb script automates PR creation for testing purposes.
| Option | Description |
|---|---|
--no-coverage |
Create PR without spec files (no test coverage) |
-h, --help |
Show help message |
# Create 3 PRs with coverage
ruby scripts/create_pull_requests.rb 3
# Create 3 PRs without coverage
ruby scripts/create_pull_requests.rb --no-coverage 3- Creates a new branch from the current branch
- Generates a new module in
lib/testN/with calculator functionality - Optionally generates a corresponding spec file in
spec/testN/(unless--no-coverageis passed) - Commits the changes and pushes to origin
- Creates a pull request via GitHub CLI (
gh)
- Ruby installed
- GitHub CLI (
gh) installed and authenticated - Git configured with push access to the repository