You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/v3/activity/notifications.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,11 +57,11 @@ List all notifications for the current user, grouped by repository.
57
57
58
58
### Parameters
59
59
60
-
Name | Type | Description | Default
61
-
----|------|--------------|---------
62
-
`all`|`boolean` | If `true`, show notifications marked as read.|`false`
63
-
`participating`|`boolean` | If `true`, only shows notifications in which the user is directly participating or mentioned.|`false`
64
-
`since`|`string` | Filters out any notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.|
60
+
Name | Type | Description
61
+
-----|------|--------------
62
+
`all`|`boolean` | If `true`, show notifications marked as read. Default: `false`
63
+
`participating`|`boolean` | If `true`, only shows notifications in which the user is directly participating or mentioned. Default: `false`
64
+
`since`|`string` | Filters out any notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Default: `Time.now`
65
65
66
66
67
67
### Response
@@ -77,11 +77,11 @@ List all notifications for the current user.
77
77
78
78
### Parameters
79
79
80
-
Name | Type | Description | Default
81
-
----|------|--------------|---------
82
-
`all`|`boolean` | If `true`, show notifications marked as read.|`false`
83
-
`participating`|`boolean` | If `true`, only shows notifications in which the user is directly participating or mentioned.|`false`
84
-
`since`|`string` | Filters out any notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.|
80
+
Name | Type | Description
81
+
-----|------|--------------
82
+
`all`|`boolean` | If `true`, show notifications marked as read. Default: `false`
83
+
`participating`|`boolean` | If `true`, only shows notifications in which the user is directly participating or mentioned. Default: `false`
84
+
`since`|`string` | Filters out any notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Default: `Time.now`
85
85
86
86
87
87
### Response
@@ -98,9 +98,9 @@ on GitHub.com](https://github.com/notifications).
98
98
99
99
### Parameters
100
100
101
-
Name | Type | Description | Default
102
-
----|------|--------------|---------
103
-
`last_read_at`|`string` | Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.| Now.
101
+
Name | Type | Description
102
+
-----|------|--------------
103
+
`last_read_at`|`string` | Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Default: `Time.now`
104
104
105
105
106
106
### Response
@@ -116,9 +116,9 @@ from the [default view on GitHub.com](https://github.com/notifications).
116
116
117
117
### Parameters
118
118
119
-
Name | Type | Description | Default
120
-
----|------|--------------|---------
121
-
`last_read_at`|`string` | Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.|Now.
119
+
Name | Type | Description
120
+
-----|------|--------------
121
+
`last_read_at`|`string` | Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Default: `Time.now`
122
122
123
123
124
124
### Response
@@ -165,10 +165,10 @@ a thread will mute all future notifications (until you comment or get
165
165
166
166
### Parameters
167
167
168
-
Name | Type | Description | Default
169
-
----|------|--------------|---------
170
-
`subscribed`|`boolean`| Determines if notifications should be received from this thread|
171
-
`ignored`|`boolean`| Determines if all notifications should be blocked from this thread|
168
+
Name | Type | Description
169
+
-----|------|--------------
170
+
`subscribed`|`boolean`| Determines if notifications should be received from this thread
171
+
`ignored`|`boolean`| Determines if all notifications should be blocked from this thread
Copy file name to clipboardExpand all lines: content/v3/activity/settings.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@ Update the notification settings for the authenticated user.
19
19
20
20
### Parameters
21
21
22
-
Name | Type | Description | Default
23
-
----|------|--------------|---------
24
-
`participating.email`|`boolean` | `true` to receive participating notifications via email.|
25
-
`participating.web`|`boolean` | `true` to receive participating notifications via web.|
26
-
`watching.email`|`boolean` | `true` to receive watching notifications via email.|
27
-
`watching.web`|`boolean` | `true` to receive watching notifications via web.|
22
+
Name | Type | Description
23
+
-----|------|--------------
24
+
`participating.email`|`boolean` | `true` to receive participating notifications via email.
25
+
`participating.web`|`boolean` | `true` to receive participating notifications via web.
26
+
`watching.email`|`boolean` | `true` to receive watching notifications via email.
27
+
`watching.web`|`boolean` | `true` to receive watching notifications via web.
28
28
29
29
#### Example
30
30
@@ -54,9 +54,9 @@ Name | Type | Description | Default
54
54
55
55
### Parameters
56
56
57
-
Name | Type | Description | Default
58
-
----|------|--------------|---------
59
-
`email`|`string` | **Required**. Email address to where notifications to the authenticated user fare sent or discussions related to projects for this organization.|
57
+
Name | Type | Description
58
+
-----|------|--------------
59
+
`email`|`string` | **Required**. Email address to where notifications to the authenticated user fare sent or discussions related to projects for this organization.
60
60
61
61
62
62
## Update Organization email settings
@@ -67,8 +67,8 @@ Update the notification settings for the authenticated user.
67
67
68
68
### Parameters
69
69
70
-
Name | Type | Description | Default
71
-
----|------|--------------|---------
72
-
`email`|`string` | **Required**. Email address to where notifications to the authenticated user are sent for discussions related to projects for this organization.|
70
+
Name | Type | Description
71
+
-----|------|--------------
72
+
`email`|`string` | **Required**. Email address to where notifications to the authenticated user are sent for discussions related to projects for this organization.
Copy file name to clipboardExpand all lines: content/v3/gists.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,9 @@ List the authenticated user's starred gists:
36
36
37
37
### Parameters
38
38
39
-
Name | Type | Description | Default
40
-
----|------|--------------|---------
41
-
`since`|`string` | A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.|
39
+
Name | Type | Description
40
+
-----|------|--------------
41
+
`since`|`string` | A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned.
42
42
43
43
### Response
44
44
@@ -62,11 +62,11 @@ _Note_: When using the [v3 media type][2] the "user" field will become "owner"
62
62
63
63
### Input
64
64
65
-
Name | Type | Description | Default
66
-
----|------|--------------|---------
67
-
`files`|`hash` | **Required**. Files that make up this gist.|
68
-
`description`|`string` | A description of the gist.|
69
-
`public`|`boolean` | Indicates whether the gist is public. |`false`
65
+
Name | Type | Description
66
+
-----|------|--------------
67
+
`files`|`hash` | **Required**. Files that make up this gist.
68
+
`description`|`string` | A description of the gist.
69
+
`public`|`boolean` | Indicates whether the gist is public. Default: `false`
70
70
71
71
The keys in the `files` hash are the `string` filename, and the value is another `hash` with a key of `content`, and a value of the file contents. For example:
72
72
@@ -92,12 +92,12 @@ format of the automatic naming scheme that Gist uses internally.
92
92
93
93
### Input
94
94
95
-
Name | Type | Description | Default
96
-
----|------|--------------|---------
97
-
`description`|`string` | A description of the gist.|
98
-
`files`|`hash` | Files that make up this gist.|
99
-
`content`|`string` | Updated file contents.|
100
-
`filename`|`string` | New name for this file.|
95
+
Name | Type | Description
96
+
-----|------|--------------
97
+
`description`|`string` | A description of the gist.
98
+
`files`|`hash` | Files that make up this gist.
99
+
`content`|`string` | Updated file contents.
100
+
`filename`|`string` | New name for this file.
101
101
102
102
The keys in the `files` hash are the `string` filename. The value is another `hash` with a key of `content` (indicating the new contents), or `filename` (indicating the new filename). For example:
Copy file name to clipboardExpand all lines: content/v3/git/commits.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,11 @@ title: Git Commits | GitHub API
22
22
23
23
### Parameters
24
24
25
-
Name | Type | Description | Default
26
-
----|------|--------------|---------
27
-
`message`|`string` | **Required**. The commit message|
28
-
`tree`|`string` | **Required**. The SHA of the tree object this commit points to|
29
-
`parents`|`array` of `string`s| **Required**. The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.|
25
+
Name | Type | Description
26
+
-----|------|--------------
27
+
`message`|`string` | **Required**. The commit message
28
+
`tree`|`string` | **Required**. The SHA of the tree object this commit points to
29
+
`parents`|`array` of `string`s| **Required**. The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
30
30
31
31
32
32
### Optional Parameters
@@ -41,11 +41,11 @@ in with the authenticated user's information and the current date.
41
41
42
42
Both the `author` and `commiter` parameters have the same keys:
43
43
44
-
Name | Type | Description | Default
45
-
-----|------|-------------|---------
46
-
`name`|`string` | The name of the author (or commiter) of the commit|
47
-
`email`|`string` | The email of the author (or commiter) of the commit|
48
-
`date`|`string` | Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.|
44
+
Name | Type | Description
45
+
-----|------|-------------
46
+
`name`|`string` | The name of the author (or commiter) of the commit
47
+
`email`|`string` | The email of the author (or commiter) of the commit
48
+
`date`|`string` | Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
Copy file name to clipboardExpand all lines: content/v3/git/refs.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,10 @@ For a full refs listing, you'll get something that looks like:
46
46
47
47
### Parameters
48
48
49
-
Name | Type | Description | Default
50
-
----|------|--------------|---------
51
-
`ref`|`type`| The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.|
52
-
`sha`|`type`| The SHA1 value to set this reference to|
49
+
Name | Type | Description
50
+
-----|------|--------------
51
+
`ref`|`type`| The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.
52
+
`sha`|`type`| The SHA1 value to set this reference to
53
53
54
54
55
55
### Input
@@ -68,10 +68,10 @@ Name | Type | Description | Default
68
68
69
69
### Parameters
70
70
71
-
Name | Type | Description | Default
72
-
----|------|--------------|---------
73
-
`sha`|`type`| The SHA1 value to set this reference to|
74
-
`force`|`boolean`| Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.|`false`
71
+
Name | Type | Description
72
+
-----|------|--------------
73
+
`sha`|`type`| The SHA1 value to set this reference to
74
+
`force`|`boolean`| Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work. Default: `false`
Copy file name to clipboardExpand all lines: content/v3/git/trees.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,20 +36,20 @@ a new tree out.
36
36
37
37
### Parameters
38
38
39
-
Name | Type | Description | Default
40
-
----|------|--------------|---------
41
-
`tree`|`array` of `hash`es | **Required**. Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure|
42
-
`base_tree`| `string` | The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.|
39
+
Name | Type | Description
40
+
-----|------|--------------
41
+
`tree`|`array` of `hash`es | **Required**. Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure
42
+
`base_tree`| `string` | The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.
43
43
44
44
The `tree` parameter takes the following keys:
45
45
46
-
Name | Type | Description | Default
47
-
----|------|--------------|---------
48
-
`path`|`string`| The file referenced in the tree|
49
-
`mode`|`string`| The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink|
50
-
`type`| `string`| Either `blob`, `tree`, or `commit`|
51
-
`sha`|`string`| The SHA1 checksum ID of the object in the tree|
52
-
`content`|`string` | The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`.|
46
+
Name | Type | Description
47
+
-----|------|--------------
48
+
`path`|`string`| The file referenced in the tree
49
+
`mode`|`string`| The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink
50
+
`type`| `string`| Either `blob`, `tree`, or `commit`
51
+
`sha`|`string`| The SHA1 checksum ID of the object in the tree
52
+
`content`|`string` | The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`.
0 commit comments