octokit.activity.checkRepoIsStarredByAuthenticatedUser({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.
This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, set the repository's subscription manually.
octokit.activity.deleteRepoSubscription({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.
Mutes all future notifications for a conversation until you comment on the thread or get an @mention. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the Set a thread subscription endpoint and set ignore
to true
.
octokit.activity.deleteThreadSubscription({thread_id,});
name | required | description |
---|---|---|
thread_id | yes | thread_id parameter |
See also: GitHub Developer Guide documentation.
GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticated user:
Note: Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens.
octokit.activity.getFeeds();
This endpoint has no parameters
See also: GitHub Developer Guide documentation.
octokit.activity.getRepoSubscription({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.
octokit.activity.getThread({thread_id,});
name | required | description |
---|---|---|
thread_id | yes | thread_id parameter |
See also: GitHub Developer Guide documentation.
This checks to see if the current user is subscribed to a thread. You can also get a repository subscription.
Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were @mentioned, or manually subscribe to a thread.
octokit.activity.getThreadSubscriptionForAuthenticatedUser({thread_id,});
name | required | description |
---|---|---|
thread_id | yes | thread_id parameter |
See also: GitHub Developer Guide documentation.
If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.
octokit.activity.listEventsForAuthenticatedUser({username,});
name | required | description |
---|---|---|
username | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
List all notifications for the current user, sorted by most recently updated.
octokit.activity.listNotificationsForAuthenticatedUser();
name | required | description |
---|---|---|
all | no | If |
participating | no | If |
since | no | Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: |
before | no | Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
This is the user's organization dashboard. You must be authenticated as the user to view this.
octokit.activity.listOrgEventsForAuthenticatedUser({username,org,});
name | required | description |
---|---|---|
username | yes | |
org | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.
octokit.activity.listPublicEvents();
name | required | description |
---|---|---|
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.activity.listPublicEventsForRepoNetwork({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.activity.listPublicEventsForUser({username,});
name | required | description |
---|---|---|
username | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.activity.listPublicOrgEvents({org,});
name | required | description |
---|---|---|
org | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.
octokit.activity.listReceivedEventsForUser({username,});
name | required | description |
---|---|---|
username | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.activity.listReceivedPublicEventsForUser({username,});
name | required | description |
---|---|---|
username | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
octokit.activity.listRepoEvents({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
List all notifications for the current user.
octokit.activity.listRepoNotificationsForAuthenticatedUser({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
all | no | If |
participating | no | If |
since | no | Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: |
before | no | Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists repositories the authenticated user has starred.
You can also find out when stars were created by passing the following custom media type via the Accept
header:
octokit.activity.listReposStarredByAuthenticatedUser();
name | required | description |
---|---|---|
sort | no | One of |
direction | no | One of |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists repositories a user has starred.
You can also find out when stars were created by passing the following custom media type via the Accept
header:
octokit.activity.listReposStarredByUser({username,});
name | required | description |
---|---|---|
username | yes | |
sort | no | One of |
direction | no | One of |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists repositories a user is watching.
octokit.activity.listReposWatchedByUser({username,});
name | required | description |
---|---|---|
username | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists the people that have starred the repository.
You can also find out when stars were created by passing the following custom media type via the Accept
header:
octokit.activity.listStargazersForRepo({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists repositories the authenticated user is watching.
octokit.activity.listWatchedReposForAuthenticatedUser();
name | required | description |
---|---|---|
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Lists the people watching the specified repository.
octokit.activity.listWatchersForRepo({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
per_page | no | Results per page (max 100) |
page | no | Page number of the results to fetch. |
See also: GitHub Developer Guide documentation.
Marks all notifications as "read" removes it from the default view on GitHub. If the number of notifications is too large to complete in one request, you will receive a 202 Accepted
status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the List notifications for the authenticated user endpoint and pass the query parameter all=false
.
octokit.activity.markNotificationsAsRead();
name | required | description |
---|---|---|
last_read_at | no | Describes the last point that notifications were checked. |
read | no | Whether the notification has been read. |
See also: GitHub Developer Guide documentation.
Marks all notifications in a repository as "read" removes them from the default view on GitHub. If the number of notifications is too large to complete in one request, you will receive a 202 Accepted
status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the List repository notifications for the authenticated user endpoint and pass the query parameter all=false
.
octokit.activity.markRepoNotificationsAsRead({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
last_read_at | no | Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in ISO 8601 format: |
See also: GitHub Developer Guide documentation.
octokit.activity.markThreadAsRead({thread_id,});
name | required | description |
---|---|---|
thread_id | yes | thread_id parameter |
See also: GitHub Developer Guide documentation.
If you would like to watch a repository, set subscribed
to true
. If you would like to ignore notifications made within a repository, set ignored
to true
. If you would like to stop watching a repository, delete the repository's subscription completely.
octokit.activity.setRepoSubscription({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes | |
subscribed | no | Determines if notifications should be received from this repository. |
ignored | no | Determines if all notifications should be blocked from this repository. |
See also: GitHub Developer Guide documentation.
If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an @mention.
You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored.
Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the Delete a thread subscription endpoint.
octokit.activity.setThreadSubscription({thread_id,});
name | required | description |
---|---|---|
thread_id | yes | thread_id parameter |
ignored | no | Whether to block all notifications from a thread. |
See also: GitHub Developer Guide documentation.
Note that you'll need to set Content-Length
to zero when calling out to this endpoint. For more information, see "HTTP verbs."
octokit.activity.starRepoForAuthenticatedUser({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.
octokit.activity.unstarRepoForAuthenticatedUser({owner,repo,});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.