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
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Add page build event documentation and post#452

Merged
benbalter merged 1 commit intomasterfrompage-build-event
Mar 12, 2014
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletionscontent/changes/2014-03-12-page-build-event-for-webhooks.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
---
kind: change
title: Page Build Event for Webhooks
created_at: 2014-3-12
author_name: benbalter
---

We've made it even easier to track the status of your [GitHub Pages](http://pages.github.com/) builds. By subscribing to the new [`page_build`](/v3/activity/events/types/#pagebuildevent) event, your application will receive an event payload containing the results of each build. (As always, these builds occur automatically following each push to a GitHub Pages-enabled branch.)

If you have a [webhook](/webhooks/) with the ["send me everything" option](https://github.com/blog/1778-webhooks-level-up) selected (or if you use the "[wildcard event](/changes/2014-02-24-wildcard-event-for-webhooks/)" via the API), you will receive the `page_build` event after the next build of your GitHub Pages site. Alternatively, if you prefer to subscribe to specific event types, you can add to the new `page_build` event to your webhooks via your repository's webhook settings page or via the [webhooks API](/v3/repos/hooks/).

For more information, be sure to check out our guide on [working with webhooks](/webhooks/). If you have any questions or feedback, please [drop us a line][contact].

[contact]: https://github.com/contact?form%5Bsubject%5D=API+Page+Build+Event
16 changes: 16 additions & 0 deletionscontent/v3/activity/events/types.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -405,3 +405,19 @@ event’s repository is the [repository](/v3/repos/) that was starred.
Key | Type | Description
----|------|-------------
`action`|`string` | The action that was performed. Currently, can only be `started`.

## PageBuildEvent

Represents an attempted build of a GitHub Pages site, whether successful or not.

Triggered on push to a GitHub Pages enabled branch (`gh-pages` for project pages, `master` for user and organization pages).

### Hook Name

`page_build`

### Payload

Key | Type | Description
----|------|------------
`build` | `object` | The [page build](http://developer.github.com/v3/repos/pages/#list-pages-builds) itself.
2 changes: 1 addition & 1 deletioncontent/webhooks/index.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -77,9 +77,9 @@ Name | Description
`status` | Any time a Repository has a status update from the API
`deployment` | Any time a Repository has a new deployment created from the API.
`deployment_status` | Any time a deployment for the Repository has a status update from the API.
`page_build` | Any time a Pages site is built or results in a failed build.
`*` | Any time any event is triggered ([Wildcard Event](#wildcard-event)).


### Payloads

The payloads for all hooks mirror [the payloads for the Event
Expand Down
1 change: 1 addition & 0 deletionslib/resources.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,7 @@ module Helpers
:izuzak => 'ff743b4cba28cc47ad65cb90212c1e51',
:spicycode => '7ce90d712fab09421b7f2cf955b9a4c8',
:dbussink => 'b012094b37ab6946c44eaa41d7828478',
:benbalter => '19d03ecc1ff5da1a5e63a3ddaa2d84c2',
}

DefaultTimeFormat = "%B %-d, %Y".freeze
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp