commit af7b69462a13fb96a618b52e8f87dbfb4b40daa6
parent 1377193980637e43ff6ca8268aeeb90b4d2ed569
Author: iostpa <iostpa@iostpa.com>
Date: Thu, 18 Jun 2026 20:17:00 +0300
Add new label
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/message/label/tos-non-compliant.md b/src/message/label/tos-non-compliant.md
@@ -0,0 +1,2 @@
+## Not compliant to the ToS (Terms of Service)
+Your website does not comply to the [ToS](https://is-a.dev/terms). Please read the ToS to make sure the website is compliant.+
\ No newline at end of file
diff --git a/src/webhooks/labeled.js b/src/webhooks/labeled.js
@@ -18,6 +18,7 @@ const reasonLabels = [
'reason: other',
'reason: unauthorized',
'reason: incompatible records',
+ 'reason: tos non-compliant',
];
const lowPriorityMessage = fs.readFileSync(
path.join(import.meta.dirname, '../message/label/lowpriority.md'),
@@ -71,13 +72,19 @@ export async function labeled(
.replace(/reason:\s/i, '');
let finalReason = initialReason.replace(/\s+/g, '-');
let message = fs.readFileSync(
- path.join(import.meta.dirname, `../message/label/${finalReason}.md`),
+ path.join(
+ import.meta.dirname,
+ `../message/label/${finalReason}.md`
+ ),
'utf8'
);
allMessages.push(message);
} else if (listOfLabels[i] === 'status: needs preview') {
let message = fs.readFileSync(
- path.join(import.meta.dirname, `../message/label/needs-preview.md`),
+ path.join(
+ import.meta.dirname,
+ `../message/label/needs-preview.md`
+ ),
'utf8'
);
allMessages.push(message);