ErrorControlSystem icon indicating copy to clipboard operation
ErrorControlSystem copied to clipboard

Create issues from client users of ErrorControlSystem

Open bezzad opened this issue 10 years ago • 1 comments

When one bug exist in ECS then any user with pull access to a repository can create an issue for that.

POST /repos/:owner/:repo/issues

Parameters

Name Type Description
title string Required. The title of the issue.
body string The contents of the issue.
assignee string Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise.
milestone number Milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise.
labels array of strings Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise.

Example


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

Response


{
  "id": 1,
  "url": "https://api.github.com/repos/Behzadkhosravifar/ErrorControlSystem/issues/49",
  "html_url": "https://github.com/Behzadkhosravifar/ErrorControlSystem/issues/49",
  "number": 49,
  "state": "open",
  "title": "Found a bug",
  "body": "I'm having a problem with this.",
  "user": {
  "login": "Behzadkhosravifar",
  "id": 10928710,
  "avatar_url": "https://avatars.githubusercontent.com/u/10928710?v=3",
  "gravatar_id": "",
  "url": "https://api.github.com/users/Behzadkhosravifar",
  "html_url": "https://github.com/Behzadkhosravifar",
  "followers_url": "https://api.github.com/users/Behzadkhosravifar/followers",
  "following_url": "https://api.github.com/users/Behzadkhosravifar/following{/other_user}",
  "gists_url": "https://api.github.com/users/Behzadkhosravifar/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/Behzadkhosravifar/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/Behzadkhosravifar/subscriptions",
  "organizations_url": "https://api.github.com/users/Behzadkhosravifar/orgs",
  "repos_url": "https://api.github.com/users/Behzadkhosravifar/repos",
  "events_url": "https://api.github.com/users/Behzadkhosravifar/events{/privacy}",
  "received_events_url": "https://api.github.com/users/Behzadkhosravifar/received_events",
  "type": "User",
  "site_admin": false,
  "name": "Behzad Khosravifar",
  "company": "Shoniz",
  "blog": "https://plus.google.com/u/0/+BehzadKhosravifar/posts",
  "location": "Iran",
  "email": "[email protected]",
  "hireable": true,
  "bio": null,
  "public_repos": 9,
  "public_gists": 0,
  "followers": 3,
  "following": 2,
  "created_at": "2015-02-09T19:18:13Z",
  "updated_at": "2015-04-29T05:42:46Z"
},
  "labels": [
    {
     "url": "https://api.github.com/repos/Behzadkhosravifar/ErrorControlSystem/labels/bug",
     "name": "bug",
     "color": "fc2929"
    }
  ],
  "assignee": {
    "login": "Behzadkhosravifar",
  "id": 10928710,
  "avatar_url": "https://avatars.githubusercontent.com/u/10928710?v=3",
  "gravatar_id": "",
  "url": "https://api.github.com/users/Behzadkhosravifar",
  "html_url": "https://github.com/Behzadkhosravifar",
  "followers_url": "https://api.github.com/users/Behzadkhosravifar/followers",
  "following_url": "https://api.github.com/users/Behzadkhosravifar/following{/other_user}",
  "gists_url": "https://api.github.com/users/Behzadkhosravifar/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/Behzadkhosravifar/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/Behzadkhosravifar/subscriptions",
  "organizations_url": "https://api.github.com/users/Behzadkhosravifar/orgs",
  "repos_url": "https://api.github.com/users/Behzadkhosravifar/repos",
  "events_url": "https://api.github.com/users/Behzadkhosravifar/events{/privacy}",
  "received_events_url": "https://api.github.com/users/Behzadkhosravifar/received_events",
  "type": "User",
  "site_admin": false
  },
  "milestone":{
  "url": "https://api.github.com/repos/Behzadkhosravifar/ErrorControlSystem/milestones/1",
  "html_url": "https://github.com/Behzadkhosravifar/ErrorControlSystem/milestones/Important",
  "labels_url": "https://api.github.com/repos/Behzadkhosravifar/ErrorControlSystem/milestones/1/labels",
  "id": 1044075,
  "number": 1,
  "title": "Important",
  "description": null,
  "creator": {
    "login": "Behzadkhosravifar",
    "id": 10928710,
    "avatar_url": "https://avatars.githubusercontent.com/u/10928710?v=3",
    "gravatar_id": "",
    "url": "https://api.github.com/users/Behzadkhosravifar",
    "html_url": "https://github.com/Behzadkhosravifar",
    "followers_url": "https://api.github.com/users/Behzadkhosravifar/followers",
    "following_url": "https://api.github.com/users/Behzadkhosravifar/following{/other_user}",
    "gists_url": "https://api.github.com/users/Behzadkhosravifar/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/Behzadkhosravifar/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/Behzadkhosravifar/subscriptions",
    "organizations_url": "https://api.github.com/users/Behzadkhosravifar/orgs",
    "repos_url": "https://api.github.com/users/Behzadkhosravifar/repos",
    "events_url": "https://api.github.com/users/Behzadkhosravifar/events{/privacy}",
    "received_events_url": "https://api.github.com/users/Behzadkhosravifar/received_events",
    "type": "User",
    "site_admin": false
  },
  "open_issues": 3,
  "closed_issues": 6,
  "state": "open",
  "created_at": "2015-03-30T05:30:36Z",
  "updated_at": "2015-04-17T20:17:50Z",
  "due_on": null,
  "closed_at": null
},
  "comments": 0,
  "pull_request": {
    "url": "https://api.github.com/repos/behzadkhosravifar/ErrorControlSystem/pulls/49",
    "html_url": "https://github.com/behzadkhosravifar/ErrorControlSystem/pull/49",
    "diff_url": "https://github.com/behzadkhosravifar/ErrorControlSystem/pull/49.diff",
    "patch_url": "https://github.com/behzadkhosravifar/ErrorControlSystem/pull/49.patch"
  }
}

bezzad avatar Apr 29 '15 06:04 bezzad