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
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: content/v3/gists.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ The keys in the `files` object are the `string` filename. The value is another `
119
119
120
120
<divclass="alert">
121
121
<p>
122
-
<strong>Note</strong>: All files from the previous version of the gist are carried over by default if not included in thehash. Deletes can be performed by including the filename with a <code>null</code>hash.
122
+
<strong>Note</strong>: All files from the previous version of the gist are carried over by default if not included in theobject. Deletes can be performed by including the filename with a <code>null</code>object.
Copy file name to clipboardExpand all lines: content/v3/git/trees.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ a new tree out.
51
51
52
52
Name | Type | Description
53
53
-----|------|--------------
54
-
`tree`|`array` of`hash`es |**Required**. Objects (of`path`,`mode`,`type`, and`sha`) specifying a tree structure
54
+
`tree`|`array` of`object`s |**Required**. Objects (of`path`,`mode`,`type`, and`sha`) specifying a tree structure
55
55
`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.
Copy file name to clipboardExpand all lines: content/v3/repos/contents.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ In the next major version of the API, the type will be returned as "submodule".
69
69
70
70
If the requested`:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the[format shown above](#response-if-content-is-a-file)).
71
71
72
-
Otherwise, the API responds witha hash describing the symlink itself:
72
+
Otherwise, the API responds withan object describing the symlink itself:
73
73
74
74
<%= headers 200 %>
75
75
<%= json:symlink_content %>
@@ -101,9 +101,9 @@ Name | Type | Description
101
101
102
102
###Optional Parameters
103
103
104
-
You can provide an additional`committer` parameter, which isa hash containing
104
+
You can provide an additional`committer` parameter, which isan object containing
105
105
information about the committer. Or, you can provide an`author` parameter, which
106
-
isa hash containing information about the author.
106
+
isan object containing information about the author.
107
107
108
108
The`author` section is optional and is filled in with the`committer`
109
109
information if omitted. If the`committer` information is omitted, the authenticated
@@ -149,9 +149,9 @@ Name | Type | Description
149
149
150
150
###Optional Parameters
151
151
152
-
You can provide an additional`committer` parameter, which isa hash containing
152
+
You can provide an additional`committer` parameter, which isan object containing
153
153
information about the committer. Or, you can provide an`author` parameter, which
154
-
isa hash containing information about the author.
154
+
isan object containing information about the author.
155
155
156
156
The`author` section is optional and is filled in with the`committer`
157
157
information if omitted. If the`committer` information is omitted, the authenticated
@@ -198,9 +198,9 @@ Name | Type | Description
198
198
199
199
###Optional Parameters
200
200
201
-
You can provide an additional`committer` parameter, which isa hash containing
201
+
You can provide an additional`committer` parameter, which isan object containing
202
202
information about the committer. Or, you can provide an`author` parameter, which
203
-
isa hash containing information about the author.
203
+
isan object containing information about the author.
204
204
205
205
The`author` section is optional and is filled in with the`committer`
206
206
information if omitted. If the`committer` information is omitted, the authenticated
Copy file name to clipboardExpand all lines: content/v3/repos/hooks.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Repositories can have multiple webhooks installed. Each webhook should have a un
44
44
Name | Type | Description
45
45
-----|------|--------------
46
46
`name`|`string` |**Required**. The name of the service that is being called. (See <ahref='https://api.github.com/hooks'data-proofer-ignore>/hooks</a> for the list of valid hook names.)
47
-
`config`|`hash` |**Required**. Key/value pairs to provide settings for this hook. These settings vary between the services and are defined in the[github-services](https://github.com/github/github-services) repository. Booleans are stored internally as "1" for true, and "0" for false. Any JSON`true`/`false` values will be converted automatically.
47
+
`config`|`object` |**Required**. Key/value pairs to provide settings for this hook. These settings vary between the services and are defined in the[github-services](https://github.com/github/github-services) repository. Booleans are stored internally as "1" for true, and "0" for false. Any JSON`true`/`false` values will be converted automatically.
48
48
`events`|`array` | Determines what events the hook is triggered for. Default:`["push"]`
49
49
`active`|`boolean` | Determines whether the hook is actually triggered on pushes.
50
50
@@ -82,7 +82,7 @@ Here's how you can create a hook that posts payloads in JSON format:
82
82
83
83
Name | Type | Description
84
84
-----|------|--------------
85
-
`config`|`hash` | Key/value pairs to provide settings for this hook. Modifying this will replace the entire config object. These settings vary between the services and are defined in the[github-services](https://github.com/github/github-services) repository. Booleans are stored internally as "1" for true, and "0" for false. Any JSON`true`/`false` values will be converted automatically.
85
+
`config`|`object` | Key/value pairs to provide settings for this hook. Modifying this will replace the entire config object. These settings vary between the services and are defined in the[github-services](https://github.com/github/github-services) repository. Booleans are stored internally as "1" for true, and "0" for false. Any JSON`true`/`false` values will be converted automatically.
86
86
`events`|`array` | Determines what events the hook is triggered for. This replaces the entire array of events. Default:`["push"]`
87
87
`add_events`|`array` | Determines a list of events to be added to the list of events that the Hook triggers for.
88
88
`remove_events`|`array` | Determines a list of events to be removed from the list of events that the Hook triggers for.