Skip to content

GitHub search queries with labels containing spaces fail #48

@konard

Description

@konard

🐛 Bug Description

GitHub search queries with labels containing spaces fail due to multiple layers of escaping issues when passed through command-stream.

🔴 Impact

  • Can't search for issues with multi-word labels
  • GitHub CLI queries fail with complex search terms
  • Automation of issue management is limited

📝 Problem Example

```javascript
const label = "help wanted";
// ❌ Fails due to escaping issues
await $`gh issue list --label "${label}"`;
// The spaces in the label cause parsing problems
```

🔧 Root Cause

Multiple layers of escaping between:

  1. JavaScript string escaping
  2. Shell escaping
  3. GitHub CLI parameter parsing

🔗 References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions