Skip to main content
The PR feature analyzes your current branch, commits, linked tickets, and code diffs to automatically generate well-structured pull request descriptions that follow your team’s conventions.

Quick Start

Generate a PR description for your current branch:
Create a PR directly on GitHub:

How It Works

1

Analyze Branch

DevDaily examines your current branch, comparing it to the base branch to identify all commits and changes.
2

Extract Context

Collects ticket IDs from branch names and commit messages, fetches ticket details, and analyzes code diffs.
3

Apply Template

If a PR template exists (.github/PULL_REQUEST_TEMPLATE.md), it structures the content accordingly.
4

AI Generation

Uses GitHub Copilot CLI to generate a comprehensive description following your team’s guidelines.
5

Interactive Actions

Choose to copy to clipboard, create PR on GitHub, or preview in browser.

Command Options

Basic Options

Context Control

Interactive Mode

Interactive mode fetches repository metadata and allows you to select:
  • Labels to apply to the PR
  • Reviewers to request
  • Assignees for the PR

Clipboard and Journal

PR Templates

DevDaily automatically detects and uses PR templates from your repository:

Supported Template Locations

  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/pull_request_template.md
  • PULL_REQUEST_TEMPLATE.md
  • docs/PULL_REQUEST_TEMPLATE.md

Template Sections

The AI recognizes common template sections and fills them appropriately:
  • Description: Summary of changes
  • Type: Feature, bugfix, refactor, etc.
  • Impact: Affected areas and potential risks
  • Testing: How changes were tested
  • Breaking Changes: Any breaking changes introduced
  • Additional Info: Context, screenshots, notes
DevDaily parses templates with headers like ## Description, ## Testing, etc., and structures the AI output to match.

Custom PR Guidelines

You can provide team-specific PR writing guidelines:

Create a PR Prompt File

Add .devdaily/pr-prompt.md to your repository:
DevDaily will include these guidelines when generating descriptions.

What Gets Analyzed

Branch Information

  • Current branch name
  • Base branch for comparison
  • Branch creation point

Commits

  • All commit messages on the branch
  • Commit hashes and authors
  • Commit timestamps

Code Changes

  • Files changed
  • Diff statistics (insertions/deletions)
  • Code diff content (configurable limit)

Tickets & Issues

  • Ticket IDs extracted from:
    • Branch name (e.g., feature/PROJ-123-login)
    • Commit messages
    • Manual --ticket flag
  • Ticket details from your PM tool:
    • Title and description
    • Status and priority
    • Type (bug, feature, task)

PR Title Generation

The AI generates PR titles following conventional commit style:
  • feat: Add user authentication
  • fix: Resolve login redirect issue
  • refactor: Simplify auth flow
  • docs: Update API documentation
DevDaily analyzes commit messages to determine PR type:
  • feature: New features (feat:, feature:)
  • fix: Bug fixes (fix:, bugfix:)
  • refactor: Code refactoring (refactor:)
  • docs: Documentation (docs:)
  • test: Tests (test:)
  • chore: Maintenance (chore:)

Interactive Actions

After generating a PR description, you can:
  1. Copy to clipboard - For manual PR creation
  2. Create PR on GitHub - Direct GitHub integration
  3. Create draft PR - Mark as work-in-progress
  4. Preview in browser - Open GitHub compare view
  5. Configure labels & reviewers - Interactive metadata selection

Example Workflows

Basic PR Creation

Draft PR with Preview

Interactive with Labels

Custom Base Branch

Quick Copy to Clipboard

Output Preview

When using --preview or --interactive, you’ll see:

GitHub Integration

Requires gh CLI authenticated with GitHub

Create PR Directly

This will:
  1. Push your branch to remote if needed
  2. Create the PR on GitHub
  3. Apply labels if selected
  4. Request reviewers if selected
  5. Assign the PR if specified
  6. Return the PR URL

Preview in Browser

Open GitHub’s compare view without creating a PR:

Configuration

Customize PR generation in .devdaily.json:

Configuration Options

If diff is too large, it’s automatically truncated to fit the AI context window.

Troubleshooting

You cannot create a PR from the base branch itself.
Ensure you have commits on your branch:
If empty, make some commits first.
Install GitHub Copilot CLI:
Ensure gh CLI is authenticated: