GitHub: Is there a way to programmatically file an issue?

Is there an API for filing a GitHub issue?

When I have an unexpected issue I would like to offer the user an option to automatically report an issue.

  • How to use terminal commands with Github?
  • Subrepo workflow issue in switch from Hg to Git
  • Cherry pick using TortoiseGit
  • Git: Generate patch of all commits made on “feature” branch without referring to commit IDs
  • How to copy a repository completely separate from the original, not a fork?
  • Trying to install git on OSX: cannont exec 'git-credential-osxkeychain': Permission denied`
  • Git: Is checking out a branch while visual studio open bad practice?
  • Heroku deploy “Precompiling assets failed” on git push
  • How do I use git-svn to merge changes from trunk to a branch in svn?
  • Brew unlinked kegs in your Cellar
  • Including submodules in git checkout to GIT_WORK_TREE in hook
  • Keep a commit locally to clone in Git
  • One Solution collect form web for “GitHub: Is there a way to programmatically file an issue?”

    Here is the GitHub API page which details how to programatically create an issue:

    https://developer.github.com/v3/issues/#create-an-issue

    Example, from the docs:

    Send a POST request to /repos/:owner/:repo/issues with JSON like the following:

    {
      "title": "Found a bug",
      "body": "I'm having a problem with this.",
      "assignee": "octocat",
      "milestone": 1,
      "labels": [
        "Label1",
        "Label2"
      ]
    }
    

    You can also edit issues programatically by sending a PATCH request to /repos/:owner/:repo/issues/:number

    Source: https://developer.github.com/v3/issues/#edit-an-issue

    Git Baby is a git and github fan, let's start git clone.