From 54b0c89ea5a439110f67b6e7c985771cf983c161 Mon Sep 17 00:00:00 2001 From: ianlv <168640168+ianlv@users.noreply.github.com> Date: Wed, 2 Jul 2025 22:18:13 +0800 Subject: [PATCH] chore: fix typos in code comments (#5966) Signed-off-by: ianlv --- CONTRIBUTING.md | 2 +- extra/close-incorrect-issue.js | 2 +- server/database.js | 2 +- server/notification-providers/flashduty.js | 2 +- server/notification-providers/pushdeer.js | 2 +- test/backend-test/test-mqtt.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 968f0dc51..e4cae2ad0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,7 +86,7 @@ to review the appropriate one for your contribution. PR: - A text may not be currently localisable. In this case, **adding a new - language key** via `$t("languageKey")` might be nessesary + language key** via `$t("languageKey")` might be necessary - language keys need to be **added to `en.json`** to be visible in weblate. If this has not happened, a PR is appreciated. - **Adding a new language** requires a new file see diff --git a/extra/close-incorrect-issue.js b/extra/close-incorrect-issue.js index 9bb01b19d..33a35f805 100644 --- a/extra/close-incorrect-issue.js +++ b/extra/close-incorrect-issue.js @@ -37,7 +37,7 @@ const github = require("@actions/github"); owner: issue.owner, repo: issue.repo, issue_number: issue.number, - body: `@${username}: Hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template. Please **DO NOT open blank issues and use our [issue-templates](https://github.com/louislam/uptime-kuma/issues/new/choose) instead**.\nBlank Issues do not contain the context nessesary for a good discussions.` + body: `@${username}: Hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template. Please **DO NOT open blank issues and use our [issue-templates](https://github.com/louislam/uptime-kuma/issues/new/choose) instead**.\nBlank Issues do not contain the context necessary for a good discussions.` }); // Close the issue diff --git a/server/database.js b/server/database.js index 206c2ffdc..c07797fd1 100644 --- a/server/database.js +++ b/server/database.js @@ -19,7 +19,7 @@ const KumaColumnCompiler = require("./utils/knex/lib/dialects/mysql2/schema/mysq class Database { /** - * Boostrap database for SQLite + * Bootstrap database for SQLite * @type {string} */ static templatePath = "./db/kuma.db"; diff --git a/server/notification-providers/flashduty.js b/server/notification-providers/flashduty.js index bac6f07ca..9d618dcc0 100644 --- a/server/notification-providers/flashduty.js +++ b/server/notification-providers/flashduty.js @@ -38,7 +38,7 @@ class FlashDuty extends NotificationProvider { } /** - * Generate a monitor url from the monitors infomation + * Generate a monitor url from the monitors information * @param {object} monitorInfo Monitor details * @returns {string|undefined} Monitor URL */ diff --git a/server/notification-providers/pushdeer.js b/server/notification-providers/pushdeer.js index b1f675957..33d195f43 100644 --- a/server/notification-providers/pushdeer.js +++ b/server/notification-providers/pushdeer.js @@ -11,7 +11,7 @@ class PushDeer extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { const okMsg = "Sent Successfully."; const serverUrl = notification.pushdeerServer || "https://api2.pushdeer.com"; - // capture group below is nessesary to prevent an ReDOS-attack + // capture group below is necessary to prevent an ReDOS-attack const url = `${serverUrl.trim().replace(/([^/])\/+$/, "$1")}/message/push`; let valid = msg != null && monitorJSON != null && heartbeatJSON != null; diff --git a/test/backend-test/test-mqtt.js b/test/backend-test/test-mqtt.js index 450310298..3038df3cb 100644 --- a/test/backend-test/test-mqtt.js +++ b/test/backend-test/test-mqtt.js @@ -9,7 +9,7 @@ const { UP, PENDING } = require("../../src/util"); * Runs an MQTT test with the * @param {string} mqttSuccessMessage the message that the monitor expects * @param {null|"keyword"|"json-query"} mqttCheckType the type of check we perform - * @param {string} receivedMessage what message is recieved from the mqtt channel + * @param {string} receivedMessage what message is received from the mqtt channel * @returns {Promise} the heartbeat produced by the check */ async function testMqtt(mqttSuccessMessage, mqttCheckType, receivedMessage) {