dmGithubPlugin allows to connect your site with GitHub.
It bundles php-github-api, an object oriented GitHub API for PHP5.
It packages two Diem front widgets to display issues and commits.
git clone git://github.com/ornicar/dmGithubPlugin.git plugins/dmGithubPlugin
class ProjectConfiguration extends dmProjectConfiguration { public function setup() { parent::setup(); $this->enablePlugins(array( // your enabled plugins 'dmGithubPlugin' ));
php symfony dm:setup
This widget lists issues for a given repository.
To use it, just drag&drop a GitHub/List Issues widget somewhere on your site.
Configure the widget on the widget edition dialog:
- user The repository user
- repo The repository name
- state The issue state. Can be "closed" or "open".
- nb_issues Number of issues to display.
- life_time Duration of the cache in seconds.
Copy
plugins/dmGithubPlugin/modules/dmWidget/templates/_dmWidgetGithubListIssues.php
to
apps/front/modules/dmWidget/templates/_dmWidgetGithubListIssues.php
then modify it.
This widget lists commits for a given repository and branch.
To use it, just drag&drop a GitHub/List Commits widget somewhere on your site.
Configure the widget on the widget edition dialog:
- user The repository user
- repo The repository name
- branch The branch name. Defaults to "master".
- nb_commits Number of commits to display.
- life_time Duration of the cache in seconds.
Copy
plugins/dmGithubPlugin/modules/dmWidget/templates/_dmWidgetGithubListCommits.php
to
apps/front/modules/dmWidget/templates/_dmWidgetGithubListCommits.php
then modify it.
This plugin provides php-github-api. It allows you to request any GitHub service.
Exemple:
$api = new phpGitHubApi(); $issues = $api->listIssues('diem-project', 'diem', 'closed');
Open issues
Closed issues
dmGithubPlugin, created on February 15, 2010 by Thibault D, used by 118 projects