Skip to main content

Description

Generates comprehensive pull request descriptions by analyzing commits, changed files, and linked tickets on your current branch. Supports PR templates and custom team guidelines. Aliases: p, pull

Usage

devdaily pr [options]
# Or use aliases
devdaily p [options]

Options

-b, --base <branch>
string
Base branch to compare against. If not specified, auto-detects from repository or uses config default.
-c, --create
boolean
Create the PR on GitHub after generation
-d, --draft
boolean
Create as a draft PR
-p, --preview
boolean
Show preview before creating the PR
-t, --ticket <id>
string
Include specific ticket/issue for context
--no-tickets
boolean
Skip fetching ticket/issue context
--no-copy
boolean
Do not copy the PR description to clipboard
--no-template
boolean
Ignore PR template, use default format
--no-diff
boolean
Skip including diff context in the AI prompt
--no-prompt-file
boolean
Ignore custom PR prompt file (.devdaily-pr-prompt.md)
-i, --interactive
boolean
Interactive mode for selecting labels, reviewers, and assignees
--no-journal
boolean
Skip auto-saving a snapshot to the journal
--debug
boolean
Show debug information including prompts and raw AI input

Examples

Generate PR description

devdaily pr

Generate and create PR

devdaily pr --create

Create draft PR with preview

devdaily pr --draft --preview

Interactive mode with labels and reviewers

devdaily pr --interactive

Specify base branch

devdaily pr --base develop

Include specific ticket

devdaily pr --ticket PROJ-123

Skip template, use AI-only

devdaily pr --no-template

PR Templates

DevDaily automatically detects PR templates in these locations:
  • .github/pull_request_template.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • docs/pull_request_template.md
  • PULL_REQUEST_TEMPLATE.md
The AI will fill in template sections intelligently based on your changes.

Custom PR Guidelines

Create a .devdaily-pr-prompt.md file in your repository root to customize how the AI generates PR descriptions:
# PR Description Guidelines

Our team prefers:
- Focus on the "why" not the "what"
- Include testing notes
- Reference ticket IDs
- Note breaking changes

Output

The PR description includes:
  • Auto-generated title based on commits
  • Summary of changes
  • Ticket links and context
  • Testing notes
  • Breaking changes (if any)
  • List of modified files

Interactive Mode

When using --interactive, you can select:
  • Labels - Choose from repository labels
  • Reviewers - Select team members to review
  • Assignees - Assign the PR to specific people

Configuration

Relevant config settings:
  • pr.defaultBase - Default base branch
  • pr.includeDiff - Include code diff in AI context
  • pr.maxDiffLines - Maximum diff lines to send (default: 200)
  • git.defaultBranch - Fallback base branch

Requirements

  • Must be run inside a git repository
  • Must be on a feature branch (not the base branch)
  • Requires GitHub Copilot CLI
  • Optional: gh CLI for creating PRs on GitHub