Inhoud

GHIssues Plugin

Compatibel met DokuWiki

Ponder Stibbons, !Greebo

plugin Uses the GitHub API (v3) to access and display issues from the bug tracker

Laatste update op
2014-10-18
Levert
Syntax, Helper, Action
Centrale opslag
Broncode

Deze uitbreiding is al meer dan 2 jaar niet meer geupdated. Misschien worden hij niet langer onderhouden of ondersteund. Er kunnen compatibiliteitsproblemen zijn.

Vergelijkbaar met issuelinks

Gelabeld met bugtracker, github, issue, tracker

Description

Allows the insertion of a table showing issues from the bug tracker on a GitHub repository. Filtering by state (open/closed/all) and label are supported. The table shows issue number, title, any labels (with their assigned colors) as well as creation date/time and creator.

Each issue title is also a link to the appropriate issue page on GitHub, and there is a link to the table's equivalent issues search in the footer of the table.

GitHub API responses are cached locally and the table is only updated when upstream changes occur.

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

Below are code snippets and static screenshots of the plugin's output with data from the DokuWiki Repository on GitHub1).

Open Issues for a Label

{{ghissues dokuwiki/dokuwiki label:Beginner's Project}}

Open Issues with Both Labels

{{ghissues dokuwiki/Dokuwiki label:feature,Beginner's Project}}

All (Open & Closed) Issues for a Label

{{ghissues dokuwiki/Dokuwiki state:all label:feature}}

(Trimmed the bottom because the list is long)

Closed Issues for a Label

{{ghissues dokuwiki/Dokuwiki state:closed label:feature}}

Syntax

Basic syntax:

{{ghissues <repository> [state:<all|open|closed>] [label:<label1,label2,label3>]}}

Specifically:

Configuration and Settings

Three user settings are available.

OAuth Token

GitHub allow authentication via personal OAuth tokens which can be generated at https://github.com/settings/applications. This is nice because it avoids having to provide a username/password combination. You can also control which parts of your account a token has access to.

Do I need to use Oauth Tokens?

Short answer: probably not. There are two reasons to use one:

  1. You want to look at issues from private repositories. To do this, you'll need an OAuth token for an account that has access to those repositories
  2. You need >60 requests per hour.

This plugin does its best to minimize the number of requests it makes. It implements cacheing on DokuWiki's side together with conditional HTTP requests. The quick-and-dirty rule is that you'll generate 1 request per unique table per change to an issue on GitHub's side.

Development

Change Log

See https://github.com/ZJ/ghissues/commits/master

ToDo/Wish List

1)
Example data pulled on 2014-10-09 16:00 EST