## TL;DR

GitHub rejects issue creation when the title is empty. Validate the title client-side before sending, and fall back to a generated title (e.g. from the body) rather than sending blank.

## Error

```text
Validation Failed: title cannot be blank (create issue)
```

## Steps

1. Check the title value being sent Expected: you confirm it is empty.
2. Require a non-empty title before calling the API Expected: blank titles never go out.
3. Fall back to deriving a title from the body or a default Expected: automation keeps working.
4. Re-run the issue creation Expected: it succeeds.

## When to use

- Validation Failed on GitHub issue create
- The title is empty

## When not to use

- A different field is invalid (then the error names it)
- The title looks fine (then check for whitespace-only strings)

## Tool compatibility

- GitHub Issues API
- Issue automation

## Variant phrasings

### github validation failed empty title

The title cannot be blank. Validate before sending.

### create issue 422 title

Same: GitHub requires a non-empty title.

## Why it happens

Automation builds titles from data that is sometimes missing, producing empty strings. GitHub validates strictly.

## Edge cases

- Whitespace-only titles also fail; trim first
- Body can be empty, title cannot

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_i6mM5tk5ZehJtzbaulEC-g
