name: Bug Report
description: Report a bug in the Helius SDK
title: "[Bug]: "
labels: ["bug", "triage"]
assignees: []
body:
  - type: markdown
    attributes:
      value: |
        Thank you for helping us squash bugs! Please fill out this form as completely as possible.

  - type: input
    id: sdk-version
    attributes:
      label: SDK Version
      description: What version of the Helius SDK are you using? (Run `pnpm list helius-sdk` or check your package.json)
      placeholder: e.g., 2.0.0
    validations:
      required: true

  - type: input
    id: environment
    attributes:
      label: Environment
      description: Node version, OS, Solana cluster (e.g., mainnet-beta), and relevant dependencies (e.g., @solana/kit version)
      placeholder: e.g., Node 20, Windows, mainnet-beta, @solana/kit ^2.3.0
    validations:
      required: true

  - type: textarea
    id: description
    attributes:
      label: Describe the Bug
      description: A clear and concise description of what the bug is.
      placeholder: When I call createHelius(), it throws the following error...
    validations:
      required: true

  - type: textarea
    id: reproduction
    attributes:
      label: Steps to Reproduce
      description: Provide a minimal code example or steps to replicate the issue.
      placeholder: |
        1. Install SDK: pnpm add helius-sdk
        2. Code: import { createHelius } from 'helius-sdk';
        3. Run: ...
        4. See error: ...
      render: typescript
    validations:
      required: true

  - type: textarea
    id: expected-behavior
    attributes:
      label: Expected Behavior
      description: What did you expect to happen instead?
      placeholder: It should return a valid Helius instance without any errors.
    validations:
      required: true

  - type: textarea
    id: logs
    attributes:
      label: Logs/Screenshots
      description: Include error messages, stack traces, or screenshots if applicable.
      render: shell
    validations:
      required: false
      
  - type: checkboxes
    id: checks
    attributes:
      label: Additional Checks
      options:
        - label: I have searched for existing issues and this is not a duplicate.
          required: true
        - label: I have tested with the latest version.
          required: true
