Add email address(es).
You can post a single email address or an array of addresses.
Type: array
[ "string" ]
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a file.
Name of repository owner.
Type: string
The file path or directory. Set this to an empty string to get the contents of all files in the repository.
Type: string
Name of repository.
Type: string
Type: object
{
"committer" : {
"name" : "string",
"email" : "string"
},
"author" : {
"name" : "string",
"email" : "string"
},
"message" : "string",
"sha" : "string",
"branch" : "string",
"content" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Add labels to an issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: array
[ "string" ]
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Adds a repository to the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility
set to selected
. For more information, see "Create a self-hosted runner group for an organization."
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Type: integer
Unique identifier of the self-hosted runner group.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization.
Name of repository owner.
Type: string
Name of repository.
Type: string
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Adds a repository to an organization secret when the visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
Type: integer
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Adds a self-hosted runner to a runner group configured in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Unique identifier of the self-hosted runner.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Add or update file in repo if changes have been made. Do nothing if files are identical.
The new file content. This will be encoded during the operation in Base64.
Type: STRING
The commit message.
Type: STRING
Name of repository owner.
Type: STRING
Path to file.
Type: STRING
Name of repository.
Type: STRING
The author of the file. Default: The committer or the authenticated user if you omit committer.
Type: OBJECT
The person that committed the file. Default: the authenticated user.
Type: OBJECT
The name of the commit/branch/tag. Default: the repository’s default branch (usually master)
Type: STRING
Add or update organization membership.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: admin, member
Cancels a workflow run using its id
. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Compare two commits
Type: string
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Blob.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"size" : "integer",
"encoding" : { },
"sha" : "string",
"content" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a branch from another named branch. Default is from master.
Name of new branch to create.
Type: STRING
Name of repository owner.
Type: STRING
Name of repository.
Type: STRING
Branch to branch from.
Type: STRING
Create a commit comment.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Type: object
{
"number" : "Line number in the file to comment on. Defaults to null.",
"path" : "Relative path of the file to comment on.",
"line" : "Deprecated - Use position parameter instead.",
"position" : "Line index in the diff to comment on.",
"body" : "Required string",
"sha" : "SHA of the commit to comment on."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a comment
Id of gist.
Type: string
Type: object
{
"body" : "Required string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a comment.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"body" : "Required string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a comment.
#TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ )
description: |
Alternative Input.
Instead of passing commit_id, path, and position you can reply to an
existing Pull Request Comment like this:
body
Required string
in_reply_to
Required number - Comment id to reply to.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"path" : "string",
"position" : "number",
"body" : "string",
"commit_id" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Users with push access can create a deployment for a given ref
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"ref" : "string",
"payload" : {
"room_id" : "number",
"environment" : "string",
"deploy_user" : "string"
},
"description" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a fork.
Forking a Repository happens asynchronously. Therefore, you may have to wai
a short period before accessing the git objects. If this takes longer than 5
minutes, be sure to contact Support.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"organization" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a gist.
Type: object
{
"public" : "boolean",
"files" : {
"file1.txt" : {
"content" : "string"
}
},
"description" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Commit.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"author" : {
"date" : "string",
"name" : "string",
"email" : "string"
},
"tree" : "Required string",
"message" : "Required string",
"parents" : [ "string" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Reference
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"ref" : "string",
"sha" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Tag Object.
Note that creating a tag object does not create the reference that makes a
tag in Git. If you want to create an annotated tag in Git, you have to do
this call to create the tag object, and then create the refs/tags/[tag]
reference. If you want to create a lightweight tag, you only have to create
the tag reference - this call would be unnecessary.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"tagger" : {
"date" : "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ",
"name" : "string",
"email" : "string"
},
"tag" : "string",
"message" : "string",
"sha" : "string",
"url" : "string",
"object" : {
"type" : "string",
"sha" : "string",
"url" : "string"
}
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Tree.
The tree creation API will take nested entries as well. If both a tree and
a nested path modifying that tree are specified, it will overwrite the
contents of that tree with the new path contents and write a new tree out.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"tree" : [ {
"mode" : "string",
"path" : "string",
"size" : "integer",
"type" : "string",
"sha" : "string",
"url" : "string"
} ],
"sha" : "string",
"url" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a hook.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"active" : "boolean",
"add_events" : [ "string" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create an issue.
Any user with pull access to a repository can create an issue.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"milestone" : "number",
"assignees" : [ "string" ],
"assignee" : "Deprecated. Use assignees instead.",
"body" : "string",
"title" : "string",
"labels" : [ "string" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a key.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"title" : "string",
"key" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a public key.
Type: object
{
"title" : "string",
"key" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a label.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: array
[ "string" ]
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a milestone.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"description" : "string",
"state" : "string",
"title" : "string",
"due_on" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Creates or updates an organization secret with an encrypted value. Encrypt your secret using
LibSodium. You must authenticate using an access
token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to
use this endpoint.
Encrypt your secret using the tweetsodium library.
const sodium = require('tweetsodium');
const key = "base64-encoded-public-key";
const value = "plain-text-secret";
// Convert the message and key to Uint8Array's (Buffer implements that interface)
const messageBytes = Buffer.from(value);
const keyBytes = Buffer.from(key, 'base64');
// Encrypt using LibSodium.
const encryptedBytes = sodium.seal(messageBytes, keyBytes);
// Base64 the encrypted secret
const encrypted = Buffer.from(encryptedBytes).toString('base64');
console.log(encrypted);
Encrypt your secret using pynacl with Python 3.
from base64 import b64encode
from nacl import encoding, public
def encrypt(public_key: str, secret_value: str) -> str:
"""Encrypt a Unicode string using the public key."""
public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder())
sealed_box = public.SealedBox(public_key)
encrypted = sealed_box.encrypt(secret_value.encode("utf-8"))
return b64encode(encrypted).decode("utf-8")
Encrypt your secret using the Sodium.Core package.
var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret");
var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=");
var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);
Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));
Encrypt your secret using the rbnacl gem.
require "rbnacl"
require "base64"
key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=")
public_key = RbNaCl::PublicKey.new(key)
box = RbNaCl::Boxes::Sealed.from_public_key(public_key)
encrypted_secret = box.encrypt("my_secret")
# Print the base64 encoded secret
puts Base64.strict_encode64(encrypted_secret)
Name of organisation.
Type: string
secret_name parameter
Type: string
Type: object
{
"selected_repository_ids" : [ "string" ],
"visibility" : "Configures the access that repositories have to the organization secret. Can be one of: \n\\- `all` - All repositories in an organization can access the secret. \n\\- `private` - Private repositories in an organization can access the secret. \n\\- `selected` - Only specific repositories can access the secret.",
"key_id" : "ID of the key you used to encrypt the secret.",
"encrypted_value" : "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Creates or updates a repository secret with an encrypted value. Encrypt your secret using
LibSodium. You must authenticate using an access
token with the repo
scope to use this endpoint. GitHub Apps must have the secrets
repository permission to use
this endpoint.
Encrypt your secret using the tweetsodium library.
const sodium = require('tweetsodium');
const key = "base64-encoded-public-key";
const value = "plain-text-secret";
// Convert the message and key to Uint8Array's (Buffer implements that interface)
const messageBytes = Buffer.from(value);
const keyBytes = Buffer.from(key, 'base64');
// Encrypt using LibSodium.
const encryptedBytes = sodium.seal(messageBytes, keyBytes);
// Base64 the encrypted secret
const encrypted = Buffer.from(encryptedBytes).toString('base64');
console.log(encrypted);
Encrypt your secret using pynacl with Python 3.
from base64 import b64encode
from nacl import encoding, public
def encrypt(public_key: str, secret_value: str) -> str:
"""Encrypt a Unicode string using the public key."""
public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder())
sealed_box = public.SealedBox(public_key)
encrypted = sealed_box.encrypt(secret_value.encode("utf-8"))
return b64encode(encrypted).decode("utf-8")
Encrypt your secret using the Sodium.Core package.
var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret");
var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=");
var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);
Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));
Encrypt your secret using the rbnacl gem.
require "rbnacl"
require "base64"
key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=")
public_key = RbNaCl::PublicKey.new(key)
box = RbNaCl::Boxes::Sealed.from_public_key(public_key)
encrypted_secret = box.encrypt("my_secret")
# Print the base64 encoded secret
puts Base64.strict_encode64(encrypted_secret)
Name of repository owner.
Type: string
Name of repository.
Type: string
secret_name parameter
Type: string
Type: object
{
"key_id" : "ID of the key you used to encrypt the secret.",
"encrypted_value" : "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/reference/actions#get-a-repository-public-key) endpoint."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a pull request.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"head" : "string",
"body" : "string",
"title" : "string",
"base" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Returns a token that you can pass to the config
script. The token expires after one hour.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN
with the registration token provided by this endpoint.
./config.sh --url https://github.com/octo-org --token TOKEN
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Returns a token that you can pass to the config
script. The token expires after one hour. You must authenticate
using an access token with the repo
scope to use this endpoint.
Configure your self-hosted runner, replacing TOKEN
with the registration token provided by this endpoint.
./config.sh --url https://github.com/octo-org/octo-repo-artifacts --token TOKEN
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a release
Users with push access to the repository can create a release.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"tag_name" : "string",
"prerelease" : "boolean",
"target_commitish" : "string",
"draft" : "boolean",
"name" : "string",
"body" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Returns a token that you can pass to the config
script to remove a self-hosted runner from an organization. The token expires after one hour.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
To remove your self-hosted runner from an organization, replace TOKEN
with the remove token provided by this
endpoint.
./config.sh remove --token TOKEN
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour.
You must authenticate using an access token with the repo
scope to use this endpoint.
To remove your self-hosted runner from a repository, replace TOKEN with the remove token provided by this endpoint.
./config.sh remove --token TOKEN
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a new repository for the authenticated user. OAuth users must supply
repo scope.
Type: object
{
"auto_init" : "True to create an initial commit with empty README. Default is false.",
"gitignore_template" : "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\" Ignored if auto_init parameter is not provided.",
"private" : "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account.",
"has_wiki" : "True to enable the wiki for this repository, false to disable it. Default is true.",
"has_downloads" : "True to enable downloads for this repository, false to disable them. Default is true.",
"name" : "Required string",
"description" : "string",
"team_id" : "The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.",
"has_issues" : "True to enable issues for this repository, false to disable them. Default is true.",
"homepage" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a new repository for the authenticated user. OAuth users must supply
repo scope.
Name of organisation.
Type: string
Type: object
{
"auto_init" : "True to create an initial commit with empty README. Default is false.",
"gitignore_template" : "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\" Ignored if auto_init parameter is not provided.",
"private" : "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account.",
"has_wiki" : "True to enable the wiki for this repository, false to disable it. Default is true.",
"has_downloads" : "True to enable downloads for this repository, false to disable them. Default is true.",
"name" : "Required string",
"description" : "string",
"team_id" : "The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.",
"has_issues" : "True to enable issues for this repository, false to disable them. Default is true.",
"homepage" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub Enterprise Server. For more information, see "GitHub's products."
Creates a new self-hosted runner group for an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Type: object
{
"selected_repository_ids" : [ "Unique identifier of the repository." ],
"visibility" : "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. Can be one of: `all`, `selected`, or `private`.",
"name" : "Name of the runner group.",
"runners" : [ "Unique identifier of the runner." ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Deployment Status
Users with push access can create deployment statuses for a given deployment:
The Deployment ID to list the statuses from.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"target_url" : "string",
"description" : "string",
"state" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create a Status.
Name of repository owner.
Type: string
Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
Type: string
Name of repository.
Type: string
Type: object
{
"ref" : "string",
"url" : "string",
"object" : {
"type" : "string",
"sha" : "string",
"url" : "string"
}
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Create team.
In order to create a team, the authenticated user must be an owner of organization.
Name of organisation.
Type: string
Type: object
{
"repo_names" : [ "string" ],
"name" : "Required string",
"permission" : { }
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Test a push hook.
This will trigger the hook with the latest push to the current repository
if the hook is subscribed to push events. If the hook is not subscribed
to push events, the server will respond with 204 but no test POST will
be generated.
Note: Previously /repos/:owner/:repo/hooks/:id/tes
Id of hook.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
.
You must configure your GitHub Actions workflow to run when the workflow_dispatch
webhook event occurs. The inputs
are configured in the workflow file. For more information about how to configure the workflow_dispatch
event in the workflow file, see "Events that trigger workflows."
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint. For more information, see "Creating a personal access token for the command line."
Name of repository owner.
Type: string
Name of repository.
Type: string
The ID of the workflow. You can also pass the workflow file name as a string.
Type: object
{ }
Type: object
{
"ref" : "The git reference for the workflow. The reference can be a branch or tag name.",
"inputs" : "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Deletes an artifact for a workflow run. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
artifact_id parameter
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a release asset
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a branch.
Name of repository owner.
Type: STRING
Name of repository.
Type: STRING
Branch to delete.
Type: STRING
Remove collaborator.
Name of repository owner.
Type: string
Name of repository.
Type: string
Login of the user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a commit comment
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a comment.
Id of comment.
Type: integer
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a file.
This method deletes a file in a repository.
Name of repository owner.
Type: string
The file path or directory. Set this to an empty string to get the contents of all files in the repository.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The branch name. Defaults to the repository’s default branch (usually master)
Type: string
The commit message.
Type: string
The blob SHA of the file being replaced.
Type: string
Delete a gist.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a Reference
Example: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a
Example: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0
Name of repository owner.
Type: string
Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a hook.
Id of hook.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a key.
Id of key.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope.
Id of key.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a label.
Name of the label.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Remove all labels from an issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Remove a member.
Removing a user from this list will remove them from all teams and they
will no longer have any access to the organization's repositories.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a milestone.
Number of milestone.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Deletes a secret in an organization using the secret name. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Conceal a user's membership.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Users with push access to the repository can delete a release.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a Repository.
Deleting a repository requires admin access. If OAuth is used, the delete_repo
scope is required.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Deletes a secret in a repository using the secret name. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the secrets
repository permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.
You must authenticate using an access token with the repo
scope to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Unique identifier of the self-hosted runner.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Deletes a self-hosted runner group for an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a Repository Subscription.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete team.
In order to delete a team, the authenticated user must be an owner of the
org that the team is associated with.
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a specific workflow run. Anyone with write access to the repository can use this endpoint. If the repository is
private you must use an access token with the repo
scope. GitHub Apps must have the actions:write
permission to use
this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Deletes all logs for a workflow run. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories
must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization."
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Disables a workflow and sets the state
of the workflow to disabled_manually
. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
.
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
The ID of the workflow. You can also pass the workflow file name as a string.
Type: object
{ }
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for Location:
in
the response header to find the URL for the download. The :archive_format
must be zip
. Anyone with read access to
the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope.
GitHub Apps must have the actions:read
permission to use this endpoint.
Type: string
artifact_id parameter
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look
for Location:
in the response header to find the URL for the download. Anyone with read access to the repository can
use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must
have the actions:read
permission to use this endpoint.
job_id parameter
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look forLocation:
in the response header to find the URL for the download. Anyone with read access to the repository can use
this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have
the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit a release asset
Users with push access to the repository can edit a release asset.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"name" : "Required string",
"label" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
update branch protection rules
Name of the branch.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"required_pull_request_reviews" : { },
"required_status_checks" : { },
"restrictions" : { },
"enforce_admins" : "boolean"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Add collaborator.
Name of repository owner.
Type: string
Name of repository.
Type: string
Login of the user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Update a commit comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"body" : "Required string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit a comment.
Id of comment.
Type: integer
Id of gist.
Type: string
Type: object
{
"body" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit a comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"body" : "Required string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit a comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"body" : "Required string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit a gist.
Id of gist.
Type: string
Type: object
{
"files" : {
"delete_this_file.txt" : "string",
"new_file.txt" : {
"content" : "string"
},
"file1.txt" : {
"content" : "string"
},
"old_name.txt" : {
"filename" : "string",
"content" : "string"
}
},
"description" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Update a Reference
Name of repository owner.
Type: string
Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
Type: string
Name of repository.
Type: string
Type: object
{
"force" : "boolean",
"sha" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit a hook.
Id of hook.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"active" : "boolean",
"add_events" : [ "string" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit an issue.
Issue owners and users with push access can edit an issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"milestone" : "number",
"assignees" : [ "string" ],
"assignee" : "Deprecated. Use assignees instead.",
"body" : "string",
"title" : "string",
"labels" : [ "string" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Update a label.
Name of the label.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: array
[ "string" ]
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Replace all labels for an issue.
Sending an empty array ([]) will remove all Labels from the Issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: array
[ "string" ]
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Add team membership.
In order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with.
If the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team.
If the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team.
Id of team.
Type: integer
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Update a milestone.
Number of milestone.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"description" : "string",
"state" : "string",
"title" : "string",
"due_on" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Set a Thread Subscription.
This lets you subscribe to a thread, or ignore it. Subscribing to a thread
is unnecessary if the user is already subscribed to the repository. Ignoring
a thread will mute all future notifications (until you comment or get @mentioned).
Id of thread.
Type: integer
Type: object
{
"ignored" : "boolean",
"subscribed" : "boolean",
"reason" : { },
"created_at" : "string",
"thread_url" : "string",
"url" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit an Organization.
Name of organisation.
Type: string
Type: object
{
"billing_email" : "Billing email address. This address is not publicized.",
"name" : "string",
"company" : "string",
"location" : "string",
"email" : "Publicly visible email address."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Publicize a user's membership.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Update a pull request.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"state" : "string",
"body" : "string",
"title" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Users with push access to the repository can edit a release
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"tag_name" : "string",
"prerelease" : "boolean",
"target_commitish" : "string",
"draft" : "boolean",
"name" : "string",
"body" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"private" : "boolean",
"has_wiki" : "boolean",
"has_downloads" : "boolean",
"name" : "string",
"description" : "string",
"has_issues" : "boolean",
"homepage" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Set a Repository Subscription
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"ignored" : "boolean",
"subscribed" : "boolean"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Edit team.
In order to edit a team, the authenticated user must be an owner of the org
that the team is associated with.
Id of team.
Type: integer
Type: object
{
"name" : "Required string",
"permission" : { }
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Update the authenticated user.
Type: object
{
"hireable" : "boolean",
"name" : "string",
"bio" : "string",
"company" : "string",
"location" : "string",
"blog" : "string",
"email" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories
must be must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization."
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Enables a workflow and sets the state
of the workflow to active
. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
.
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
The ID of the workflow. You can also pass the workflow file name as a string.
Type: object
{ }
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Follow a user.
Following a user requires the user to be logged in and authenticated with
basic auth or OAuth with the user:follow scope.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Fork a gist.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions allowed to run in the repository.
You must authenticate using an access token with the repo
scope to use this
endpoint. GitHub Apps must have the administration
repository permission to use this API.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets the selected actions that are allowed in an organization. To use this endpoint, the organization permission policy for allowed_actions
must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization.""
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets the settings for selected actions that are allowed in a repository. To use this endpoint, the repository policy for allowed_actions
must be configured to selected
. For more information, see "Set GitHub Actions permissions for a repository."
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration
repository permission to use this API.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
artifact_id parameter
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single release asset
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Blob.
Since blobs can be any arbitrary binary data, the input and responses for
the blob API takes an encoding parameter that can be either utf-8 or
base64. If your data cannot be losslessly sent as a UTF-8 string, you can
base64 encode it.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get Branch
Name of the branch.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List branch protection rules for a repo
Name of the branch.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single comment.
Id of comment.
Type: integer
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single commit comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single comment.
Id of comment.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single commit.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists all the emojis available to use on GitHub.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single event.
Id of the event.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public events.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List Feeds.
GitHub provides several timeline resources in Atom format. The Feeds API
lists all the feeds available to the authenticating user.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the contents of a single file in a repo. Returns an error if the path specified isn't for a single file.
Name of repository owner.
Type: STRING
Path to file.
Type: STRING
Name of repository.
Type: STRING
The name of the commit/branch/tag. Default: the repository’s default branch (usually master)
Type: STRING
Get contents.
This method returns the contents of a file or directory in a repository.
Files and symlinks support a custom media type for getting the raw content.
Directories and submodules do not support custom media types.
Note: This API supports files up to 1 megabyte in size.
Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/"
Name of repository owner.
Type: string
The file path or directory. Set this to an empty string to get the contents of all files in the repository.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The String name of the Commit/Branch/Tag. Defaults to 'master'.
Type: string
Get a single gist.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Commit.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Reference
Name of repository owner.
Type: string
Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Tree.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Tree Recursively. (0 or 1)
Type: integer
This gives some information about GitHub.com, the service.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get single hook.
Id of hook.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single issue
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
job_id parameter
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a key
Id of key.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single public key.
Id of key.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single label.
Name of the label.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List labels on an issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List team members.
In order to list members in a team, the authenticated user must be a member
of the team.
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get team membership.
In order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization.
Id of team.
Type: integer
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single milestone.
Number of milestone.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
View a single thread.
Id of thread.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get an Organization.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a single organization secret without revealing its encrypted value. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the secrets
repository permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single pull request.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get your current rate limit status
Note: Accessing this endpoint does not count against your rate limit.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the README.
This method returns the preferred README for a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The String name of the Commit/Branch/Tag. Defaults to master.
Type: string
Get a single release
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a single repository secret without revealing its encrypted value. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the secrets
repository permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a specific self-hosted runner configured in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a specific self-hosted runner configured in a repository.
You must authenticate using an access token with the repo
scope to use this
endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Unique identifier of the self-hosted runner.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Gets a specific self-hosted runner group for an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Repository Subscription.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get team.
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single template.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a single user.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the authenticated user.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a specific workflow. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
The ID of the workflow. You can also pass the workflow file name as a string.
Type: object
{ }
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "Managing billing for GitHub Actions".
Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "Managing billing for GitHub Actions".
You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
The ID of the workflow. You can also pass the workflow file name as a string.
Type: object
{ }
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if user is a collaborator
Name of repository owner.
Type: string
Name of repository.
Type: string
Login of the user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if a gist is starred.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if a user is, publicly or privately, a member of the organization.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Thread Subscription.
Id of thread.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check public membership.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get if a pull request has been merged.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if a team manages a repository
Name of repository owner.
Type: string
Name of repository.
Type: string
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if you are starring a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if you are watching a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check assignee.
You may also check to see if a particular user is an assignee for a repository.
Login of the assignee.
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if one user follows another.
Name of user.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List your notifications.
List all notifications for the current user, grouped by repository.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
True to show notifications marked as read.
Type: boolean
True to show only notifications in which the user is directly participating
or mentioned.
Type: boolean
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
List all public repositories.
This provides a dump of every public repository, in the order that they
were created.
Note: Pagination is powered exclusively by the since parameter. is the
Link header to get the URL for the next page of repositories.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The integer ID of the last Repository that you've seen.
Type: string
Lists all artifacts for a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List assets for a release
Type: string
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List assignees.
This call lists all the available assignees (owner + collaborators) to which
issues may be assigned.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get list of branches
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List.
When authenticating as an organization owner of an organization-owned
repository, all organization owners are included in the list of
collaborators. Otherwise, only users with access to the repository are
returned in the collaborators list.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List comments for a single commitList comments for a single commit.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List commit comments for a repository.
Comments are ordered by ascending ID.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List comments on a gist.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List comments on an issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
List comments in a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Ignored without 'sort' parameter.
Type: string
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
Type: string
Potential values: created, updated
List comments on a pull request.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List comments in a repository.
By default, Review Comments are ordered by ascending ID.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Ignored without 'sort' parameter.
Type: string
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
Type: string
Potential values: created, updated
List commits on a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
GitHub login, name, or email by which to filter by commit author.
Type: string
Only commits containing this file path will be returned.
Type: string
Sha or branch to start listing commits from.
Type: string
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
ISO 8601 Date - Only commits before this date will be returned.
Type: string
List commits on a pull request.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get list of contributors.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Set to 1 or true to include anonymous contributors in results.
Type: string
Users with pull access can view deployments for a repository
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List email addresses for a user.
In the final version of the API, this method will return an array of hashes
with extended information for each email address indicating if the address
has been verified and if it's primary email address for GitHub.
Until API v3 is finalized, use the application/vnd.github.v3 media type to
get other response format.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List events for an issue.
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List issue events for a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public events for a network of repositories.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public events for an organization.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get list of repository events.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
These are events that you'll only see public events.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public events that a user has received
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List pull requests files.
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List the authenticated user's followers
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List a user's followers
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List who the authenticated user is following.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Check if you are following a user.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List forks.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: newes, oldes, watchers
List the authenticated user's gists or if called anonymously, this will
return all public gists.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
Type: string
List a users gists.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
List all public gists.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
Type: string
List the authenticated user's starred gists.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.
Only gists updated at or after this time are returned.
Type: string
Get all References
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get a Tag.
Name of repository owner.
Type: string
Name of repository.
Type: string
SHA-1 code of the commit.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get list of hooks.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List issues.
List all issues across all the authenticated user's visible repositories.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: asc, desc
Issues assigned to you / created by you / mentioning you / you're
subscribed to updates for / All issues the authenticated user can see
Type: string
Potential values: assigned, created, mentioned, subscribed, all
String list of comma separated Label names. Example - bug,ui,@high.
Type: string
Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
Type: string
Type: string
Potential values: created, updated, comments
Type: string
Potential values: open, closed
List issues.
List all issues for a given organization for the authenticated user.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: asc, desc
Issues assigned to you / created by you / mentioning you / you're
subscribed to updates for / All issues the authenticated user can see
Type: string
Potential values: assigned, created, mentioned, subscribed, all
String list of comma separated Label names. Example - bug,ui,@high.
Type: string
Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
Type: string
Type: string
Potential values: created, updated, comments
Type: string
Potential values: open, closed
List issues for a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: asc, desc
Issues assigned to you / created by you / mentioning you / you're
subscribed to updates for / All issues the authenticated user can see
Type: string
Potential values: assigned, created, mentioned, subscribed, all
String list of comma separated Label names. Example - bug,ui,@high.
Type: string
Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
Type: string
Type: string
Potential values: created, updated, comments
Type: string
Potential values: open, closed
List issues.
List all issues across owned and member repositories for the authenticated
user.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: asc, desc
Issues assigned to you / created by you / mentioning you / you're
subscribed to updates for / All issues the authenticated user can see
Type: string
Potential values: assigned, created, mentioned, subscribed, all
String list of comma separated Label names. Example - bug,ui,@high.
Type: string
Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Only issues updated at or after this time are returned.
Type: string
Type: string
Potential values: created, updated, comments
Type: string
Potential values: open, closed
Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint. You can use parameters to narrow the list of results. For more information about using parameters, see Parameters.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Filters jobs by their completed_at
timestamp. Can be one of:
* latest
: Returns jobs from the most recent execution of the workflow run.
* all
: Returns all jobs for a workflow run, including from old executions of the workflow run.
Type: string
Potential values: latest, all
List your public keys.
Lists the current user's keys. Management of public keys via the API requires
that you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get list of keys.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public keys for a user.
Lists the verified public keys for a user. This is accessible by anyone.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get labels for every issue in a milestone.
Number of milestone.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List all labels for this repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List languages.
List languages for the specified repository. The value on the right of a
language is the number of bytes of code written in that language.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Members list.
List all users who are members of an organization. A member is a user that belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List milestones for a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Ignored without 'sort' parameter.
Type: string
Type: string
Potential values: due_date, completeness
String to filter by state.
Type: string
Potential values: open, closed
List your notifications in a repository
List all notifications for the current user.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
True to show notifications marked as read.
Type: boolean
True to show only notifications in which the user is directly participating
or mentioned.
Type: boolean
The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Example: "2012-10-09T23:39:01Z".
Type: string
Lists all secrets available in an organization without revealing their encrypted values. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public and private organizations for the authenticated user.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List all public organizations for a user.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Public members list.
Members of an organization can choose to have their membership publicized
or not.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List pull requests.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Filter pulls by base branch name. Example - gh-pages.
Type: string
Filter pulls by head user and branch name in the format of 'user:ref-name'.
Example: github:new-script-format.
Type: string
String to filter by state.
Type: string
Potential values: open, closed
Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub Enterprise Server. For more information, see "GitHub's products."
Lists the repositories with access to a self-hosted runner group configured in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists all secrets available in a repository without revealing their encrypted values. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the secrets
repository permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List repositories for the authenticated user. Note that this does not include
repositories owned by organizations which the user can access. You can lis
user organizations and list organization repositories separately.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Comma-separated list of values. Can include:
Type: string
Can be one of asc or desc. Default: when using full_name: asc; otherwise desc
Type: string
Type: string
Potential values: created, updated, pushed, full_name
Will cause a 422 error if used in the same request as visibility or affiliation.
Type: string
Potential values: all, owner, public, private, member
Type: string
Potential values: all, public, private
Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories
must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization."
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists all repositories that have been selected when the visibility
for repository access to a secret is set to selected
. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List team repos
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List public repositories for the specified user.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Can be one of asc or desc. Default: when using full_name: asc, otherwise desc.
Type: string
Type: string
Potential values: created, updated, pushed, full_name
Type: string
Potential values: all, owner, member
List repositories for the specified org.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Type: string
Potential values: all, public, private, forks, sources, member
Lists binaries for the runner application that you can download and run.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists binaries for the runner application that you can download and run.
You must authenticate using an access token with the repo
scope to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Lists all self-hosted runner groups configured in an organization and inherited from an enterprise.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists all self-hosted runners configured in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists all self-hosted runners configured in a repository. You must authenticate using an access token with the repo
scope to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Lists self-hosted runners that are in a specific organization group.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List Stargazers.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List repositories being starred by a user.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List repositories being starred by the authenticated user.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Ignored without 'sort' parameter.
Type: string
Type: string
Potential values: created, updated
Users with pull access can view deployment statuses for a deployment
The Deployment ID to list the statuses from.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List Statuses for a specific Ref.
Name of repository owner.
Type: string
Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List watchers.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get list of tags.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Get list of teams
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List teams.
Name of organisation.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Listing available templates.
List all templates available to pass as an option when creating a repository.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get all repository topics.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get all users.
This provides a dump of every user, in the order that they signed up for GitHub.
Note: Pagination is powered exclusively by the since parameter. Use the Link
header to get the URL for the next page of users.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The integer ID of the last User that you've seen.
Type: integer
List repositories being watched by a user.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List repositories being watched by the authenticated user.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List Stargazers. New implementation.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List all workflow runs for a workflow. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
. You can use parameters to narrow the list of results. For more information about using parameters, see Parameters.
Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope.
Name of repository owner.
Type: string
Name of repository.
Type: string
The ID of the workflow. You can also pass the workflow file name as a string.
Type: object
{ }
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Returns someone's workflow runs. Use the login for the user who created the push
associated with the check suite or workflow run.
Type: string
Returns workflow runs associated with a branch. Use the name of the branch of the push
.
Type: string
Returns workflow run triggered by the event you specify. For example, push
, pull_request
or issue
. For more information, see "Events that trigger workflows."
Type: string
Returns workflow runs associated with the check run status
or conclusion
you specify. For example, a conclusion can be success
or a status can be completed
. For more information, see the status
and conclusion
options available in "Create a check run."
Type: string
Potential values: completed, status, conclusion
Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see Parameters.
Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Returns someone's workflow runs. Use the login for the user who created the push
associated with the check suite or workflow run.
Type: string
Returns workflow runs associated with a branch. Use the name of the branch of the push
.
Type: string
Returns workflow run triggered by the event you specify. For example, push
, pull_request
or issue
. For more information, see "Events that trigger workflows."
Type: string
Returns workflow runs associated with the check run status
or conclusion
you specify. For example, a conclusion can be success
or a status can be completed
. For more information, see the status
and conclusion
options available in "Create a check run."
Type: string
Potential values: completed, status, conclusion
Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Mark as read.
Marking a notification as "read" removes it from the default view on GitHub.com.
Type: object
{
"last_read_at" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Mark notifications as read in a repository.
Marking all notifications in a repository as "read" removes them from the
default view on GitHub.com.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"last_read_at" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Mark a thread as read
Id of thread.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Merge a pull request (Merge Button's)
Id of pull.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"commit_message" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Perform a merge.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"head" : "string",
"commit_message" : "string",
"base" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Delete a Thread Subscription.
Id of thread.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Render an arbitrary Markdown document
Type: object
{
"mode" : "string",
"context" : "string",
"text" : "string"
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Render a Markdown document in raw mode
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
List requested reviewers for a pull request
Name of repository owner.
Type: string
Type: integer
Name of repository.
Type: string
What page to return. Starts at 1.
Type: integer
How many results to return per API call. Max 100.
Type: integer
Remove requested reviewers from a pull request
Name of repository owner.
Type: string
Type: integer
Name of repository.
Type: string
Type: object
{
"team_reviewers" : [ "string" ],
"reviewers" : [ "string" ]
}
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See "Abuse rate limits" and "Dealing with abuse rate limits" for details.
Name of repository owner.
Type: string
Type: integer
Name of repository.
Type: string
Type: object
{
"team_reviewers" : [ "string" ],
"reviewers" : [ "string" ]
}
Delete email address(es).
You can include a single email address or an array of addresses.
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Remove a label from an issue.
Name of the label.
Type: string
Number of issue.
Type: integer
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Remove team membership.
In order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team.
Id of team.
Type: integer
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility
set to selected
. For more information, see "Create a self-hosted runner group for an organization."
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Type: integer
Unique identifier of the self-hosted runner group.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Removes a repository from an organization secret when the visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
Type: integer
secret_name parameter
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team.
Name of repository owner.
Type: string
Name of repository.
Type: string
Id of team.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Unique identifier of the self-hosted runner.
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Replace all repository topics.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"names" : [ "string" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the number of additions and deletions per week.
Returns a weekly aggregate of the number of additions and deletions pushed
to a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the last year of commit activity data.
Returns the last year of commit activity grouped by week. The days array
is a group of commits per day, starting on Sunday.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get contributors list with additions, deletions, and commit counts.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
This is the user's organization dashboard. You must be authenticated as the user to view this.
Name of organisation.
Type: string
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the weekly commit count for the repo owner and everyone else.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the number of commits per hour in each day.
Each array contains the day number, hour number, and number of commits
0-6 Sunday - Saturday
0-23 Hour of day
Number of commits
For example, [2, 14, 25] indicates that there were 25 total commits, during
the 2.00pm hour on Tuesdays. All times are based on the time zone of
individual commits.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Get the combined Status for a specific Ref
The Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details.
To access this endpoint during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.she-hulk-preview+json
Name of repository owner.
Type: string
Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Re-runs your workflow run using its id
. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: integer
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Search code.
The search terms. This can be any combination of the supported code
search parameters:
'Search In' Qualifies which fields are searched. With this qualifier
you can restrict the search to just the file contents, the file path,
or both.
'Languages' Searches code based on the language it's written in.
'Forks' Filters repositories based on the number of forks, and/or
whether code from forked repositories should be included in the results
at all.
'Size' Finds files that match a certain size (in bytes).
'Path' Specifies the path that the resulting file must be at.
'Extension' Matches files with a certain extension.
'Users' or 'Repositories' Limits searches to a specific user or repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The sort field. if sort param is provided. Can be either asc or desc.
Type: string
Potential values: desc, asc
Can only be 'indexed', which indicates how recently a file has been indexed
by the GitHub search infrastructure. If not provided, results are sorted
by best match.
Type: string
Potential values: indexed
Find issues by state and keyword. (This method returns up to 100 results per page.)
The q search term can also contain any combination of the supported issue search qualifiers:
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The sort field. if sort param is provided. Can be either asc or desc.
Type: string
Potential values: desc, asc
The sort field. Can be comments, created, or updated. Default: results are sorted by best match.
Type: string
Potential values: updated, created, comments
Search repositories.
The search terms. This can be any combination of the supported repository
search parameters:
'Search In' Qualifies which fields are searched. With this qualifier you
can restrict the search to just the repository name, description, readme,
or any combination of these.
'Size' Finds repositories that match a certain size (in kilobytes).
'Forks' Filters repositories based on the number of forks, and/or whether
forked repositories should be included in the results at all.
'Created' and 'Last Updated' Filters repositories based on times of
creation, or when they were last updated.
'Users or Repositories' Limits searches to a specific user or repository.
'Languages' Searches repositories based on the language they are written in.
'Stars' Searches repositories based on the number of stars.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The sort field. if sort param is provided. Can be either asc or desc.
Type: string
Potential values: desc, asc
How many results to return per API call. Max 100.
Type: integer
If not provided, results are sorted by best match.
Type: string
Potential values: stars, forks, updated
Search users.
The search terms. This can be any combination of the supported user
search parameters:
'Search In' Qualifies which fields are searched. With this qualifier you
can restrict the search to just the username, public email, full name,
location, or any combination of these.
'Repository count' Filters users based on the number of repositories they
have.
'Location' Filter users by the location indicated in their profile.
'Language' Search for users that have repositories that match a certain
language.
'Created' Filter users based on when they joined.
'Followers' Filter users based on the number of followers they have.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The sort field. if sort param is provided. Can be either asc or desc.
Type: string
Potential values: desc, asc
If not provided, results are sorted by best match.
Type: string
Potential values: followers, repositories, joined
Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.
If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as allowed_actions
to selected
actions, then you cannot override them for the organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Type: object
{
"enabled_repositories" : "The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.",
"allowed_actions" : "The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the repository.
If the repository belongs to an organization or enterprise that has set restrictive permissions at the organization or enterprise levels, such as allowed_actions
to selected
actions, then you cannot override them for the repository.
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration
repository permission to use this API.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"allowed_actions" : "The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.",
"enabled" : "Whether GitHub Actions is enabled on the repository."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for allowed_actions
must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization."
If the organization belongs to an enterprise that has selected
actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.
To use the patterns_allowed
setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the patterns_allowed
setting only applies to public repositories in the organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Type: object
{
"patterns_allowed" : [ "string" ],
"verified_allowed" : "Whether actions in GitHub Marketplace from verified creators are allowed. Set to `true` to allow all GitHub Marketplace actions by verified creators.",
"github_owned_allowed" : "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for allowed_actions
must be configured to selected
. For more information, see "Set GitHub Actions permissions for a repository."
If the repository belongs to an organization or enterprise that has selected
actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings.
To use the patterns_allowed
setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the patterns_allowed
setting only applies to public repositories.
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration
repository permission to use this API.
Name of repository owner.
Type: string
Name of repository.
Type: string
Type: object
{
"patterns_allowed" : [ "string" ],
"verified_allowed" : "Whether actions in GitHub Marketplace from verified creators are allowed. Set to `true` to allow all GitHub Marketplace actions by verified creators.",
"github_owned_allowed" : "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Replaces the list of repositories that have access to a self-hosted runner group configured in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Type: object
{
"selected_repository_ids" : [ "Unique identifier of the repository." ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for enabled_repositories
must be configured to selected
. For more information, see "Set GitHub Actions permissions for an organization."
You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the administration
organization permission to use this API.
Name of organisation.
Type: string
Type: object
{
"selected_repository_ids" : [ "Unique identifier of the repository." ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Replaces all repositories for an organization secret when the visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Name of organisation.
Type: string
secret_name parameter
Type: string
Type: object
{
"selected_repository_ids" : [ "integer" ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Replaces the list of self-hosted runners that are part of an organization runner group.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Type: object
{
"runners" : [ "Unique identifier of the runner." ]
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Star a gist.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Star a repository.
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Transfer a repository. This API is currently available for developers to preview. see https://developer.github.com/changes/2017-11-09-repository-transfer-api-preview/
The original owner of the repo
Type: string
The repository name
Type: string
Type: object
{
"new_owner" : "The username or organization name the repository will be transferred to.",
"team_ids" : [ "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories." ]
}
Is used to set specified media type.
Type: string
Unfollow a user.
Unfollowing a user requires the user to be logged in and authenticated with
basic auth or OAuth with the user:follow scope.
Name of user.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Unstar a gist.
Id of gist.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Unstar a repository
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Stop watching a repository
Name of repository owner.
Type: string
Name of repository.
Type: string
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "GitHub's products."
Updates the name
and visibility
of a self-hosted runner group in an organization.
You must authenticate using an access token with the admin:org
scope to use this endpoint.
Name of organisation.
Type: string
Unique identifier of the self-hosted runner group.
Type: integer
Type: object
{
"visibility" : "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. Can be one of: `all`, `selected`, or `private`.",
"name" : "Name of the runner group."
}
Is used to set specified media type.
Type: string
You can check the current version of media type in responses.
Type: string
Type: integer
Watch a repository.