Create a deploy key
You can create a read-only deploy key.
Path Parameters
Body
application/json
Body
A name for the key.
The contents of the key.
If true
, the key will only be able to read repository contents. Otherwise, the key will be able to read and write.
Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see “Repository permission levels for an organization” and “Permission levels for a user account repository.”
Response
application/json
Response
Response
Deploy Key
An SSH key granting access to a single repository.
Path Parameters
Body
Get a deploy key
Path Parameters
key_id parameter
Response
application/json
Response
Response
Deploy Key
An SSH key granting access to a single repository.
Path Parameters
Delete a deploy key
Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead.
Path Parameters
key_id parameter
Response
204
Response
Response
Path Parameters
List repository languages
Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.
Path Parameters
Response
200 application/json
Response
Response
Language
Language
Path Parameters
Merge a branch
Path Parameters
Body
application/json
Body
The name of the base branch that the head will be merged into.
The head to merge. This can be a branch name or a commit SHA1.
Commit message to use for the merge commit. If omitted, a default message will be used.
Response
application/json
Response
Successful Response (The resulting merge commit)
Commit
Commit
Example:https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==
Example:https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Show Child Parameters
Diff Entry