A jQuery plug-in to display GitHub issues like UserVoice.
- Include jQuery.
- Include the plug-in.
- Call
githubVoice
on an element with the username, project and optional options.
$(function() {
$('a.default').githubVoice('thoughtbot', 'paperclip');
});
$('a.custom').githubVoice('thoughtbot', 'paperclip', {
query : { 'labels' : 'idea', 'per_page' : 3 },
text : {
loading : "Loading ideas...",
description : "Below are the top three ideas.",
callToAction : "View feedback forum."
}
});
$('a.filter').githubVoice('thoughtbot', 'paperclip', {
filter : {
user: /thoughtbot/g
}
});
// Sort by property. (See GitHub API for valid values.)
$('a.sort-updated-desc').githubVoice('thoughtbot', 'paperclip', {
query : { 'sort' : 'updated', 'direction' : 'desc' }
});
Gives you the ability to filter issues by any information returned by the API. See the GitHub Issues API for valid properties.
Enable or disable the overlay when displaying issues.
Custom query options passed to the GitHub API. See the GitHub Issues API for more details.
The text displayed above the issue list. (Default: "We've setup a feedback forum so you can tell us what's on your mind. Please go there and be heard!")
The text displayed while the issues are being loaded. (Default: "Loading...")
The call-to-action text used for the link below the issue list. (Default: "» Go to our Feedback Forum")
github-voice uses the MIT license. See LICENSE for more details.