name: Bug Report
description: Report a bug or unexpected behavior
title: "[BUG] "
labels: ["bug"]
assignees:
  - ${{github.actor}}
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to fill out this bug report!
        
  - type: textarea
    id: description
    attributes:
      label: Bug Description
      description: A clear and concise description of what the bug is
      placeholder: When I run the script, it crashes when processing large datasets...
    validations:
      required: true
      
  - type: textarea
    id: reproduction
    attributes:
      label: Steps to Reproduce
      description: Steps to reproduce the behavior
      placeholder: |
        1. Go to notebook '...'
        2. Run cell #...
        3. See error
    validations:
      required: true
      
  - type: textarea
    id: expected
    attributes:
      label: Expected Behavior
      description: What did you expect to happen?
      placeholder: The analysis should complete successfully and generate the visualization
    validations:
      required: true
      
  - type: textarea
    id: actual
    attributes:
      label: Actual Behavior
      description: What actually happened?
      placeholder: The script crashes with a memory error after processing 1000 samples
    validations:
      required: true
      
  - type: textarea
    id: logs
    attributes:
      label: Error Logs
      description: Paste any relevant logs or error messages
      render: shell
      placeholder: |
        Traceback (most recent call last):
          File "script.py", line 42, in <module>
            main()
          File "script.py", line 28, in main
            process_data(data)
        MemoryError: ...
    validations:
      required: false
      
  - type: dropdown
    id: component
    attributes:
      label: Component
      description: Which part of the thesis project is affected?
      options:
        - LaTeX Document
        - Python Source Code
        - Jupyter Notebook
        - Data Processing
        - ML Model
        - Visualization
        - Build/Environment
    validations:
      required: true
      
  - type: input
    id: version
    attributes:
      label: Version/Commit
      description: Which version or commit hash are you using?
      placeholder: v0.2.3 or 8d5b9a7
    validations:
      required: true
      
  - type: textarea
    id: environment
    attributes:
      label: Environment
      description: Information about your environment
      placeholder: |
        - OS: [e.g. Ubuntu 22.04]
        - Python: [e.g. 3.9.5]
        - Relevant packages and versions:
          - numpy: 1.22.3
          - scikit-learn: 1.0.2
          - tensorflow: 2.9.1
    validations:
      required: false
      
  - type: textarea
    id: additional
    attributes:
      label: Additional Context
      description: Any other context or screenshots about the problem
      placeholder: Add any other context about the problem here...
    validations:
      required: false
