Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

AutoLink

kzu edited this page Nov 3, 2014 · 3 revisions

Auto Link Issues

Depending on your planning process flavor, you may be using issues labeled Story (or lower-cased story) to distinguish them from Task or Bug issues. GitHub issues doesn't know anything about either, of course, and keeping track of what tasks or bugs "belong" to which story is a manual process.

This hook detects a very simple issue title convention: an issue with a prefix like [uex] and labeled story or Story defines what the hook considers a "story prefix". Issues that have the same prefix are automatically linked to that story.

Note: if the issue itself has a story label, it won't be considered for auto-linking. Likewise, if the issue body contains an issue reference (i.e. #123) that references an issue with a story label, it won't be considered either for auto-linking.

Once the hook determines the parent user story for an issue based on its "story prefix", it will append the text "Story #123" linking to the right parent story. This link in turn causes GitHub to show the linked issue on the parent story history timeline.

Install

Install the OctoHook.AutoLink nuget package on your Web API project:

PM> Install-Package OctoHook.AutoLink
Clone this wiki locally