vscode-pull-request-github
vscode-pull-request-github copied to clipboard
[WIP] Map issue template metadata to NewIssue.md
Plan: Map metadata from issue templates to NewIssue.md
-
[x] Understand current implementation
- [x] Review issue template parsing in
getDataFromTemplate - [x] Review
IssueTemplateinterface inutil.ts - [x] Review
NewIssueFileOptionsinterface inissueFile.ts - [x] Review
makeNewIssueFilemethod inissueFeatureRegistrar.ts - [x] Review template selection in
createIssuemethod
- [x] Review issue template parsing in
-
[x] Implement changes to support labels and assignees in templates
- [x] Extend
IssueTemplateinterface to includelabelsandassignees - [x] Update
getDataFromTemplatemethod to parselabelsandassigneesfrom YAML frontmatter - [x] Extend
NewIssueFileOptionsinterface to includelabels - [x] Update
createIssuemethod to pass template labels and assignees to options - [x] Update
makeNewIssueFilemethod to populate labels line with template labels - [x] Update
chooseTemplatereturn type to useIssueTemplate
- [x] Extend
-
[ ] 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.