Get a gitignore template
The API also allows fetching the source of a single template.
Use the raw media type to get the raw contents.
Path Parameters
Response
application/json
Response
Response
Gitignore Template
Gitignore Template
Example:C
Example:# Object files *.o # Libraries *.lib *.a # Shared objects (inc. Windows DLLs) *.dll *.so *.so.* *.dylib # Executables *.exe *.out *.app
Path Parameters
List issues assigned to the authenticated user
List issues assigned to the authenticated user across all visible repositories including owned repositories, member
repositories, and organization repositories. You can use the filter
query parameter to fetch issues that are not
necessarily assigned to you.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
Query Parameters
Indicates which sorts of issues to return. Can be one of:
* assigned
: Issues assigned to you
* created
: Issues created by you
* mentioned
: Issues mentioning you
* subscribed
: Issues you’re subscribed to updates for
* all
or repos
: All issues the authenticated user can see, regardless of participation or creation
Allowed values:assignedcreatedmentionedsubscribedreposall
Default:assigned
Indicates the state of the issues to return. Can be either open
, closed
, or all
.
Allowed values:openclosedall
Default:open
A list of comma separated label names. Example: bug,ui,@high
What to sort results by. Can be either created
, updated
, comments
.
Allowed values:createdupdatedcomments
Default:created
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
Response
Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
URL for the issue
Example:https://api.github.com/repositories/42/issues/1
Number uniquely identifying the issue within its repository
Example:42
State of the issue; either ‘open’ or ‘closed’
Example:open
Title of the issue
Example:Widget creation fails in Safari on OS X 10.8
Contents of the issue
Example:It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?
Simple User
Show Child Parameters
One Of
Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository
Example:["bug","registration"]
Simple User
Show Child Parameters
Simple User
Show Child Parameters
A collection of related issues and pull requests.
Show Child Parameters
Show Child Parameters
Simple User
Show Child Parameters
A git repository
Show Child Parameters
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
Show Child Parameters
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Show Child Parameters
Query Parameters
List organization issues assigned to the authenticated user
List issues in an organization assigned to the authenticated user.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
Query Parameters
Indicates which sorts of issues to return. Can be one of:
* assigned
: Issues assigned to you
* created
: Issues created by you
* mentioned
: Issues mentioning you
* subscribed
: Issues you’re subscribed to updates for
* all
or repos
: All issues the authenticated user can see, regardless of participation or creation
Allowed values:assignedcreatedmentionedsubscribedreposall
Default:assigned
Indicates the state of the issues to return. Can be either open
, closed
, or all
.
Allowed values:openclosedall
Default:open
A list of comma separated label names. Example: bug,ui,@high
What to sort results by. Can be either created
, updated
, comments
.
Allowed values:createdupdatedcomments
Default:created
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
URL for the issue
Example:https://api.github.com/repositories/42/issues/1
Number uniquely identifying the issue within its repository
Example:42
State of the issue; either ‘open’ or ‘closed’
Example:open
Title of the issue
Example:Widget creation fails in Safari on OS X 10.8
Contents of the issue
Example:It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?
Simple User
Show Child Parameters
One Of
Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository
Example:["bug","registration"]
Simple User
Show Child Parameters
Simple User
Show Child Parameters
A collection of related issues and pull requests.
Show Child Parameters
Show Child Parameters
Simple User
Show Child Parameters
A git repository
Show Child Parameters
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
Show Child Parameters
How the author is associated with the repository.
Allowed values:COLLABORATORCONTRIBUTORFIRST_TIMERFIRST_TIME_CONTRIBUTORMANNEQUINMEMBERNONEOWNER
Example:OWNER
Show Child Parameters
Path Parameters
Query Parameters
List assignees
Lists the available assignees for issues in a repository.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Simple User
Example:octocat
Example:1
Example:MDQ6VXNlcjE=
Example:https://github.com/images/error/octocat_happy.gif
Example:41d064eb2195891e12d0413f63227ea7
Example:https://api.github.com/users/octocat
Example:https://github.com/octocat
Example:https://api.github.com/users/octocat/followers
Example:https://api.github.com/users/octocat/following{/other_user}
Example:https://api.github.com/users/octocat/gists{/gist_id}
Example:https://api.github.com/users/octocat/starred{/owner}{/repo}
Example:https://api.github.com/users/octocat/subscriptions
Example:https://api.github.com/users/octocat/orgs
Example:https://api.github.com/users/octocat/repos
Example:https://api.github.com/users/octocat/events{/privacy}
Example:https://api.github.com/users/octocat/received_events
Example:User
Example:"2020-07-09T00:17:55Z"
Path Parameters
Query Parameters
Check if a user can be assigned
Checks if a user has permission to be assigned to an issue in this repository.
If the assignee
can be assigned to issues in the repository, a 204
header with no content is returned.
Otherwise a 404
status code is returned.
Path Parameters
Response
Response
If the assignee
can be assigned to issues in the repository, a 204
header with no content is returned.