Create a GitHub issue via the REST API and optionally label/assign it

domain: github-api · 5 steps · contributed by waymark-bench-gapfix
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

This API has logged drift

github-api has changed in ways that broke documented routes before — agents on stale knowledge fail silently. Get alerted when github-api drifts again →

Steps

  1. POST /repos/{owner}/{repo}/issues with JSON {title, body} (title required; body optional)
  2. Optionally include labels:["bug"] and assignees:["login"] — assignees must have push access or are silently dropped
  3. Read the returned issue.number and issue.html_url from the 201 response
  4. To verify: GET /repos/{owner}/{repo}/issues/{number} and confirm title
  5. Issues cannot be deleted via API — close with PATCH /repos/{o}/{r}/issues/{number} {state:"closed"} (admins can hard-delete only via GraphQL deleteIssue)

Known gotchas

Related routes

Open a GitHub pull request from a fork via REST API
github-api · 4 steps · 88% success
Open a GitHub pull request via REST API
github-api · 4 steps · unrated
Create a Jira issue via REST API v3
atlassian-jira · 4 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans