aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bugzilla-comments.json78
-rw-r--r--bugzillaComments.js8
2 files changed, 82 insertions, 4 deletions
diff --git a/bugzilla-comments.json b/bugzilla-comments.json
new file mode 100644
index 0000000..fdea010
--- /dev/null
+++ b/bugzilla-comments.json
@@ -0,0 +1,78 @@
+{
+ "commentPackages": {
+ "test": {
+ "test-all": {
+ "name": "Test lots of things",
+ "product": "Thunderbird",
+ "component": "Internal Components",
+ "priority": "P1",
+ "severity": "major",
+ "assignee": "mschroeder",
+ "qacontact": "foobar",
+ "url": "http://example.com",
+ "addDependsOn": "123",
+ "removeDependsOn": "456",
+ "addBlocks": "789",
+ "removeBlocks": "101112",
+ "addWhiteboard": ["a","b","c"],
+ "removeWhiteboard": ["a","b"],
+ "addKeyword": ["d", "e"],
+ "removeKeyword": "e",
+ "url": "http://example.com",
+ "status": "RESOLVED",
+ "resolution": "INCOMPLETE",
+ "version": "Lightning 0.3",
+ "os": "All",
+ "platform": "All"
+ }
+ },
+ "mozilla": {
+ "safe-mode": {
+ "name": "Safe Mode Question",
+ "comment": "Have you tried safe mode? (see https://support.mozillamessaging.com/en-US/kb/Safe+Mode for more information)"
+ },
+ "extension-issue": {
+ "name": "Response: Invalid due to extension issue",
+ "comment": "Sorry, your issue is to do with an extension and we are unable to support it here. Please raise the issue direct with the extension author or on their site.\n\nYou may find details of how to do this here:\n\n******* INSERT LINK TO EXTENSION SITE *******",
+ "status": "RESOLVED",
+ "resolution": "INVALID"
+ },
+ "profile-location": {
+ "name": "Profile Location text and link",
+ "comment": "To locate your profile, see this page for more information: https://support.mozillamessaging.com/en-US/kb/Profiles"
+ },
+
+ "no-response": {
+ "name": "INCOMPLETE (No Response from Reporter)",
+ "comment": "No response for a while now, closing INCOMPLETE. Please reopen if you can reproduce or answer any unanswered questions.",
+ "status": "RESOLVED",
+ "resolution": "INCOMPLETE"
+ }
+ },
+ "thunderbird": {
+ },
+
+ "calendar": {
+ "console-log": {
+ "name": "Calendar Console Log",
+ "comment": "Please enable calendar.debug.log and calendar.debug.log.verbose in the advanced config editor (Options > Advanced > General > Config Editor) and check your error console for messages."
+ },
+ "prepare-checkin": {
+ "name": "prepare for checkin",
+ "target": "1.0b2",
+ "removeKeyword": "checkin-needed",
+ "status": "RESOLVED",
+ "resolution": "FIXED",
+ "comment": "Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/INSERT_REV_HERE>\n\n-> FIXED"
+ },
+ "what-version": {
+ "name": "Using what version?",
+ "value": "Please tell us what version you are using:\n\n* Thunderbird\n* Lightning\n* Provider for Google Calendar"
+ },
+ "retest-nightly": {
+ "name": "Restest with nightly",
+ "value": "Does this still happen with the latest 1.0b2pre nightlies?"
+ }
+ }
+ }
+}
diff --git a/bugzillaComments.js b/bugzillaComments.js
index 83b382d..6ae3e81 100644
--- a/bugzillaComments.js
+++ b/bugzillaComments.js
@@ -119,7 +119,7 @@ function BaseBugzilla(doc) {
BaseBugzilla.prototype = {
doc: null,
- get installedPackages() {
+ get: function installedPackages() {
// TODO does this really need to by dynamic?
let installedPackages = {};
if (gJSONData && ("commentPackages" in gJSONData)) {
@@ -142,7 +142,7 @@ BaseBugzilla.prototype = {
" <label for='comment_action'>Add Comment: </label>" +
" <select id='comment_action'>" +
" <option value=''>-- Select Comment from List --</option>" +
- "</div>", this.doc)
+ "</div>", this.doc);
$("#comments", this.doc).append(ca);
let select = $("#comment_action", this.doc);
@@ -158,7 +158,7 @@ BaseBugzilla.prototype = {
}
}
let self = this;
- select.change(function() { self.onCommentsDropdownChange() });
+ select.change(function() { self.onCommentsDropdownChange(); });
},
onCommentsDropdownChange: function onCommentsDropdownChange() {
@@ -325,7 +325,7 @@ RedhatBugzilla.prototype = {
////////////////////////////////////////////////////////////////
const bzMap = {
"https://bugzilla.mozilla.org/show_bug.cgi": MozillaBugzilla,
- "https://bugzilla.redhat.com/show_bug.cgi": RedhatBugzilla,
+ "https://bugzilla.redhat.com/show_bug.cgi": RedhatBugzilla
};
function figureOutBugzilla(doc) {