Skip to content

Instantly share code, notes, and snippets.

@andrewsomething
Created January 16, 2009 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewsomething/48046 to your computer and use it in GitHub Desktop.
Save andrewsomething/48046 to your computer and use it in GitHub Desktop.
/* Report Ubuntu Bug
* Andrew Starr-Bochicchio <andrewsomething@ubuntu.com>
* MIT/X11 License
*/
CmdUtils.CreateCommand({
name: "ubuntu-report-bug",
icon: "http://www.ubuntu.com/files/favicon-ubuntu.ico",
/* homepage: "http://packages.qa.debian.org/common/index.html", */
author: { name: "Andrew Starr-Bochicchio", email: "andrewsomething@ubuntu.com"},
license: "MIT",
description: "Report Ubuntu Bug",
help: "ubuntu-report-bug [source-package]",
takes: {"package": noun_arb_text},
preview: function(pblock, package) {
var template = "Report bug for ${name} on Launchpd";
pblock.innerHTML = CmdUtils.renderTemplate(template, {"name": package.text});
},
execute: function(package) {
var url = " https://bugs.launchpad.net/ubuntu/+source/" + package.text + "/+filebug";
Utils.openUrlInBrowser(url);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment