Overview
DevDaily uses two mechanisms to customize PR descriptions:- PR Templates: GitHub-style markdown templates with sections and checklists
- Prompt Files: Custom guidelines that instruct the AI how to write descriptions
PR Template Detection
DevDaily automatically searches for PR templates in your repository:Example Template
Template Sections
DevDaily parses templates into sections based on## headings and automatically fills them:
Matches:
Description, What Changed, What, SummaryFilled with: AI-generated summary of changes from commits and diffMatches:
Type of Change, Type, Change TypeFilled with: Detected change type with appropriate checklist item markedMatches:
Ticket, Jira Ticket, Issue, Related IssuesFilled with: Ticket ID(s) and links from branch name and commitsMatches:
Impact, Affected Areas, ScopeFilled with: Analysis of which system components are affectedMatches:
How to Test, Testing, Test PlanFilled with: Step-by-step testing instructionsMatches:
Breaking Changes, Breaking, MigrationFilled with: List of breaking changes or โNo breaking changes.โMatches:
Screenshots, Images, Visual ChangesFilled with: Placeholder text (screenshots must be added manually)Matches:
Checklist, Verification, Review ChecklistFilled with: Preserved as-is from templateCustom PR Prompt Files
Prompt files instruct the AI how to write PR descriptions, ensuring consistency with your teamโs style.Creating a Prompt File
Create.devdaily-pr-prompt.md in your repository root:
.devdaily-pr-prompt.md
Search Order
DevDaily searches for prompt files in this order:- Path specified in config (
pr.promptFile) .devdaily-pr-prompt.md(repo root).github/devdaily-pr-prompt.md.github/PR_DESCRIPTION_PROMPT.mddocs/devdaily-pr-prompt.md
Configuration
.devdaily.json
Path to custom prompt file (relative to repo root or absolute)
Include diff summary in AI prompt for richer context
Maximum diff lines to include in prompt (prevents token overflow)
PR Configuration Options
All PR-related settings in.devdaily.json:
.devdaily.json
Default base branch for PRs
Path to custom PR template (overrides auto-detection)
Automatically suggest labels based on changes
Labels to apply to all PRs
Default reviewers (GitHub usernames)
Default assignees (
@me = you, or GitHub usernames)PR title format:
conventional:feat: Add OAuth(Conventional Commits)ticket-first:PROJ-123: Add OAuthplain:Add OAuth
Include ticket ID in PR title (when detected)
How Templates Are Filled
When you rundevdaily pr, hereโs what happens:
Analyze changes
- Get commits since base branch
- Generate diff summary
- Extract ticket IDs from branch/commits
- Fetch ticket metadata (if PM tool configured)
Generate with AI
Send context + prompt to GitHub Copilot CLI:
- Commits and file changes
- Diff summary (up to maxDiffLines)
- Ticket data
- Template structure
- Custom guidelines from prompt file
Fill template
Map AI output to template sections:
- Description โ What Changed
- Type detection โ Type of Change checkboxes
- Tickets โ Ticket section with links
- Testing steps โ How to Test
Type Detection
DevDaily automatically detects PR type from:-
Branch name prefix:
feature/,feat/โ Featurefix/,bugfix/โ Bug fixhotfix/โ Hotfixdocs/โ Documentationrefactor/โ Refactoringtest/โ Testingchore/โ Maintenance
-
Conventional commit types:
feat:โ Featurefix:โ Bug fixdocs:โ Documentationrefactor:โ Refactoringtest:โ Testingchore:โ Maintenance
-
File changes:
- Only
.mdfiles โ Documentation - Only test files โ Testing
- Config files โ Configuration
- Only
Example: Complete Workflow
1. Create Files
2. Create Branch
3. Make Changes
4. Generate PR
5. Output
Title:6. Create PR
From the interactive menu:- Select โCreate PR on GitHubโ
- DevDaily creates PR with:
- Generated title and body
- Label:
enhancement(auto-detected) - Reviewer:
alice(from config) - Assignee:
@me
Generating Sample Files
DevDaily can generate starter templates:Best Practices
Start with a simple template
Donโt over-engineer. Start with:
- Description
- Testing
- Checklist
Write clear prompt guidelines
Be specific about:
- Tone (formal vs casual)
- Length (concise vs detailed)
- Required elements (tickets, testing, etc.)
- Forbidden elements (emojis, personal opinions)
Use conventional commit types
Consistent commit types (
feat:, fix:, etc.) help DevDaily:- Detect PR type accurately
- Generate better titles
- Suggest appropriate labels
Troubleshooting
Template Not Detected
-
Check file exists:
-
Verify file is readable:
-
Manually specify:
Prompt File Not Applied
-
Check file location:
-
Test with debug:
-
Verify syntax:
Sections Not Filled Correctly
-
Check section names: Must match expected patterns (case-insensitive)
-
Verify markdown format: Sections must use
##(h2) -
Check for typos:
Related Configuration
Configuration Overview
Learn about all configuration options
Project Management
Configure ticket integration for PRs
PR Command
Learn how to create PRs with DevDaily