mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
Sync updated at from repo too
This commit is contained in:
@@ -7,6 +7,7 @@ screenshots:
|
||||
stars: 20
|
||||
author: bkeepers
|
||||
repository: probot/dco
|
||||
updated: 2017-08-18 21:51:05 UTC
|
||||
---
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ screenshots:
|
||||
stars: 2
|
||||
author: hiimbex
|
||||
repository: behaviorbot/request-info
|
||||
updated: 2017-08-15 15:27:53 UTC
|
||||
---
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ screenshots:
|
||||
stars: 5
|
||||
author: hiimbex
|
||||
repository: behaviorbot/sentiment-bot
|
||||
updated: 2017-08-17 17:44:08 UTC
|
||||
---
|
||||
|
||||
Replies to toxic comments with a maintainer designated reply and a link to the repo's code of conduct. It does so by taking data from a `.github/config.yml`.
|
||||
|
||||
@@ -7,6 +7,7 @@ author: bkeepers
|
||||
repository: probot/settings
|
||||
screenshots:
|
||||
- https://user-images.githubusercontent.com/173/29472917-3fad9db0-841b-11e7-8f6d-a6c63052122b.png
|
||||
updated: 2017-08-09 13:32:07 UTC
|
||||
---
|
||||
|
||||
This GitHub App syncs repository settings defined in `.github/settings.yml` to GitHub, enabling Pull Requests for repository settings.
|
||||
|
||||
@@ -6,8 +6,9 @@ screenshots:
|
||||
- https://user-images.githubusercontent.com/173/27765695-4c016050-5e7e-11e7-9016-c2f6d8c27da4.png
|
||||
- https://user-images.githubusercontent.com/173/27765705-93f94940-5e7e-11e7-8527-3a91bb64ca70.png
|
||||
author: bkeepers
|
||||
stars: 128
|
||||
stars: 129
|
||||
repository: probot/stale
|
||||
updated: 2017-08-19 12:25:30 UTC
|
||||
---
|
||||
|
||||
Automatically close stale Issues and Pull Requests that tend to accumulate during a project.
|
||||
|
||||
@@ -7,6 +7,7 @@ screenshots:
|
||||
stars: 1
|
||||
author: hiimbex
|
||||
repository: behaviorbot/update-docs
|
||||
updated: 2017-08-15 15:27:36 UTC
|
||||
---
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ screenshots:
|
||||
stars: 5
|
||||
author: hiimbex
|
||||
repository: behaviorbot/welcome
|
||||
updated: 2017-08-18 22:42:37 UTC
|
||||
---
|
||||
|
||||
|
||||
|
||||
@@ -46,9 +46,6 @@ layout: default
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-column col-3">
|
||||
<h4 class="mb-1 alt-h4 text-gray">Updated</h4>
|
||||
<p><span class="text-white">June 12, 2017</p>
|
||||
|
||||
<h4 class="mb-1 alt-h4 text-gray">Repository</h4>
|
||||
<p>
|
||||
<a class="text-inherit" href="https://github.com/{{ page.repository }}">{{ page.repository }}</a>
|
||||
@@ -57,6 +54,8 @@ layout: default
|
||||
<p>
|
||||
<a class="text-inherit" href="https://github.com/{{ page.author }}">{{ page.author }}</a>
|
||||
</p>
|
||||
<h4 class="mb-1 alt-h4 text-gray">Updated</h4>
|
||||
<p><span class="text-white">{{ page.updated | date: "%B %e, %Y"}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# Sync star counts from GitHub
|
||||
# Sync data for apps from GitHub
|
||||
|
||||
require 'open-uri'
|
||||
|
||||
@@ -17,6 +17,7 @@ site.collections["apps"].docs.each do |app|
|
||||
|
||||
content = File.read(app.path)
|
||||
content.sub!(/^stars: \d+$/, "stars: #{repo[:stargazers_count]}")
|
||||
content.sub!(/^updated:.*$/, "updated: #{repo[:pushed_at]}")
|
||||
|
||||
if app['host']
|
||||
stats = JSON.parse(URI(app['host'] + '/stats').open.read)
|
||||
Reference in New Issue
Block a user