Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50549fb

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parentb0e9b96 commit50549fb

File tree

8 files changed

+11
-50
lines changed

8 files changed

+11
-50
lines changed

‎content/changes/2013-02-05-changes-to-services.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
core Services backend for everyone. Maintaining custom logic and libraries for
2929
over 100 services is taking too much of this focus away.
3030

31-
[codeclimate]: https://github.com/github/github-services/blob/master/lib/services/codeclimate.rb
32-
[cf]: https://github.com/github/github-services/blob/master/lib/services/campfire.rb
31+
[codeclimate]: https://github.com/github/github-services/blob/fbc0db24b8b7685b2058462181d928a5f2a0a448/lib/services/codeclimate.rb
32+
[cf]: https://github.com/github/github-services/blob/fbc0db24b8b7685b2058462181d928a5f2a0a448/lib/services/campfire.rb

‎content/guides/building-a-ci-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ At GitHub, we:
158158

159159
All of this communication is funneled back to our chat rooms. You don't need to
160160
build your own CI setup to use this example.
161-
You can always rely on[third-party services][integrations].
161+
You can always rely on[GitHub integrations][integrations].
162162

163163
[deploy API]:/v3/repos/deployments/
164164
[status API]:/v3/repos/statuses/

‎content/guides/delivering-deployments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ server we've built above. At GitHub, we:
175175
* In the meantime, Heaven also notifies everyone about the build, via[Hubot][hubot] sitting in our chat rooms
176176

177177
That's it! You don't need to build your own deployment setup to use this example.
178-
You can always rely on[third-party services][integrations].
178+
You can always rely on[GitHub integrations][integrations].
179179

180180
[deploy API]:/v3/repos/deployments/
181181
[status API]:/guides/building-a-ci-server

‎content/v3/orgs/hooks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ Name | Description
161161

162162

163163
[guid]:http://en.wikipedia.org/wiki/Globally_unique_identifier
164-
[hub-signature]:https://github.com/github/github-services/blob/f3bb3dd780feb6318c42b2db064ed6d481b70a1f/lib/service/http_helper.rb#L77
165164
[ping-event-url]:/webhooks/#ping-event
166165
[webhook-events]:/webhooks/#events
167166
[event-types]:/v3/activity/events/types/

‎content/v3/repos/deployments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Below is a simple sequence diagram for how these interactions would work.
5959

6060
Keep in mind that GitHub is never actually accessing your servers. It's up to
6161
your 3rd party integration to interact with deployment events. This allows for
62-
[github-services](https://github.com/github/github-services)integrations as
62+
[GitHub integrations](https://github.com/integrations) as
6363
well as running your own systems depending on your use case. Multiple systems
6464
can listen for deployment events, and it's up to each of those systems to
6565
decide whether or not they're responsible for pushing the code out to your

‎content/v3/repos/hooks.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ Repositories can have multiple webhooks installed. Each webhook should have a un
4343
Name | Type | Description
4444
-----|------|--------------
4545
`name`|`string` |**Required**. Use`web` for a webhook or use the name of a valid service. (See <ahref='https://api.github.com/hooks'data-proofer-ignore>/hooks</a> for the list of valid service names.)
46-
`config`|`object` |**Required**. Key/value pairs to provide settings for this hook. These settings vary betweenthe servicesand 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.
46+
`config`|`object` |**Required**. Key/value pairs to provide settings for this hook. These settings vary betweenhooksand some 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.
4747
`events`|`array` | Determines what events the hook is triggered for. Default:`["push"]`
4848
`active`|`boolean` | Determines whether the hook is actually triggered on pushes.
4949

5050
####Example
5151

52-
To create[a webhook](/webhooks),[the following fields are required](https://github.com/github/github-services/blob/master/lib/services/web.rb#L4-11) by the`config`:
52+
To create[a webhook](/webhooks), the following fields are required by the`config`:
5353

5454
*`url`: A required string defining the URL to which the payloads will be delivered.
5555
*`content_type`: An optional string defining the media type used to serialize the payloads. Supported values include`json` and`form`. The default is`form`.
56-
*`secret`: An optional string that's passed with the HTTP requests as an`X-Hub-Signature` header. The value of this header is computed as the[HMAC hex digest of the body, using the`secret` as the key][hub-signature].
56+
*`secret`: An optional string that's passed with the HTTP requests as an`X-Hub-Signature` header. The value of this header is computed as the HMAC hex digest of the body, using the`secret` as the key.
5757
*`insecure_ssl`: An optional string that determines whether the SSL certificate of the host for`url` will be verified when delivering payloads. Supported values include`"0"` (verification is performed) and`"1"` (verification is not performed). The default is`"0"`.
5858

5959
Here's how you can create a hook that posts payloads in JSON format:
@@ -80,7 +80,7 @@ Here's how you can create a hook that posts payloads in JSON format:
8080

8181
Name | Type | Description
8282
-----|------|--------------
83-
`config`|`object` | Key/value pairs to provide settings for this hook. Modifying this will replace the entire config object. These settings vary betweenthe servicesand 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.
83+
`config`|`object` | Key/value pairs to provide settings for this hook. Modifying this will replace the entire config object. These settings vary betweenhooksand some 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.
8484
`events`|`array` | Determines what events the hook is triggered for. This replaces the entire array of events. Default:`["push"]`
8585
`add_events`|`array` | Determines a list of events to be added to the list of events that the Hook triggers for.
8686
`remove_events`|`array` | Determines a list of events to be removed from the list of events that the Hook triggers for.
@@ -205,14 +205,12 @@ Name | Type | Description
205205
``hub.mode``|`string` |**Required**. Either`subscribe` or`unsubscribe`.
206206
``hub.topic``|`string` |**Required**. The URI of the GitHub repository to subscribe to. The path must be in the format of`/:owner/:repo/events/:event`.
207207
``hub.callback``|`string` | The URI to receive the updates to the topic.
208-
``hub.secret``|`string` | A shared secret key that generates a SHA1 HMAC of the outgoing body content. You can verify a push came from GitHub by comparing the raw request body with the contents of the`X-Hub-Signature` header. You can see[our Ruby implementation][ruby-secret], or[the PubSubHubbub documentation][pshb-secret] for more details.
208+
``hub.secret``|`string` | A shared secret key that generates a SHA1 HMAC of the outgoing body content. You can verify a push came from GitHub by comparing the raw request body with the contents of the`X-Hub-Signature` header. You can see[the PubSubHubbub documentation][pshb-secret] for more details.
209209

210210

211211
[guid]:http://en.wikipedia.org/wiki/Globally_unique_identifier
212212
[pubsub]:https://github.com/pubsubhubbub/PubSubHubbub
213213
[post-receive]:http://help.github.com/post-receive-hooks/
214-
[ruby-secret]:https://github.com/github/github-services/blob/14f4da01ce29bc6a02427a9fbf37b08b141e81d9/lib/services/web.rb#L47-L50
215-
[hub-signature]:https://github.com/github/github-services/blob/f3bb3dd780feb6318c42b2db064ed6d481b70a1f/lib/service/http_helper.rb#L77
216214
[pshb-secret]:https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html#authednotify
217215
[events-url]:/webhooks/#events
218216
[ping-event-url]:/webhooks/#ping-event

‎content/webhooks/index.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -154,42 +154,10 @@ zen | Random string of GitHub zen |
154154
hook_id | The ID of the webhook that triggered the ping |
155155
hook | The[webhook configuration][repo-hooks-show] |
156156

157-
158-
##Service Hooks
159-
160-
In addition to webhooks, we also offer the ability to install pre-rolled
161-
integrations for a variety of existing services. These services[are contributed
162-
and maintained by the Open Source community][github-services].
163-
164-
Service hooks are installed and configured in a similar fashion as webhooks.
165-
When[creating a hook][webhooks-guide-create], just set the`:name` parameter to
166-
a service name instead of "web" (for webhook). The main differences to keep in
167-
mind between webhooks and service hooks are:
168-
169-
- Service hooks cannot be installed on organizations, only repositories.
170-
- You can only install a one service per integrator for a repository, whereas
171-
multiple webhooks can be installed on each organization/repository.
172-
- Each service hook only supports a specific set of events, depending on the
173-
services implementation.
174-
- Each service has its own unique set of configuration options.
175-
176-
To see a full list of available services, their supported events, and
177-
configuration options, check out <a href='https://api.github.com/hooks'
178-
data-proofer-ignore>https://api.github.com/hooks</a>. Documentation for all
179-
service hooks can be found in the[docs directory][github-services-docs] of the
180-
github-services repository.
181-
182-
**Note:** If you are building a new integration, you should build it as webhook.
183-
We suggest creating an[OAuth application][oauth-applications] to automatically
184-
install and manage your users' webhooks. We will no longer be accepting new
185-
services to the[github-services repository][github-services].
186-
187-
188157
[service-hooks-section]:#service-hooks
189158
[events-section]:#events
190159
[wildcard-section]:#wildcard-event
191160
[payloads-section]:#payloads
192-
[webhooks-guide-create]:/webhooks/creating/
193161
[org-hooks]:/v3/orgs/hooks/
194162
[repo-hooks]:/v3/repos/hooks/
195163
[repo-hooks-show]:/v3/repos/hooks/#get-single-hook
@@ -218,6 +186,3 @@ services to the [github-services repository][github-services].
218186
[event-types-status]:/v3/activity/events/types/#statusevent
219187
[event-types-team_add]:/v3/activity/events/types/#teamaddevent
220188
[event-types-watch]:/v3/activity/events/types/#watchevent
221-
[github-services]:https://github.com/github/github-services
222-
[github-services-docs]:https://github.com/github/github-services/tree/master/docs
223-
[oauth-applications]:/v3/oauth/

‎content/webhooks/securing.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ export SECRET_TOKEN=<em>your_token</em>
3131

3232
##Validating payloads from GitHub
3333

34-
When your secret token is set, GitHub uses it to create a hash signature with each payload. You can find details on the implementation[in our Ruby implementation][ruby-secret].
34+
When your secret token is set, GitHub uses it to create a hash signature with each payload.
3535

3636
This hash signature is passed along with each request in the headers as`X-Hub-Signature`. Suppose you have a basic server listening to webhooks that looks like this:
3737

@@ -68,5 +68,4 @@ Obviously, your language and server implementations may differ than this code. T
6868

6969
* Using a plain`==` operator is**not advised**. A method like[`secure_compare`][secure_compare] performs a "constant time" string comparison, which renders it safe from certain timing attacks against regular equality operators.
7070

71-
[ruby-secret]:https://github.com/github/github-services/blob/14f4da01ce29bc6a02427a9fbf37b08b141e81d9/lib/services/web.rb#L47-L50
7271
[secure_compare]:http://rubydoc.info/github/rack/rack/master/Rack/Utils.secure_compare

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp