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.

Sync changes from upstream repository#890

Merged
hubot merged 1 commit intomasterfromupdate-1445879840
Oct 26, 2015
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
1 change: 1 addition & 0 deletionsRules
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,6 +13,7 @@
# Reset search-index by deleting it every time
preprocess do
File.delete("output/search-index.json") if File.exists?("output/search-index.json")
generate_redirects(config[:redirects])
end

compile '/static/*' do
Expand Down
10 changes: 10 additions & 0 deletionsconfig.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,3 +57,13 @@ api_versions:
- 2011-4-27
-
- v3

redirects:
- /changes/2012-9-5-watcher-api/: /changes/2012-09-05-watcher-api/
- /changes/2012-9-28-auto-init-for-repositories/: /changes/2012-09-28-auto-init-for-repositories/
- /changes/2013-2-5-changes-to-services/: /changes/2013-02-05-changes-to-services/
- /changes/2013-2-13-hookshot-issues/: /changes/2013-02-13-hookshot-issues/
- /changes/2013-2-13-hookshot-load-balancer/: /changes/2013-02-13-hookshot-load-balancer/
- /changes/2013-2-13-sortable-stars/: /changes/2013-02-14-sortable-stars/
- /changes/2013-3-1-new-hookshot-coming/: /changes/2013-03-01-new-hookshot-coming/
- /changes/2014-2-10-ping-event-for-webhooks/: /changes/2014-02-10-ping-event-for-webhooks/
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: Upcoming Changes to Watcher and Star APIs
created_at: 2012-9-5
created_at: 2012-09-05
author_name: technoweenie
---

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: Initialize a repository when creating
created_at: 2012-9-28
created_at: 2012-09-28
author_name: pengwynn
---

Expand DownExpand Up@@ -45,4 +45,3 @@
[twitter]: https://twitter.com/githubapi
[email]: mailto:support@github.com
[c]: https://github.com/c

2 changes: 1 addition & 1 deletioncontent/changes/2012-11-29-gitignore-templates.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -54,7 +54,7 @@
DerivedData
.idea/

[init-post]: /changes/2012-9-28-auto-init-for-repositories/
[init-post]: /changes/2012-09-28-auto-init-for-repositories/
[repo-create]: /v3/repos/#create
[templates-repo]: https://github.com/github/gitignore
[new-api]: /v3/gitignore/
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: Upcoming Changes to GitHub Services
created_at: 2013-2-5
created_at: 2013-02-05
author_name: technoweenie
---

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: Some Hookshot Issues
created_at: 2013-2-13T11:00:00
created_at: 2013-02-13T11:00:00
author_name: technoweenie
---

Expand All@@ -17,4 +17,3 @@

We're currently working on solving this problem. Hit up [support@github.com](mailto:support@github.com)
if you have any questions.

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: Hookshot Load balancer
created_at: 2013-2-13T12:00:00
created_at: 2013-02-13T12:00:00
author_name: technoweenie
---

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: Sortable Stars in Repository Starring API
created_at: 2013-2-14
created_at: 2013-02-14
author_name: pengwynn
---

Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
---
kind: change
title: New Hookshot Changes
created_at: 2013-3-1
created_at: 2013-03-01
author_name: technoweenie
---

Expand All@@ -22,4 +22,3 @@

This also means we should be able to start accepting [GitHub Services pull
requests](https://github.com/github/github-services/pulls) very soon :)

2 changes: 1 addition & 1 deletioncontent/v3/activity/events/types.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -519,7 +519,7 @@ Key | Type | Description
## WatchEvent

The WatchEvent is related to [starring a repository](/v3/activity/starring/#star-a-repository), not [watching](/v3/activity/watching/).
See [this API blog post](/changes/2012-9-5-watcher-api/) for an explanation.
See [this API blog post](/changes/2012-09-05-watcher-api/) for an explanation.

The event’s actor is the [user](/v3/users/) who starred a repository, and the
event’s repository is the [repository](/v3/repos/) that was starred.
Expand Down
2 changes: 1 addition & 1 deletioncontent/v3/activity/starring.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,7 +18,7 @@ In August 2012, we [changed the way watching
works](https://github.com/blog/1204-notifications-stars) on GitHub. Many API
client applications may be using the original "watcher" endpoints for accessing
this data. You can now start using the "star" endpoints instead (described
below). Check out the [Watcher API Change post](/changes/2012-9-5-watcher-api/)
below). Check out the [Watcher API Change post](/changes/2012-09-05-watcher-api/)
for more details.

## List Stargazers
Expand Down
2 changes: 1 addition & 1 deletioncontent/v3/activity/watching.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,7 @@ legacy "watcher" endpoints continue to provide starring data.

To provide access to watching data, the v3 Watcher API uses the "subscription"
endpoints described below. Check out the [Watcher API Change
post](/changes/2012-9-5-watcher-api/) for more details.
post](/changes/2012-09-05-watcher-api/) for more details.

## List watchers

Expand Down
8 changes: 8 additions & 0 deletionslayouts/redirect.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Redirecting...</title>
<link rel=canonical href="<%= @new_url %>">
<meta http-equiv=refresh content="0; url=<%= @new_url %>">
<h1>Redirecting...</h1>
<a href="<%= @new_url %>">Click here if you are not redirected.</a>
<script>location='<%= @new_url %>'</script>
17 changes: 17 additions & 0 deletionslib/redirect_generator.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
module RedirectGenerator
def generate_redirects(redirects)
redirects.each do |pairs|
pairs.each_pair do |old_url, new_url|
@items << Nanoc::Item.new(
"<%= render 'redirect',
{ :new_url => '#{new_url}' }
%>",
{},
old_url.to_s
)
end
end
end
end

include RedirectGenerator
1 change: 1 addition & 0 deletionslib/resources.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,6 +35,7 @@ def post_date(item)
end

def strftime(time, format = DefaultTimeFormat)
return "" if time.nil?
attribute_to_time(time).strftime(format)
end

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp