이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

WP GitHub Tools

설명

Use the custom GitHub Commit widget to display a list of the latest updates from a repository. Additionally, you can use shortcodes to add commit lists or embed any gist.
The plugin will cache the GitHub response for a certain time period. You can change this value to any wordpress schedules you have isntalled (default: hourly, half-day, daily). To get more time frames you will need an additional plugin that extends the cron schedules.

Shortcodes

[gist id=’gist_id‘ ]

Embeds a gist in your post. Parameters:

  • id (required) The id of the gist you want to embed.

[commits repository=’your-repository’ count=’max-count’ title=’your-title’]

Displays the latest commits from your repository. Parameters:

  • repository (required) The name of the repository you wish to get.
  • count (optional) The number of commits to retrieve (order by date). Default: 5
  • title (optional) A title to display before the list (h2). Default: none

[releases repository=’your-repository’ count=’max-count’ title=’your-title’]

Displays the latest releases from your repository. Parameters:

  • repository (required) The name of the repository you wish to get.
  • count (optional) The number of releases to retrieve (order by date). Default: 5
  • title (optional) A title to display before the list (h2). Default: none

[chart repository=’your-repository’ width=’chart-width’ height=’chart-height’ class=’additional-css-classes’ color=’bar-color’ background=’chart-background’ count=’commit-count’ title=’your-title’]

Displays an activity chart for the given repository. Parameters:

  • repository (required) The name of the repository you wish to get.
  • width (optional) The width of the chart. Default: auto
  • height (optional) The height of the chart. Default: auto
  • class (optional) Additional CSS classes to add to the chart element. Default: ”
  • color (optional) The chart bar colors. Must be a valid color string (rgb, hex or name). Default: ‘#f17f49’
  • background (optional) The chart background color. Must be a valid color string (rgb, hex or name). Default: ‘transparent’
  • count (optional) The number of commits to retrieve (order by date). Default: 30
  • title (optional) A title to display before the list (h2). Default: none

PHP functions

Feel free to use the Gihub helper class in your theme or plugin development.

<?php WP_Github_Tools_API::get_repos($user, $access_token); ?>

<?php WP_Github_Tools_API::get_user($user, $access_token); ?>

<?php WP_Github_Tools_API::get_commits($repo, $user, $access_token); ?>

<?php WP_Github_Tools_API::get_releases($repo, $user, $access_token); ?>

<?php WP_Github_Tools_API::get_gists($user, $access_token); ?>

Contribute!

If you have suggestions for a new add-on, feel free to contact me on Twitter. Alternatively, you can fork the plugin from Gihub

스크린샷

  • Commits shortcode in action. An un-onrdered list of the latest commits is displayed, that you can style as you please using CSS.
  • The settings page once you are connected to Github.
  • The commits widget that you can use on any sidebar to deliver live updates for your projects.
  • The cache preview system. You can manually refresh the cached data and you can view examples for the commits shortcode.
  • The chart preview system. Currently in beta.

설치

  1. Download the plugin files and upload them to your /wp-content/plugins/ directory
    1. Activate the plugin through the ‘Plugins’ menu in WordPress
    2. Create a Github application (make sure the redirect url points back to the github tools settings page)
    3. Add your client ID and secret
    4. Connect to Github
    5. Ready to go!

FAQ

Send any questions directly to me!

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“WP GitHub Tools”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “WP GitHub Tools”(을)를 번역하십시오.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하십시오.

변경이력

1.4

  • Provides access to private repos. Current users will need to re-authorize their repository.
  • Markdown-formatted release notes are rendered into HTML.

1.3

  • Added custom widget to display repository releases.
  • Implemented custom shortcode to display repository releases.

1.2

  • Added Chart functionality (beta) that allows users to display their commit activity using a graph.
  • Enabled automatic build to deliver updates more quickly.
  • Minifying assets for greater performance.

1.1

  • Using OAuth to connect to Github
  • Improved settings page
  • Better caching system

1.0

  • Added custom widget to display repository commits.
  • Implemented custom shortcode to display repository commits.
  • Implemented custom shortcode to embed gists.
  • Customizable cache system.
  • Live validation of GitHub usernames.