Running Days Docs
GitHub

Pull Requests

This guide covers how to create and submit pull requests to Running Days.

Before You Start

  1. Check existing issues - Is there an issue for this change?
  2. Discuss first - For large changes, open an issue to discuss approach
  3. Update your fork - Sync with upstream main branch

Creating a Branch

bash
# Sync your fork
git fetch upstream
git checkout main
git merge upstream/main

# Create feature branch
git checkout -b feature/your-feature-name

Branch naming conventions:

  • feature/ - New features
  • fix/ - Bug fixes
  • docs/ - Documentation only
  • refactor/ - Code refactoring
  • test/ - Adding tests

Making Changes

Commit Guidelines

Write clear, atomic commits:

bash
# Good
git commit -m "feat(api): add rate limiting to auth endpoints"

# Bad
git commit -m "updates"

Format: type(scope): description

Types:

  • feat - New feature
  • fix - Bug fix
  • docs - Documentation
  • refactor - Code refactoring
  • test - Adding tests
  • chore - Maintenance

Before Committing

bash
# Run type check
pnpm check

# Run tests
pnpm test

# Run linting (if configured)
pnpm lint

Submitting the PR

Push Your Branch

bash
git push -u origin feature/your-feature-name

Create PR on GitHub

  1. Go to the repository on GitHub
  2. Click “Compare & pull request”
  3. Fill out the PR template

PR Template

markdown
## Summary
Brief description of changes

## Changes
- Added X
- Fixed Y
- Updated Z

## Test Plan
- [ ] Unit tests added/updated
- [ ] E2E tests pass
- [ ] Manual testing done

## Screenshots
(if UI changes)

PR Review Process

What Reviewers Look For

AspectCriteria
FunctionalityDoes it work as intended?
TestsAre there adequate tests?
Code QualityIs it clean and maintainable?
SecurityAny security concerns?
PerformanceAny performance impacts?
DocumentationAre docs updated if needed?

Responding to Feedback

  • Address all comments
  • Push new commits (don’t force push during review)
  • Re-request review when ready

After Approval

  1. Squash and merge (preferred)
  2. Delete your branch
  3. Close related issues

Common Issues

PR Conflicts

bash
git fetch upstream
git rebase upstream/main
# Resolve conflicts
git push --force-with-lease

CI Failures

  • Check the CI logs
  • Fix issues locally
  • Push new commits

Large PRs

Break into smaller, reviewable chunks:

  1. Refactoring PR first
  2. Feature PR on top
  3. Test PR separately if needed

Getting Help

  • Ask questions in PR comments
  • Tag maintainers if stuck
  • Join GitHub Discussions for broader questions