Create a repository project
Creates a repository project board. Returns a 404 Not Found
status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
Path Parameters
Body
application/json
Body
The name of the project.
The description of the project.
Response
application/json
Response
Response
Project
Projects are a way to organize columns and cards of work.
Example:https://api.github.com/repos/api-playground/projects-test
Example:https://api.github.com/projects/1002604
Example:https://github.com/api-playground/projects-test/projects/12
Example:https://api.github.com/projects/1002604/columns
Example:1002604
Example:MDc6UHJvamVjdDEwMDI2MDQ=
Name of the project
Example:Week One Sprint
Body of the project
Example:This project represents the sprint of the first week in January
Example:1
State of the project; either ‘open’ or ‘closed’
Example:open
Simple User
Show Child Parameters
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
The baseline permission that all organization members have on this project. Only present if owner is an organization.
Allowed values:readwriteadminnone
Whether or not this project can be seen by everyone. Only present if owner is an organization.
Path Parameters
Body
Create a user project
Body
application/json
Body
Name of the project
Example:Week One Sprint
Body of the project
Example:This project represents the sprint of the first week in January
Response
application/json
Response
Response
Project
Projects are a way to organize columns and cards of work.
Example:https://api.github.com/repos/api-playground/projects-test
Example:https://api.github.com/projects/1002604
Example:https://github.com/api-playground/projects-test/projects/12
Example:https://api.github.com/projects/1002604/columns
Example:1002604
Example:MDc6UHJvamVjdDEwMDI2MDQ=
Name of the project
Example:Week One Sprint
Body of the project
Example:This project represents the sprint of the first week in January
Example:1
State of the project; either ‘open’ or ‘closed’
Example:open
Simple User
Show Child Parameters
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
The baseline permission that all organization members have on this project. Only present if owner is an organization.
Allowed values:readwriteadminnone
Whether or not this project can be seen by everyone. Only present if owner is an organization.
Body
List user projects
Query Parameters
Indicates the state of the projects to return. Can be either open
, closed
, or all
.
Allowed values:openclosedall
Default:open
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Projects are a way to organize columns and cards of work.
Example:https://api.github.com/repos/api-playground/projects-test
Example:https://api.github.com/projects/1002604
Example:https://github.com/api-playground/projects-test/projects/12
Example:https://api.github.com/projects/1002604/columns
Example:1002604
Example:MDc6UHJvamVjdDEwMDI2MDQ=
Name of the project
Example:Week One Sprint
Body of the project
Example:This project represents the sprint of the first week in January
Example:1
State of the project; either ‘open’ or ‘closed’
Example:open
Simple User
Show Child Parameters
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
The baseline permission that all organization members have on this project. Only present if owner is an organization.
Allowed values:readwriteadminnone
Whether or not this project can be seen by everyone. Only present if owner is an organization.
Path Parameters
Query Parameters
List pull requests
Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub’s products in the GitHub Help documentation.
Query Parameters
Either open
, closed
, or all
to filter by state.
Allowed values:openclosedall
Default:open
Filter pulls by head user or head organization and branch name in the format of user:ref-name
or organization:ref-name
. For example: github:new-script-format
or octocat:test-branch
.
Filter pulls by base branch name. Example: gh-pages
.
What to sort results by. Can be either created
, updated
, popularity
(comment count) or long-running
(age, filtering by pulls updated in the last month).
Allowed values:createdupdatedpopularitylong-running
Default:created
The direction of the sort. Can be either asc
or desc
. Default: desc
when sort is created
or sort is not specified, otherwise asc
.
Allowed values:ascdesc
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Pull Request Simple
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347
Example:1
Example:MDExOlB1bGxSZXF1ZXN0MQ==
Example:https://github.com/octocat/Hello-World/pull/1347
Example:https://github.com/octocat/Hello-World/pull/1347.diff
Example:https://github.com/octocat/Hello-World/pull/1347.patch
Example:https://api.github.com/repos/octocat/Hello-World/issues/1347
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments
Example:https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}
Example:https://api.github.com/repos/octocat/Hello-World/issues/1347/comments
Example:https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e
Example:1347
Example:open
Example:true
Example:new-feature
Simple User
Show Child Parameters
Example:Please pull these awesome changes
Show Child Parameters
A collection of related issues and pull requests.
Show Child Parameters
Example:too heated
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:e5bd3914e2e596debea16f433f57875b5b90bcd6
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Groups of organization members that gives permissions on specified repositories.
Show Child Parameters
Show Child Parameters
Show Child Parameters
Show Child Parameters
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Indicates whether or not the pull request is a draft.
Example:false
Path Parameters
Query Parameters
Create a pull request
Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see GitHub’s products in the GitHub Help documentation.
To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.
You can create a new pull request.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
Path Parameters
Body
application/json
Body
The title of the new pull request.
The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head
with a user like this: username:branch
.
The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
The contents of the pull request.
Indicates whether maintainers can modify the pull request.
Indicates whether the pull request is a draft. See “Draft Pull Requests” in the GitHub Help documentation to learn more.
Example:1
Response
application/json
Response
Response
Pull Request
Pull requests let you tell others about changes you’ve pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347
Example:1
Example:MDExOlB1bGxSZXF1ZXN0MQ==
Example:https://github.com/octocat/Hello-World/pull/1347
Example:https://github.com/octocat/Hello-World/pull/1347.diff
Example:https://github.com/octocat/Hello-World/pull/1347.patch
Example:https://api.github.com/repos/octocat/Hello-World/issues/1347
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits
Example:https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments
Example:https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}
Example:https://api.github.com/repos/octocat/Hello-World/issues/1347/comments
Example:https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e
Number uniquely identifying the pull request within its repository.
Example:42
State of this Pull Request. Either open
or closed
.
Allowed values:openclosed
Example:open
Example:true
The title of the pull request.
Example:Amazing new feature
Simple User
Show Child Parameters
Example:Please pull these awesome changes
Show Child Parameters
A collection of related issues and pull requests.
Show Child Parameters
Example:too heated
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:2011-01-26T19:01:12Z
Example:e5bd3914e2e596debea16f433f57875b5b90bcd6
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Simple User
Show Child Parameters
Groups of organization members that gives permissions on specified repositories.
Show Child Parameters
Show Child Parameters
Show Child Parameters
Show Child Parameters
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Indicates whether or not the pull request is a draft.
Example:false
Example:true
Example:true
Example:clean
Simple User
Show Child Parameters
Example:10
Example:0
Indicates whether maintainers can modify the pull request.
Example:true
Example:3
Example:100
Example:3
Example:5