Last active
August 29, 2015 14:13
-
-
Save rinopo/64537f6a73a39424b2cf to your computer and use it in GitHub Desktop.
Codetree Repository Column
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Codetree Repository Column | |
// @namespace https://gist.github.com/rinopo/64537f6a73a39424b2cf | |
// @downloadURL https://gist.github.com/rinopo/64537f6a73a39424b2cf/raw/Codetree_Repository_Column.user.js | |
// @description Add Repository Column to Issue List | |
// @match https://codetree.com/projects/*/issues* | |
// @version 1.0.2 | |
// @grant GM_addStyle | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js | |
// allow pasting | |
// ==/UserScript== | |
$('thead td.col-milestone').before('<td class=".col-repo" style="width: 150px;"></td>') | |
$('thead th.col-milestone').before('<th class=".col-repo" style="width: 150px;">Repository</th>') | |
$('tbody .col-title').each(function(){ | |
var repo = $(this).find('.issue-number').attr('title'); | |
$(this).siblings('.col-milestone').before('<td class=".col-repo" style="width: 150px; font-size: 13px;"><a href="https://github.com/'+repo+'/issues">'+repo+'</a></td>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently only works on the "assignee-based" view of the issue list.