Skip to content

fix(templates): enhance PR template with GitHub CLI integration and system info partials#530

Merged
tusharmath merged 3 commits into
mainfrom
system-prompt-partial
Mar 17, 2025
Merged

fix(templates): enhance PR template with GitHub CLI integration and system info partials#530
tusharmath merged 3 commits into
mainfrom
system-prompt-partial

Conversation

@tusharmath

@tusharmath tusharmath commented Mar 17, 2025

Copy link
Copy Markdown
Collaborator

Overview

This PR introduces a reusable system information template component and adds GitHub CLI integration capabilities to the pull request creation workflow.

Purpose

These changes improve maintainability by centralizing system information display logic across templates and enhance functionality by enabling automated PR submission directly from the Forge CLI.

Implementation

  1. Extracted repetitive system information sections into a reusable partial-system-info.hbs template
  2. Updated all system prompt templates to use this new partial
  3. Enhanced the GitHub PR template with step-by-step instructions for PR submission using GitHub CLI
  4. Updated test workflow to use the new partial template
  5. Adjusted relevant configuration in forge.default.yaml

Testing

The changes were tested by verifying template rendering in the updated test workflow and by confirming GitHub CLI integration functions correctly when creating and submitting PRs.

Related Issues

No specific issues are directly linked to these changes.

Changelog

Features

  • New partial-system-info.hbs template for displaying system information
  • GitHub CLI integration for PR submission workflow
  • Enhanced PR template with structured preparation and submission steps

Refactoring

  • Refactored system prompt templates to use the new partial
  • Updated test workflow file to use the partial template

Documentation

  • Improved template consistency across different system prompts
  • Added current date information in system info display

Suggested Reviewers

  • Template system maintainers who are familiar with the Handlebars templates
  • UI/UX team members who can evaluate the improved PR creation workflow
  • Anyone involved with GitHub integrations who can validate the CLI implementation

Create a new partial template for system information and update all system prompts
to use this shared component. This improves maintainability by centralizing the
system info format in one file and adds current_date to all system prompts.
- Rename git-commit-agent to git-commit-worker
- Rename github-pull-request-create to github-pull-request-create-worker
- Update both agents to use advanced model instead of standard model
- Add GitHub CLI (gh) submission capability to PR template\n- Restructure template with clear section tags\n- Include gh installation and authentication steps\n- Improve organization of PR preparation and submission workflow
@github-actions github-actions Bot added the type: chore Routine tasks like conversions, reorganization, and maintenance work. label Mar 17, 2025
@tusharmath tusharmath changed the title Enhance PR template with GitHub CLI integration and system info refactoring feat(templates): enhance PR template with GitHub CLI integration and system info partials Mar 17, 2025
@tusharmath tusharmath added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. and removed type: chore Routine tasks like conversions, reorganization, and maintenance work. labels Mar 17, 2025
@tusharmath tusharmath changed the title feat(templates): enhance PR template with GitHub CLI integration and system info partials fix(templates): enhance PR template with GitHub CLI integration and system info partials Mar 17, 2025
@tusharmath tusharmath added type: fix and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Mar 17, 2025
@tusharmath
tusharmath merged commit c2f468b into main Mar 17, 2025
@amitksingh1490
amitksingh1490 deleted the system-prompt-partial branch November 14, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant