https://github.com/bolt/bolt-extension-github
GitHub API extension for Bolt CMS
https://github.com/bolt/bolt-extension-github
bolt-extension
Last synced: 3 months ago
JSON representation
GitHub API extension for Bolt CMS
- Host: GitHub
- URL: https://github.com/bolt/bolt-extension-github
- Owner: bolt
- License: gpl-3.0
- Created: 2014-10-03T16:39:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T17:02:10.000Z (almost 8 years ago)
- Last Synced: 2025-01-18T08:37:54.743Z (5 months ago)
- Topics: bolt-extension
- Language: PHP
- Homepage: http://bolt.cm
- Size: 109 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
GitHub API for Bolt
===================Implementation of the GitHub API as a Bolt extension.
Set up
------Set the following parameters (at a minimum) in the `app/config/extensions/github.bolt.yml` file:
```yaml
github:
org: bolt
repo: bolt
```Template Use
------------The following functions are available for inclusion in templates:
```
{{ github_collaborators() }}
{{ github_contributors() }}
{{ github_user(user) }}
{{ github_user_events(user) }}
```Both `github_collaborators` and `github_contributors` take an optional Boolean where true will lookup
additional information about the members.**Note** these lookups affect your GitHub API rate limit quite severly, especially if caching is not enabled!