Last active
August 29, 2015 14:02
-
-
Save takezoe/b4625a3c344852dc1eff to your computer and use it in GitHub Desktop.
GitBucket plug-in example
This file contains 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
// Add a global menu item to the header | |
PluginSystem.addGlobalMenu("Google", "http://www.google.co.jp/", "data:image/png;base64,..." | |
function(context){ | |
return context.loginAccount.isDefined(); | |
} | |
); | |
// Add a custom action | |
PluginSystem.addGlobalAction('/test', function(request, response){ | |
return "<h1>This is Test Plug-In</h1>"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment