Title: WP Github Recent commit
Author: dholloran
Published: <strong>2013 年 3 月 19 日</strong>
Last modified: 2013 年 5 月 11 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/wp-github-recent-commit.svg)

# WP Github Recent commit

 由 [dholloran](https://profiles.wordpress.org/dholloran/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-github-recent-commit.1.1.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-github-recent-commit/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-github-recent-commit/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-github-recent-commit/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-github-recent-commit/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-github-recent-commit/)

## 外掛說明

Widget that grabs a random Octocat from the GitHub octodex and the latest commit
from the master branch of a public GitHub repository. It can be used as a normal
widget by going to Apperance > Widgets, by adding the shortcode `[wpgrc username
="username"]` in your post editor, or by adding `<?php wpgrc( array( 'username' 
=> 'username' ); ?>`. You can checkout a live demo of all three [here][demo](http://demo.danholloran.com/github-commit-widget-demo/)
and get more information about all three under the installation tab. **Plugin Home
Page:** [http://dholloran.github.com/wp-github-recent-commit/](http://dholloran.github.com/wp-github-recent-commit/)

If you have any issues please submit an [issue](https://github.com/DHolloran/wp-github-recent-commit/issues/new)
or fix it/submit a pull request I will try to handle it ASAP. You an also contact
me at [support@danholloran.com](https://tw.wordpress.org/plugins/wp-github-recent-commit/support@danholloran.com?output_format=md).

## 螢幕擷圖

[⌊screenshot1.png⌉⌊screenshot1.png⌉[

screenshot1.png

[⌊screenshot2.png⌉⌊screenshot2.png⌉[

screenshot2.png

## 安裝方式

 1. Upload `wp-github-recent-commit` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

**Using the widget** 1. Go to Appearance > Widgets drag the WP Github Recent Commit
widget to the sidebar area of your choice 2. Fill in your GitHub username and set
the rest of the options

**Using the function** 1. Place this code in your template file 2. Add a user name
and set any other options if ( function_exists(‘wpgrc’) ) { wpgrc( array( ‘id’ =
> “1”, // optional, used for caching purposes ‘username’ => ”, // required, it just
won’t work with out it ‘repository’ => “”, // optional, if not it will just be the
last commit from all repos for the username ‘refresh_interval’ => “0.5”, // optional
default 0.5hrs aka 30min ‘show_octocat’ => “true”, // optional boolean default true‘
octocat_width’ => “100”, // optional int default 100 ‘octocat_height’ => “100”, //
optional int default 100 ‘commit_count’ => “1”, // optional int default 1 ‘show_avatar’
=> false // optional boolean default false ) ); }

**Using the shortcode** 1. Place in your admin editor `[wpgrc id="1" username=""
repository="" refresh_interval="0.5" show_octocat="true" octocat_width="100" octocat_height
="100" commit_count="1" show_avatar="false"]` 2. Add a user name and set any other
options

## 常見問題集

None so far… If you have any issues please submit an [issue](https://github.com/DHolloran/wp-github-recent-commit/issues/new)
or fix it/submit a pull request I will try to handle it ASAP. You an also contact
me at [support@danholloran.com](https://tw.wordpress.org/plugins/wp-github-recent-commit/support@danholloran.com?output_format=md).

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈WP Github Recent commit〉的開發相關工作。

參與者

 *   [ dholloran ](https://profiles.wordpress.org/dholloran/)

[將〈WP Github Recent commit〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-github-recent-commit)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-github-recent-commit/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-github-recent-commit/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/wp-github-recent-commit/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-github-recent-commit/)。

## 變更記錄

#### 1.0

 * Initial Release

#### 1.0.1

 * Fixed issue with the owner Repo link having incorrect link.

#### 1.1.0

 * Added WPGRC shortcode
 * Added WPGRC template function
 * Added cache refresh rate control
 * Added ability to choose one repository to pull commits from

#### 1.1.1

 * Added option for commit authors avatar
 * Added option to show more than one commit

## 中繼資料

 *  版本 **1.1.1**
 *  最後更新 **13 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-github-recent-commit/)
 * 標籤:
 * [commit](https://tw.wordpress.org/plugins/tags/commit/)[Github](https://tw.wordpress.org/plugins/tags/github/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-github-recent-commit/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/wp-github-recent-commit/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-github-recent-commit/reviews/)

## 參與者

 *   [ dholloran ](https://profiles.wordpress.org/dholloran/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-github-recent-commit/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://danholloran.com/)