GitHub API
  1. issues
GitHub API
  • meta
    • GitHub API Root
    • Get GitHub Enterprise Server meta information
    • Get Octocat
    • Get the Zen of GitHub
  • enterprise-admin
    • List global webhooks
    • Create a global webhook
    • Delete a global webhook
    • Get a global webhook
    • Update a global webhook
    • Ping a global webhook
    • List public keys
    • Delete a public key
    • Update LDAP mapping for a team
    • Sync LDAP mapping for a team
    • Update LDAP mapping for a user
    • Sync LDAP mapping for a user
    • Create an organization
    • Update an organization name
    • List pre-receive environments
    • Create a pre-receive environment
    • Delete a pre-receive environment
    • Get a pre-receive environment
    • Update a pre-receive environment
    • Start a pre-receive environment download
    • Get the download status for a pre-receive environment
    • List pre-receive hooks
    • Create a pre-receive hook
    • Delete a pre-receive hook
    • Get a pre-receive hook
    • Update a pre-receive hook
    • List personal access tokens
    • Delete a personal access token
    • Create a user
    • Delete a user
    • Update the username for a user
    • Delete an impersonation OAuth token
    • Create an impersonation OAuth token
    • Get license information
    • Get statistics
    • List self-hosted runner groups for an enterprise
    • Create a self-hosted runner group for an enterprise
    • Delete a self-hosted runner group from an enterprise
    • Get a self-hosted runner group for an enterprise
    • Update a self-hosted runner group for an enterprise
    • List organization access to a self-hosted runner group in an enterprise
    • Set organization access for a self-hosted runner group in an enterprise
    • Remove organization access to a self-hosted runner group in an enterprise
    • Add organization access to a self-hosted runner group in an enterprise
    • List self-hosted runners in a group for an enterprise
    • Set self-hosted runners in a group for an enterprise
    • Remove a self-hosted runner from a group for an enterprise
    • Add a self-hosted runner to a group for an enterprise
    • List self-hosted runners for an enterprise
    • List runner applications for an enterprise
    • Create a registration token for an enterprise
    • Create a remove token for an enterprise
    • Delete a self-hosted runner from an enterprise
    • Get a self-hosted runner for an enterprise
    • List pre-receive hooks for an organization
    • Remove pre-receive hook enforcement for an organization
    • Get a pre-receive hook for an organization
    • Update pre-receive hook enforcement for an organization
    • List pre-receive hooks for a repository
    • Remove pre-receive hook enforcement for a repository
    • Get a pre-receive hook for a repository
    • Update pre-receive hook enforcement for a repository
    • Get the configuration status
    • Start a configuration process
    • Get the maintenance status
    • Enable or disable maintenance mode
    • Get settings
    • Set settings
    • Remove an authorized SSH key
    • Get all authorized SSH keys
    • Add an authorized SSH key
    • Create a GitHub license
    • Upgrade a license
    • Demote a site administrator
    • Promote a user to be a site administrator
    • Unsuspend a user
    • Suspend a user
  • apps
    • Get the authenticated app
    • Create a GitHub App from a manifest
    • List installations for the authenticated app
    • Delete an installation for the authenticated app
    • Get an installation for the authenticated app
    • Create an installation access token for an app
    • Unsuspend an app installation
    • Suspend an app installation
    • Delete an app authorization
    • Revoke a grant for an application
    • Delete an app token
    • Reset a token
    • Check a token
    • Revoke an authorization for an application
    • Check an authorization
    • Reset an authorization
    • Get an app
    • List repositories accessible to the app installation
    • Revoke an installation access token
    • Get an organization installation for the authenticated app
    • Create a content attachment
    • Get a repository installation for the authenticated app
    • List app installations accessible to the user access token
    • List repositories accessible to the user access token
    • Remove a repository from an app installation
    • Add a repository to an app installation
    • Get a user installation for the authenticated app
  • oauth-authorizations
    • List your grants
    • Delete a grant
    • Get a single grant
    • List your authorizations
    • Create a new authorization
    • Get-or-create an authorization for a specific app
    • Get-or-create an authorization for a specific app and fingerprint
    • Delete an authorization
    • Get a single authorization
    • Update an existing authorization
  • codes-of-conduct
    • Get all codes of conduct
    • Get a code of conduct
  • emojis
    • Get emojis
  • activity
    • List public events
    • Get feeds
    • List public events for a network of repositories
    • List notifications for the authenticated user
    • Mark notifications as read
    • Get a thread
    • Mark a thread as read
    • Delete a thread subscription
    • Get a thread subscription for the authenticated user
    • Set a thread subscription
    • List public organization events
    • List repository events
    • List repository notifications for the authenticated user
    • Mark repository notifications as read
    • List stargazers
    • List watchers
    • Delete a repository subscription
    • Get a repository subscription
    • Set a repository subscription
    • List repositories starred by the authenticated user
    • Unstar a repository for the authenticated user
    • Check if a repository is starred by the authenticated user
    • Star a repository for the authenticated user
    • List repositories watched by the authenticated user
    • List events for the authenticated user
    • List organization events for the authenticated user
    • List public events for a user
    • List events received by the authenticated user
    • List public events received by a user
    • List repositories starred by a user
    • List repositories watched by a user
  • gists
    • List gists for the authenticated user
    • Create a gist
    • List public gists
    • List starred gists
    • Delete a gist
    • Get a gist
    • Update a gist
    • List gist comments
    • Create a gist comment
    • Delete a gist comment
    • Get a gist comment
    • Update a gist comment
    • List gist commits
    • List gist forks
    • Fork a gist
    • Unstar a gist
    • Check if a gist is starred
    • Star a gist
    • Get a gist revision
    • List gists for a user
  • gitignore
    • Get all gitignore templates
    • Get a gitignore template
  • issues
    • List issues assigned to the authenticated user
      GET
    • List organization issues assigned to the authenticated user
      GET
    • List assignees
      GET
    • Check if a user can be assigned
      GET
    • List repository issues
      GET
    • Create an issue
      POST
    • List issue comments for a repository
      GET
    • Delete an issue comment
      DELETE
    • Get an issue comment
      GET
    • Update an issue comment
      PATCH
    • List issue events for a repository
      GET
    • Get an issue event
      GET
    • Get an issue
      GET
    • Update an issue
      PATCH
    • Remove assignees from an issue
      DELETE
    • Add assignees to an issue
      POST
    • List issue comments
      GET
    • Create an issue comment
      POST
    • List issue events
      GET
    • Remove all labels from an issue
      DELETE
    • List labels for an issue
      GET
    • Add labels to an issue
      POST
    • Set labels for an issue
      PUT
    • Remove a label from an issue
      DELETE
    • Unlock an issue
      DELETE
    • Lock an issue
      PUT
    • List timeline events for an issue
      GET
    • List labels for a repository
      GET
    • Create a label
      POST
    • Delete a label
      DELETE
    • Get a label
      GET
    • Update a label
      PATCH
    • List milestones
      GET
    • Create a milestone
      POST
    • Delete a milestone
      DELETE
    • Get a milestone
      GET
    • Update a milestone
      PATCH
    • List labels for issues in a milestone
      GET
    • List user account issues assigned to the authenticated user
      GET
  • licenses
    • Get all commonly used licenses
    • Get a license
    • Get the license for a repository
  • markdown
    • Render a Markdown document
    • Render a Markdown document in raw mode
  • orgs
    • List organizations
    • Get an organization
    • Update an organization
    • List organization webhooks
    • Create an organization webhook
    • Delete an organization webhook
    • Get an organization webhook
    • Update an organization webhook
    • Ping an organization webhook
    • List app installations for an organization
    • List organization members
    • Remove an organization member
    • Check organization membership for a user
    • Remove organization membership for a user
    • Get organization membership for a user
    • Set organization membership for a user
    • List outside collaborators for an organization
    • Remove outside collaborator from an organization
    • Convert an organization member to outside collaborator
    • List public organization members
    • Remove public organization membership for the authenticated user
    • Check public organization membership for a user
    • Set public organization membership for the authenticated user
    • List organization memberships for the authenticated user
    • Get an organization membership for the authenticated user
    • Update an organization membership for the authenticated user
    • List organizations for the authenticated user
    • List organizations for a user
  • actions
    • List self-hosted runner groups for an organization
    • Create a self-hosted runner group for an organization
    • Delete a self-hosted runner group from an organization
    • Get a self-hosted runner group for an organization
    • Update a self-hosted runner group for an organization
    • List repository access to a self-hosted runner group in an organization
    • Set repository access for a self-hosted runner group in an organization
    • Remove repository access to a self-hosted runner group in an organization
    • Add repository access to a self-hosted runner group in an organization
    • List self-hosted runners in a group for an organization
    • Set self-hosted runners in a group for an organization
    • Remove a self-hosted runner from a group for an organization
    • Add a self-hosted runner to a group for an organization
    • List self-hosted runners for an organization
    • List runner applications for an organization
    • Create a registration token for an organization
    • Create a remove token for an organization
    • Delete a self-hosted runner from an organization
    • Get a self-hosted runner for an organization
    • List organization secrets
    • Get an organization public key
    • Delete an organization secret
    • Get an organization secret
    • Create or update an organization secret
    • List selected repositories for an organization secret
    • Set selected repositories for an organization secret
    • Remove selected repository from an organization secret
    • Add selected repository to an organization secret
    • List artifacts for a repository
    • Delete an artifact
    • Get an artifact
    • Download an artifact
    • Get a job for a workflow run
    • Download job logs for a workflow run
    • List self-hosted runners for a repository
    • List runner applications for a repository
    • Create a registration token for a repository
    • Create a remove token for a repository
    • Delete a self-hosted runner from a repository
    • Get a self-hosted runner for a repository
    • List workflow runs for a repository
    • Delete a workflow run
    • Get a workflow run
    • List workflow run artifacts
    • Cancel a workflow run
    • List jobs for a workflow run
    • Delete workflow run logs
    • Download workflow run logs
    • Re-run a workflow
    • List repository secrets
    • Get a repository public key
    • Delete a repository secret
    • Get a repository secret
    • Create or update a repository secret
    • List repository workflows
    • Get a workflow
    • Create a workflow dispatch event
    • List workflow runs
  • projects
    • List organization projects
    • Create an organization project
    • Delete a project card
    • Get a project card
    • Update an existing project card
    • Move a project card
    • Delete a project column
    • Get a project column
    • Update an existing project column
    • List project cards
    • Create a project card
    • Move a project column
    • Delete a project
    • Get a project
    • Update a project
    • List project collaborators
    • Remove user as a collaborator
    • Add project collaborator
    • Get project permission for a user
    • List project columns
    • Create a project column
    • List repository projects
    • Create a repository project
    • Create a user project
    • List user projects
  • repos
    • List organization repositories
    • Create an organization repository
    • Delete a repository
    • Get a repository
    • Update a repository
    • List branches
    • Get a branch
    • Delete branch protection
    • Get branch protection
    • Update branch protection
    • Delete admin branch protection
    • Get admin branch protection
    • Set admin branch protection
    • Delete pull request review protection
    • Get pull request review protection
    • Update pull request review protection
    • Delete commit signature protection
    • Get commit signature protection
    • Create commit signature protection
    • Remove status check protection
    • Get status checks protection
    • Update status check protection
    • Remove status check contexts
    • Get all status check contexts
    • Add status check contexts
    • Set status check contexts
    • Delete access restrictions
    • Get access restrictions
    • Remove app access restrictions
    • Get apps with access to the protected branch
    • Add app access restrictions
    • Set app access restrictions
    • Remove team access restrictions
    • Get teams with access to the protected branch
    • Add team access restrictions
    • Set team access restrictions
    • Remove user access restrictions
    • Get users with access to the protected branch
    • Add user access restrictions
    • Set user access restrictions
    • List repository collaborators
    • Remove a repository collaborator
    • Check if a user is a repository collaborator
    • Add a repository collaborator
    • Get repository permissions for a user
    • List commit comments for a repository
    • Delete a commit comment
    • Get a commit comment
    • Update a commit comment
    • List commits
    • List branches for HEAD commit
    • List commit comments
    • Create a commit comment
    • List pull requests associated with a commit
    • Get a commit
    • Get the combined status for a specific reference
    • List commit statuses for a reference
    • Compare two commits
    • Delete a file
    • Get repository content
    • Create or update file contents
    • List repository contributors
    • List deployments
    • Create a deployment
    • Delete a deployment
    • Get a deployment
    • List deployment statuses
    • Create a deployment status
    • Get a deployment status
    • Create a repository dispatch event
    • List forks
    • Create a fork
    • List repository webhooks
    • Create a repository webhook
    • Delete a repository webhook
    • Get a repository webhook
    • Update a repository webhook
    • Ping a repository webhook
    • Test the push repository webhook
    • List repository invitations
    • Delete a repository invitation
    • Update a repository invitation
    • List deploy keys
    • Create a deploy key
    • Delete a deploy key
    • Get a deploy key
    • List repository languages
    • Merge a branch
    • Delete a GitHub Enterprise Server Pages site
    • Get a GitHub Enterprise Server Pages site
    • Create a GitHub Enterprise Server Pages site
    • Update information about a GitHub Enterprise Server Pages site
    • List GitHub Enterprise Server Pages builds
    • Request a GitHub Enterprise Server Pages build
    • Get latest Pages build
    • Get GitHub Enterprise Server Pages build
    • Get a repository README
    • Get a repository README for a directory
    • List releases
    • Create a release
    • Delete a release asset
    • Get a release asset
    • Update a release asset
    • Get the latest release
    • Get a release by tag name
    • Delete a release
    • Get a release
    • Update a release
    • List release assets
    • Upload a release asset
    • Get the weekly commit activity
    • Get the last year of commit activity
    • Get all contributor commit activity
    • Get the weekly commit count
    • Get the hourly commit count for each day
    • Create a commit status
    • List repository tags
    • Download a repository archive (tar)
    • List repository teams
    • Get all repository topics
    • Replace all repository topics
    • Transfer a repository
    • Download a repository archive (zip)
    • Create a repository using a template
    • List public repositories
    • List repositories for the authenticated user
    • Create a repository for the authenticated user
    • List repository invitations for the authenticated user
    • Decline a repository invitation
    • Accept a repository invitation
    • List repositories for a user
  • teams
    • List teams
    • Create a team
    • Delete a team
    • Get a team by name
    • Update a team
    • List discussions
    • Create a discussion
    • Delete a discussion
    • Get a discussion
    • Update a discussion
    • List discussion comments
    • Create a discussion comment
    • Delete a discussion comment
    • Get a discussion comment
    • Update a discussion comment
    • List team members
    • Remove team membership for a user
    • Get team membership for a user
    • Add or update team membership for a user
    • List team projects
    • Remove a project from a team
    • Check team permissions for a project
    • Add or update team project permissions
    • List team repositories
    • Remove a repository from a team
    • Check team permissions for a repository
    • Add or update team repository permissions
    • List child teams
    • Delete a team (Legacy)
    • Get a team (Legacy)
    • Update a team (Legacy)
    • List discussions (Legacy)
    • Create a discussion (Legacy)
    • Delete a discussion (Legacy)
    • Get a discussion (Legacy)
    • Update a discussion (Legacy)
    • List discussion comments (Legacy)
    • Create a discussion comment (Legacy)
    • Delete a discussion comment (Legacy)
    • Get a discussion comment (Legacy)
    • Update a discussion comment (Legacy)
    • List team members (Legacy)
    • Remove team member (Legacy)
    • Get team member (Legacy)
    • Add team member (Legacy)
    • Remove team membership for a user (Legacy)
    • Get team membership for a user (Legacy)
    • Add or update team membership for a user (Legacy)
    • List team projects (Legacy)
    • Remove a project from a team (Legacy)
    • Check team permissions for a project (Legacy)
    • Add or update team project permissions (Legacy)
    • List team repositories (Legacy)
    • Remove a repository from a team (Legacy)
    • Check team permissions for a repository (Legacy)
    • Add or update team repository permissions (Legacy)
    • List child teams (Legacy)
    • List teams for the authenticated user
  • reactions
    • List reactions for a team discussion comment
    • Create reaction for a team discussion comment
    • Delete team discussion comment reaction
    • List reactions for a team discussion
    • Create reaction for a team discussion
    • Delete team discussion reaction
    • Delete a reaction (Legacy)
    • List reactions for a commit comment
    • Create reaction for a commit comment
    • Delete a commit comment reaction
    • List reactions for an issue comment
    • Create reaction for an issue comment
    • Delete an issue comment reaction
    • List reactions for an issue
    • Create reaction for an issue
    • Delete an issue reaction
    • List reactions for a pull request review comment
    • Create reaction for a pull request review comment
    • Delete a pull request comment reaction
    • List reactions for a team discussion comment (Legacy)
    • Create reaction for a team discussion comment (Legacy)
    • List reactions for a team discussion (Legacy)
    • Create reaction for a team discussion (Legacy)
  • rate-limit
    • Get rate limit status for the authenticated user
  • checks
    • Create a check run
    • Get a check run
    • Update a check run
    • List check run annotations
    • Create a check suite
    • Update repository preferences for check suites
    • Get a check suite
    • List check runs in a check suite
    • Rerequest a check suite
    • List check runs for a Git reference
    • List check suites for a Git reference
  • code-scanning
    • List code scanning alerts for a repository
    • Get a code scanning alert
    • Update a code scanning alert
    • List code scanning analyses for a repository
    • Upload an analysis as SARIF data
  • git
    • Create a blob
    • Get a blob
    • Create a commit
    • Get a commit
    • List matching references
    • Get a reference
    • Create a reference
    • Delete a reference
    • Update a reference
    • Create a tag object
    • Get a tag
    • Create a tree
    • Get a tree
  • pulls
    • List pull requests
    • Create a pull request
    • List review comments in a repository
    • Delete a review comment for a pull request
    • Get a review comment for a pull request
    • Update a review comment for a pull request
    • Get a pull request
    • Update a pull request
    • List review comments on a pull request
    • Create a review comment for a pull request
    • Create a reply for a review comment
    • List commits on a pull request
    • List pull requests files
    • Check if a pull request has been merged
    • Merge a pull request
    • Remove requested reviewers from a pull request
    • List requested reviewers for a pull request
    • Request reviewers for a pull request
    • List reviews for a pull request
    • Create a review for a pull request
    • Delete a pending review for a pull request
    • Get a review for a pull request
    • Update a review for a pull request
    • List comments for a pull request review
    • Dismiss a review for a pull request
    • Submit a review for a pull request
    • Update a pull request branch
  • search
    • Search code
    • Search commits
    • Search issues and pull requests
    • Search labels
    • Search repositories
    • Search topics
    • Search users
  • users
    • Get the authenticated user
    • Update the authenticated user
    • Delete an email address for the authenticated user
    • List email addresses for the authenticated user
    • Add an email address for the authenticated user
    • List followers of the authenticated user
    • List the people the authenticated user follows
    • Unfollow a user
    • Check if a person is followed by the authenticated user
    • Follow a user
    • List GPG keys for the authenticated user
    • Create a GPG key for the authenticated user
    • Delete a GPG key for the authenticated user
    • Get a GPG key for the authenticated user
    • List public SSH keys for the authenticated user
    • Create a public SSH key for the authenticated user
    • Delete a public SSH key for the authenticated user
    • Get a public SSH key for the authenticated user
    • List public email addresses for the authenticated user
    • List users
    • Get a user
    • List followers of a user
    • List the people a user follows
    • Check if a user follows another user
    • List GPG keys for a user
    • Get contextual information for a user
    • List public keys for a user
  • billing
  • interactions
  • migrations
  1. issues

Update an issue

PATCH
/repos/{owner}/{repo}/issues/{issue_number}
issues
Issue owners and users with push access can edit an issue.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.github.com/repos///issues/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "assignees": [
        "octocat"
    ],
    "body": "I'\''m having a problem with this.",
    "labels": [
        "bug"
    ],
    "milestone": 1,
    "state": "open",
    "title": "Found a bug"
}'
响应示例响应示例
200 - 示例 1
{
  "active_lock_reason": "string",
  "assignee": {
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
    "html_url": "https://github.com/octocat",
    "id": 1,
    "login": "octocat",
    "node_id": "MDQ6VXNlcjE=",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "site_admin": true,
    "starred_at": "\"2020-07-09T00:17:55Z\"",
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "type": "User",
    "url": "https://api.github.com/users/octocat"
  },
  "assignees": [
    {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "html_url": "https://github.com/octocat",
      "id": 1,
      "login": "octocat",
      "node_id": "MDQ6VXNlcjE=",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "site_admin": true,
      "starred_at": "\"2020-07-09T00:17:55Z\"",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/octocat"
    }
  ],
  "author_association": "OWNER",
  "body": "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?",
  "body_html": "string",
  "body_text": "string",
  "closed_at": "2019-08-24T14:15:22Z",
  "closed_by": {
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
    "html_url": "https://github.com/octocat",
    "id": 1,
    "login": "octocat",
    "node_id": "MDQ6VXNlcjE=",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "site_admin": true,
    "starred_at": "\"2020-07-09T00:17:55Z\"",
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "type": "User",
    "url": "https://api.github.com/users/octocat"
  },
  "comments": 0,
  "comments_url": "http://example.com",
  "created_at": "2019-08-24T14:15:22Z",
  "events_url": "http://example.com",
  "html_url": "http://example.com",
  "id": 0,
  "labels": [
    "bug",
    "registration"
  ],
  "labels_url": "string",
  "locked": true,
  "milestone": {
    "closed_at": "2013-02-12T13:22:01Z",
    "closed_issues": 8,
    "created_at": "2011-04-10T20:09:31Z",
    "creator": {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "html_url": "https://github.com/octocat",
      "id": 1,
      "login": "octocat",
      "node_id": "MDQ6VXNlcjE=",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "site_admin": true,
      "starred_at": "\"2020-07-09T00:17:55Z\"",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/octocat"
    },
    "description": "Tracking milestone for version 1.0",
    "due_on": "2012-10-09T23:39:01Z",
    "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
    "id": 1002604,
    "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
    "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
    "number": 42,
    "open_issues": 4,
    "state": "open",
    "title": "v1.0",
    "updated_at": "2014-03-03T18:58:10Z",
    "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1"
  },
  "node_id": "string",
  "number": 42,
  "performed_via_github_app": {
    "client_id": "\"Iv1.25b5d1e65ffc4022\"",
    "client_secret": "\"1d4b2097ac622ba702d19de498f005747a8b21d3\"",
    "created_at": "2017-07-08T16:18:44-04:00",
    "description": "The description of the app.",
    "events": [
      "label",
      "deployment"
    ],
    "external_url": "https://example.com",
    "html_url": "https://github.com/apps/super-ci",
    "id": 37,
    "installations_count": 5,
    "name": "Probot Owners",
    "node_id": "MDExOkludGVncmF0aW9uMQ==",
    "owner": {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "html_url": "https://github.com/octocat",
      "id": 1,
      "login": "octocat",
      "node_id": "MDQ6VXNlcjE=",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "site_admin": true,
      "starred_at": "\"2020-07-09T00:17:55Z\"",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/octocat"
    },
    "pem": "\"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\\n-----END RSA PRIVATE KEY-----\\n\"",
    "permissions": {
      "deployments": "write",
      "issues": "read"
    },
    "slug": "probot-owners",
    "updated_at": "2017-07-08T16:18:44-04:00",
    "webhook_secret": "\"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b\""
  },
  "pull_request": {
    "diff_url": "http://example.com",
    "html_url": "http://example.com",
    "merged_at": "2019-08-24T14:15:22Z",
    "patch_url": "http://example.com",
    "url": "http://example.com"
  },
  "reactions": {
    "+1": 0,
    "-1": 0,
    "confused": 0,
    "eyes": 0,
    "heart": 0,
    "hooray": 0,
    "laugh": 0,
    "rocket": 0,
    "total_count": 0,
    "url": "http://example.com"
  },
  "repository": {
    "allow_merge_commit": true,
    "allow_rebase_merge": true,
    "allow_squash_merge": true,
    "archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
    "archived": false,
    "assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
    "blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
    "branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
    "clone_url": "https://github.com/octocat/Hello-World.git",
    "collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
    "comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
    "commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
    "compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
    "contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
    "contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
    "created_at": "2011-01-26T19:01:12Z",
    "default_branch": "master",
    "delete_branch_on_merge": false,
    "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
    "description": "This your first repo!",
    "disabled": true,
    "downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
    "events_url": "http://api.github.com/repos/octocat/Hello-World/events",
    "fork": true,
    "forks": 0,
    "forks_count": 9,
    "forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
    "full_name": "octocat/Hello-World",
    "git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
    "git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
    "git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
    "git_url": "git:github.com/octocat/Hello-World.git",
    "has_downloads": true,
    "has_issues": true,
    "has_pages": true,
    "has_projects": true,
    "has_wiki": true,
    "homepage": "https://github.com",
    "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
    "html_url": "https://github.com/octocat/Hello-World",
    "id": 42,
    "is_template": true,
    "issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
    "issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
    "issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
    "keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
    "labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
    "language": "string",
    "languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
    "license": {
      "html_url": "http://example.com",
      "key": "mit",
      "name": "MIT License",
      "node_id": "MDc6TGljZW5zZW1pdA==",
      "spdx_id": "MIT",
      "url": "https://api.github.com/licenses/mit"
    },
    "master_branch": "string",
    "merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
    "milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
    "mirror_url": "git:git.example.com/octocat/Hello-World",
    "name": "Team Environment",
    "network_count": 0,
    "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    "notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}",
    "open_issues": 0,
    "open_issues_count": 0,
    "organization": {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "html_url": "https://github.com/octocat",
      "id": 1,
      "login": "octocat",
      "node_id": "MDQ6VXNlcjE=",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "site_admin": true,
      "starred_at": "\"2020-07-09T00:17:55Z\"",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/octocat"
    },
    "owner": {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
      "html_url": "https://github.com/octocat",
      "id": 1,
      "login": "octocat",
      "node_id": "MDQ6VXNlcjE=",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "site_admin": true,
      "starred_at": "\"2020-07-09T00:17:55Z\"",
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/octocat"
    },
    "permissions": {
      "admin": true,
      "maintain": true,
      "pull": true,
      "push": true,
      "triage": true
    },
    "private": false,
    "pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
    "pushed_at": "2011-01-26T19:06:43Z",
    "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
    "size": 108,
    "ssh_url": "git@github.com:octocat/Hello-World.git",
    "stargazers_count": 80,
    "stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
    "starred_at": "\"2020-07-09T00:17:42Z\"",
    "statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
    "subscribers_count": 0,
    "subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
    "subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
    "svn_url": "https://svn.github.com/octocat/Hello-World",
    "tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
    "teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
    "temp_clone_token": "string",
    "template_repository": {
      "allow_merge_commit": true,
      "allow_rebase_merge": true,
      "allow_squash_merge": true,
      "archive_url": "string",
      "archived": true,
      "assignees_url": "string",
      "blobs_url": "string",
      "branches_url": "string",
      "clone_url": "string",
      "collaborators_url": "string",
      "comments_url": "string",
      "commits_url": "string",
      "compare_url": "string",
      "contents_url": "string",
      "contributors_url": "string",
      "created_at": "string",
      "default_branch": "string",
      "delete_branch_on_merge": true,
      "deployments_url": "string",
      "description": "string",
      "disabled": true,
      "downloads_url": "string",
      "events_url": "string",
      "fork": true,
      "forks_count": 0,
      "forks_url": "string",
      "full_name": "string",
      "git_commits_url": "string",
      "git_refs_url": "string",
      "git_tags_url": "string",
      "git_url": "string",
      "has_downloads": true,
      "has_issues": true,
      "has_pages": true,
      "has_projects": true,
      "has_wiki": true,
      "homepage": "string",
      "hooks_url": "string",
      "html_url": "string",
      "id": 0,
      "is_template": true,
      "issue_comment_url": "string",
      "issue_events_url": "string",
      "issues_url": "string",
      "keys_url": "string",
      "labels_url": "string",
      "language": "string",
      "languages_url": "string",
      "merges_url": "string",
      "milestones_url": "string",
      "mirror_url": "string",
      "name": "string",
      "network_count": 0,
      "node_id": "string",
      "notifications_url": "string",
      "open_issues_count": 0,
      "owner": {
        "avatar_url": "string",
        "events_url": "string",
        "followers_url": "string",
        "following_url": "string",
        "gists_url": "string",
        "gravatar_id": "string",
        "html_url": "string",
        "id": 0,
        "login": "string",
        "node_id": "string",
        "organizations_url": "string",
        "received_events_url": "string",
        "repos_url": "string",
        "site_admin": true,
        "starred_url": "string",
        "subscriptions_url": "string",
        "type": "string",
        "url": "string"
      },
      "permissions": {
        "admin": true,
        "pull": true,
        "push": true
      },
      "private": true,
      "pulls_url": "string",
      "pushed_at": "string",
      "releases_url": "string",
      "size": 0,
      "ssh_url": "string",
      "stargazers_count": 0,
      "stargazers_url": "string",
      "statuses_url": "string",
      "subscribers_count": 0,
      "subscribers_url": "string",
      "subscription_url": "string",
      "svn_url": "string",
      "tags_url": "string",
      "teams_url": "string",
      "temp_clone_token": "string",
      "topics": [
        "string"
      ],
      "trees_url": "string",
      "updated_at": "string",
      "url": "string",
      "visibility": "string",
      "watchers_count": 0
    },
    "topics": [
      "string"
    ],
    "trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
    "updated_at": "2011-01-26T19:14:43Z",
    "url": "https://api.github.com/repos/octocat/Hello-World",
    "visibility": "public",
    "watchers": 0,
    "watchers_count": 80
  },
  "repository_url": "http://example.com",
  "state": "open",
  "timeline_url": "http://example.com",
  "title": "Widget creation fails in Safari on OS X 10.8",
  "updated_at": "2019-08-24T14:15:22Z",
  "url": "https://api.github.com/repositories/42/issues/1",
  "user": {
    "avatar_url": "https://github.com/images/error/octocat_happy.gif",
    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    "followers_url": "https://api.github.com/users/octocat/followers",
    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    "gravatar_id": "41d064eb2195891e12d0413f63227ea7",
    "html_url": "https://github.com/octocat",
    "id": 1,
    "login": "octocat",
    "node_id": "MDQ6VXNlcjE=",
    "organizations_url": "https://api.github.com/users/octocat/orgs",
    "received_events_url": "https://api.github.com/users/octocat/received_events",
    "repos_url": "https://api.github.com/users/octocat/repos",
    "site_admin": true,
    "starred_at": "\"2020-07-09T00:17:55Z\"",
    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    "type": "User",
    "url": "https://api.github.com/users/octocat"
  }
}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
owner
string 
必需
repo
string 
必需
issue_number
integer 
必需
issue_number parameter
Body 参数application/json
assignee
string  | null 
可选
Login for the user that this issue should be assigned to. This field is deprecated.
assignees
array[string]
可选
Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.
body
string  | null 
可选
The contents of the issue.
labels
array [oneOf] 
可选
Labels to associate with this issue. Pass one or more Labels to replace the set of Labels on this Issue. Send an empty array ([]) to clear all Labels from the Issue. NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise.
string 
可选
object 
可选
milestone
可选
One of
One of
state
enum<string> 
可选
State of the issue. Either open or closed.
枚举值:
openclosed
title
可选
The title of the issue.
One of
One of
The title of the issue.
示例

返回响应

🟢200Response
application/json
Body
Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
active_lock_reason
string  | null 
可选
assignee
null 
必需
Simple User
assignees
array[object (Simple User) {19}]  | null 
可选
avatar_url
string <uri>
必需
示例值:
https://github.com/images/error/octocat_happy.gif
events_url
string 
必需
示例值:
https://api.github.com/users/octocat/events{/privacy}
followers_url
string <uri>
必需
示例值:
https://api.github.com/users/octocat/followers
following_url
string 
必需
示例值:
https://api.github.com/users/octocat/following{/other_user}
gists_url
string 
必需
示例值:
https://api.github.com/users/octocat/gists{/gist_id}
gravatar_id
string  | null 
必需
示例值:
41d064eb2195891e12d0413f63227ea7
html_url
string <uri>
必需
示例值:
https://github.com/octocat
id
integer 
必需
示例值:
1
login
string 
必需
示例值:
octocat
node_id
string 
必需
示例值:
MDQ6VXNlcjE=
organizations_url
string <uri>
必需
示例值:
https://api.github.com/users/octocat/orgs
received_events_url
string <uri>
必需
示例值:
https://api.github.com/users/octocat/received_events
repos_url
string <uri>
必需
示例值:
https://api.github.com/users/octocat/repos
site_admin
boolean 
必需
starred_at
string 
可选
示例值:
"2020-07-09T00:17:55Z"
starred_url
string 
必需
示例值:
https://api.github.com/users/octocat/starred{/owner}{/repo}
subscriptions_url
string <uri>
必需
示例值:
https://api.github.com/users/octocat/subscriptions
type
string 
必需
示例值:
User
url
string <uri>
必需
示例值:
https://api.github.com/users/octocat
author_association
enum<string> 
必需
How the author is associated with the repository.
枚举值:
COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
示例值:
OWNER
body
string  | null 
可选
Contents of the issue
示例值:
It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?
body_html
string 
可选
body_text
string 
可选
closed_at
string <date-time> | null 
必需
closed_by
null 
可选
Simple User
comments
integer 
必需
comments_url
string <uri>
必需
created_at
string <date-time>
必需
events_url
string <uri>
必需
html_url
string <uri>
必需
id
integer 
必需
labels
array [oneOf] 
必需
Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository
示例值:
["bug","registration"]
string 
可选
object 
可选
labels_url
string 
必需
locked
boolean 
必需
milestone
null  | allOf {1} 
必需
object (Milestone) 
可选
A collection of related issues and pull requests.
node_id
string 
必需
number
integer 
必需
Number uniquely identifying the issue within its repository
示例值:
42
performed_via_github_app
null  | allOf {1} 
可选
object (GitHub app) 
可选
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
pull_request
object 
可选
diff_url
string <uri> | null 
必需
html_url
string <uri> | null 
必需
merged_at
string <date-time> | null 
可选
patch_url
string <uri> | null 
必需
url
string <uri> | null 
必需
reactions
object (Reaction Rollup) 
可选
+1
integer 
必需
-1
integer 
必需
confused
integer 
必需
eyes
integer 
必需
heart
integer 
必需
hooray
integer 
必需
laugh
integer 
必需
rocket
integer 
必需
total_count
integer 
必需
url
string <uri>
必需
repository
object (Repository) 
可选
A git repository
allow_merge_commit
boolean 
可选
Whether to allow merge commits for pull requests.
默认值:
true
示例值:
true
allow_rebase_merge
boolean 
可选
Whether to allow rebase merges for pull requests.
默认值:
true
示例值:
true
allow_squash_merge
boolean 
可选
Whether to allow squash merges for pull requests.
默认值:
true
示例值:
true
archive_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
archived
boolean 
必需
Whether the repository is archived.
默认值:
false
assignees_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/assignees{/user}
blobs_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
branches_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/branches{/branch}
clone_url
string 
必需
示例值:
https://github.com/octocat/Hello-World.git
collaborators_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
comments_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/comments{/number}
commits_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/commits{/sha}
compare_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
contents_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/contents/{+path}
contributors_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/contributors
created_at
string <date-time> | null 
必需
示例值:
2011-01-26T19:01:12Z
default_branch
string 
必需
The default branch of the repository.
示例值:
master
delete_branch_on_merge
boolean 
可选
Whether to delete head branches when pull requests are merged
默认值:
false
示例值:
false
deployments_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/deployments
description
string  | null 
必需
示例值:
This your first repo!
disabled
boolean 
必需
Returns whether or not this repository disabled.
downloads_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/downloads
events_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/events
fork
boolean 
必需
forks
integer 
必需
forks_count
integer 
必需
示例值:
9
forks_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/forks
full_name
string 
必需
示例值:
octocat/Hello-World
git_commits_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
git_refs_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
git_tags_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
git_url
string 
必需
示例值:
git:github.com/octocat/Hello-World.git
has_downloads
boolean 
必需
Whether downloads are enabled.
默认值:
true
示例值:
true
has_issues
boolean 
必需
Whether issues are enabled.
默认值:
true
示例值:
true
has_pages
boolean 
必需
has_projects
boolean 
必需
Whether projects are enabled.
默认值:
true
示例值:
true
has_wiki
boolean 
必需
Whether the wiki is enabled.
默认值:
true
示例值:
true
homepage
string <uri> | null 
必需
示例值:
https://github.com
hooks_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/hooks
html_url
string <uri>
必需
示例值:
https://github.com/octocat/Hello-World
id
integer 
必需
Unique identifier of the repository
示例值:
42
is_template
boolean 
可选
Whether this repository acts as a template that can be used to generate new repositories.
默认值:
false
示例值:
true
issue_comment_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
issue_events_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/issues/events{/number}
issues_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/issues{/number}
keys_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/keys{/key_id}
labels_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/labels{/name}
language
string  | null 
必需
languages_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/languages
license
null  | allOf {1} 
必需
master_branch
string 
可选
merges_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/merges
milestones_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/milestones{/number}
mirror_url
string <uri> | null 
必需
示例值:
git:git.example.com/octocat/Hello-World
name
string 
必需
The name of the repository.
示例值:
Team Environment
network_count
integer 
可选
node_id
string 
必需
示例值:
MDEwOlJlcG9zaXRvcnkxMjk2MjY5
notifications_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
open_issues
integer 
必需
open_issues_count
integer 
必需
示例值:
0
organization
null 
可选
Simple User
owner
null 
必需
Simple User
permissions
object 
可选
private
boolean 
必需
Whether the repository is private or public.
默认值:
false
pulls_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/pulls{/number}
pushed_at
string <date-time> | null 
必需
示例值:
2011-01-26T19:06:43Z
releases_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/releases{/id}
size
integer 
必需
示例值:
108
ssh_url
string 
必需
示例值:
git@github.com:octocat/Hello-World.git
stargazers_count
integer 
必需
示例值:
80
stargazers_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/stargazers
starred_at
string 
可选
示例值:
"2020-07-09T00:17:42Z"
statuses_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/statuses/{sha}
subscribers_count
integer 
可选
subscribers_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/subscribers
subscription_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/subscription
svn_url
string <uri>
必需
示例值:
https://svn.github.com/octocat/Hello-World
tags_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/tags
teams_url
string <uri>
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/teams
temp_clone_token
string 
可选
template_repository
object  | null 
可选
topics
array[string]
可选
trees_url
string 
必需
示例值:
http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
updated_at
string <date-time> | null 
必需
示例值:
2011-01-26T19:14:43Z
url
string <uri>
必需
示例值:
https://api.github.com/repos/octocat/Hello-World
visibility
string 
可选
The repository visibility: public, private, or internal.
默认值:
public
watchers
integer 
必需
watchers_count
integer 
必需
示例值:
80
repository_url
string <uri>
必需
state
string 
必需
State of the issue; either 'open' or 'closed'
示例值:
open
timeline_url
string <uri>
可选
title
string 
必需
Title of the issue
示例值:
Widget creation fails in Safari on OS X 10.8
updated_at
string <date-time>
必需
url
string <uri>
必需
URL for the issue
示例值:
https://api.github.com/repositories/42/issues/1
user
null 
必需
Simple User
🔵301301
🟠403403
🟠404404
🟠410410
🟠422422
🔴503503

【GitHub】API开发者 微信交流群

用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通

扫码加入交流群
上一页
Get an issue
下一页
Remove assignees from an issue
Built with