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.

Commit7594225

Browse files
committed
Merge pull request#802 from github/update-1434047737
2 parents7a0ce8d +02b46de commit7594225

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
kind:change
3+
title:GitHub Pages' A Records Added to Meta API
4+
created_at:2015-06-11
5+
author_name:leereilly
6+
---
7+
8+
The[Meta API](/v3/meta/) now includes the A record IP addresses for[GitHub Pages](https://pages.github.com/).
9+
10+
<preclass="terminal">
11+
$ curl https://api.github.com/meta
12+
</pre>
13+
14+
<pre><codeclass="language-javascript">
15+
{
16+
"verifiable_password_authentication": true,
17+
"github_services_sha": "23c6105183b626cf74c045f6d53af7a178bfdb4c",
18+
"hooks": [
19+
"192.30.252.0/22"
20+
],
21+
"git": [
22+
"192.30.252.0/22"
23+
],
24+
"pages": [
25+
"192.30.252.153/32",
26+
"192.30.252.154/32"
27+
]
28+
}
29+
</code></pre>
30+
31+
These IP addresses are used to[configure A records with your DNS provider for GitHub Pages](https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/). These addresses have changed a few times in the past. This API always provides the current addresses so that you can automate the process of keeping your DNS records up to date.
32+
33+
If you have any questions, please[get in touch](https://github.com/contact?form%5Bsubject%5D=GitHub+Pages+A+Records+Added+to+API). We’ll be happy to help.

‎content/v3/meta.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Or, if you access this endpoint on your organization's [GitHub Enterprise](https
1818

1919
Name | Type | Description
2020
-----|------|--------------
21-
`hooks`|`array` of`strings` | An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from on GitHub.com. Subscribe to the[API Changes blog](https://developer.github.com/changes/) or follow[@GitHubAPI](https://twitter.com/GitHubAPI) on Twitter to get updated when this list changes.
22-
`git`|`array` of`strings` | An Array of IP addresses in CIDR format specifying the Git servers for GitHub.com.
2321
`verifiable_password_authentication`|`boolean` | Whether authentication with username and password is supported. (GitHub Enterprise instances using CAS or OAuth for authentication will return`false`. Features like[Basic Authentication with a username and password](/v3/auth/#via-username-and-password),[sudo mode](https://help.github.com/articles/sudo-mode), and[two-factor authentication](https://help.github.com/articles/about-two-factor-authentication) are not supported on these servers.)
2422
`github_services_sha` |`string` | The currently-deployed SHA of[`github-services`](https://github.com/github/github-services).
23+
`hooks`|`array` of`strings` | An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from on GitHub.com. Subscribe to the[API Changes blog](https://developer.github.com/changes/) or follow[@GitHubAPI](https://twitter.com/GitHubAPI) on Twitter to get updated when this list changes.
24+
`git`|`array` of`strings` | An Array of IP addresses in CIDR format specifying the Git servers for GitHub.com.
25+
`pages`|`array` of`strings` | An Array of IP addresses in CIDR format specifying the A records for[GitHub Pages](https://pages.github.com/).

‎lib/resources.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,10 +1847,14 @@ def fetch_content(key)
18471847
}
18481848

18491849
META ||={
1850+
:verifiable_password_authentication=>true,
1851+
:github_services_sha=>"3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
18501852
:hooks=>['127.0.0.1/32'],
18511853
:git=>['127.0.0.1/32'],
1852-
:verifiable_password_authentication=>true,
1853-
:github_services_sha=>"3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15"
1854+
:pages=>[
1855+
"192.30.252.153/32",
1856+
"192.30.252.154/32"
1857+
]
18541858
}
18551859

18561860
BLOB ||={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp