Skip to content

Instantly share code, notes, and snippets.

@rinopo
Last active August 29, 2015 14:13
Show Gist options
  • Save rinopo/64537f6a73a39424b2cf to your computer and use it in GitHub Desktop.
Save rinopo/64537f6a73a39424b2cf to your computer and use it in GitHub Desktop.
Codetree Repository Column
// ==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>');
});
@rinopo
Copy link
Author

rinopo commented Jan 23, 2015

Currently only works on the "assignee-based" view of the issue list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment