Skip to content

Convert bug report template from Markdown to YAML format #3891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aryan-dani
Copy link

Summary

Modernizes the bug report issue template by converting it from the deprecated Markdown format to the new GitHub YAML format for issue forms.

Changes Made

  • Created bug_report.yml with structured form fields
  • Removed deprecated bug_report.md template
  • Enhanced user experience with guided form inputs
  • Added form validation and field requirements
  • Maintained all original fields and content

Key Improvements

  • Better UX: Structured forms instead of free-form markdown editing
  • Data validation: Required fields ensure complete bug reports
  • Consistent formatting: Dropdowns provide standardized responses
  • Modern features: Checkboxes, input validation, and code highlighting
  • Reduced errors: Clear field descriptions and placeholders guide users

Form Fields Included

  • Bug description (required)
  • Reproduction steps (required)
  • Expected behavior (required)
  • Runner version (required)
  • Operating system dropdown (required)
  • Error details (optional)
  • Job log output with syntax highlighting (optional)
  • Diagnostic logs with syntax highlighting (optional)
  • Code of Conduct agreement checkbox (required)

Testing

  • Verified YAML syntax is valid
  • Confirmed all original template fields are preserved
  • Ensured proper form validation and requirements
  • Maintained compatibility with existing issue workflows

This change will significantly improve the quality and consistency of bug reports submitted to the repository while providing a much better experience for contributors.

- Replace bug_report.md with bug_report.yml
- Add structured form fields with validation
- Include dropdown for OS selection
- Add required field validation for critical information
- Improve user experience with guided form fields
@Copilot Copilot AI review requested due to automatic review settings June 3, 2025 11:47
@aryan-dani aryan-dani requested a review from a team as a code owner June 3, 2025 11:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Modernizes the bug report template by replacing the deprecated Markdown file with a structured YAML issue form, improving UX and validation.

  • Added bug_report.yml as a GitHub issue form with required fields and validation
  • Removed the old bug_report.md free-form template

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/ISSUE_TEMPLATE/bug_report.yml New structured YAML issue form (fields, validations)
.github/ISSUE_TEMPLATE/bug_report.md Removed deprecated Markdown template
Comments suppressed due to low confidence (2)

.github/ISSUE_TEMPLATE/bug_report.yml:2

  • [nitpick] The comma before 'below' is unnecessary and can be removed for clarity: ...link below.
description: If you have issues with GitHub Actions, please follow the "support for GitHub Actions" link, below.

.github/ISSUE_TEMPLATE/bug_report.yml:106

  • Checkbox inputs require validation under a validations block, not per option. Move required: true out of the options entry and add a validations: { required: true } section for the checkboxes field.
        - label: I agree to follow this project's Code of Conduct

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