vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

[WIP] Map issue template metadata to NewIssue.md

Open Copilot opened this issue 2 months ago • 0 comments

Plan: Map metadata from issue templates to NewIssue.md

  • [x] Understand current implementation

    • [x] Review issue template parsing in getDataFromTemplate
    • [x] Review IssueTemplate interface in util.ts
    • [x] Review NewIssueFileOptions interface in issueFile.ts
    • [x] Review makeNewIssueFile method in issueFeatureRegistrar.ts
    • [x] Review template selection in createIssue method
  • [x] Implement changes to support labels and assignees in templates

    • [x] Extend IssueTemplate interface to include labels and assignees
    • [x] Update getDataFromTemplate method to parse labels and assignees from YAML frontmatter
    • [x] Extend NewIssueFileOptions interface to include labels
    • [x] Update createIssue method to pass template labels and assignees to options
    • [x] Update makeNewIssueFile method to populate labels line with template labels
    • [x] Update chooseTemplate return type to use IssueTemplate
  • [ ] Test the changes

    • [ ] Build the extension
    • [ ] Test manually with sample templates
  • [ ] Run code review and security checks

    • [ ] Run code_review tool
    • [ ] Run codeql_checker tool
    • [ ] Address any findings
Original prompt

This section details on the original issue you should resolve

<issue_title>Map metadata from issue templates to NewIssue.md</issue_title> <issue_description>

I have issue templates with metadata, e.g.:

---
name: Bug report
about: Report a bug, help us improve
title: A clear title describing the bug from a user's perspective
labels: bug, needs triage
assignees: username
---

[...some body...]

When I create a new issue using this template, the title is brought through, but the rest of the metadata is not included.

I.e. this is the generated NewIssue.md:

A brief title describing the bug from a user's perspective

Assignees: 
Labels: 
Milestone: 
Projects:

[...some body...]

Would be great to populate the metadata fields based on the issue template!</issue_description>

Comments on the Issue (you are @copilot in this section)

  • Fixes microsoft/vscode-pull-request-github#6212

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot avatar Dec 10 '25 11:12 Copilot