Commit Graph
2 Commits
Author SHA1 Message Date
Grant Birkinbine 5c3ff1dabf Validate the issue labeler's API key before sending requests (#60964)
Trim surrounding whitespace from `OPENAI_API_KEY` and reject empty values or
characters outside printable, non-space ASCII with `Invalid API key format`.
Use the validated key in the request's `Authorization` header.

GitOrigin-RevId: 61da9b4989b7cfbceb247ffbbeb6f6efd8413598
2026-11-12 01:42:53 +00:00
Grant Birkinbine 14e039906c Use the Responses API for issue label suggestions (#60897)
## What changed

Replace the issue labeler's Codex action with a Python script that calls the Responses API with tools disabled and a strict JSON schema. Preserve the label catalog while validating one issue type, an optional product, and known area labels before applying them.

Retry transient API failures and timeouts, honor `Retry-After`, and reject redirects. Pass validated labels directly to `gh issue edit`, surface label application failures, and allow trigger-label cleanup after suggestion failures.

GitOrigin-RevId: 2bfe301468808b4d15aa8b5fe8ddd98c1ed844c6
2026-11-11 23:21:57 +00:00