test-patch has the ability to support multiple bug systems. Bug tools have some extra hooks to fetch patches, line-level reporting, and posting a final report. Every bug system plug-in must have one line in order to be recognized:
add_bugsystem <pluginname>
pluginname_locate_patch
pluginname_determine_branch
pluginname_determine_issue
pluginname_writecomment
pluginname_linecomments
pluginname_finalreport