Skip to content

Commit

Permalink
Create change_default_branch_on_repository_tab.js
Browse files Browse the repository at this point in the history
  • Loading branch information
onozaty committed Feb 12, 2017
1 parent 61fecb3 commit f304ff8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions change_default_branch_on_repository_tab.js
@@ -0,0 +1,11 @@
/*
Path pattern: .*
Type: JavaScript
Description: リポジトリタブでのデフォルトブランチを変更
*/
$(function() {
var branchName = '3.3-stable';
var baseUrl = $('a.repository').attr('href');

$('a.repository').attr('href', baseUrl + '?rev=' + encodeURIComponent(branchName));
});

0 comments on commit f304ff8

Please sign in to comment.