upd: added .ip2 network control for workflows. (#561)

* upd: added .ip2 network control for workflows.

* fix: blank fixed.

* fix: blank fixed.

* fix: blank fixed.

* upd: uptimerobot ip2 removed.
This commit is contained in:
Ramazan Sancar 2024-06-10 09:43:04 +03:00 committed by GitHub
parent 51ac0963fe
commit 5f43c9ca0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,10 +31,10 @@ jobs:
var linkify = require("linkifyjs");
var issueTitleParseUrl = linkify.find(issueInfo.title);
if (issueTitleParseUrl.length !== 0) {
if (issueInfo.title.includes(".onion")) {
if (issueInfo.title.includes(".onion") || issueInfo.title.includes(".ip2")) {
var replyComment =
['Hello! I have detected that you are requesting to add an onion URL.',
'Please create a pull request instead for adding your onion url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md'
['Hello! I have detected that you are requesting to add an onion or I2P URL.',
'Please create a pull request instead for adding your onion or I2P url as an alternative to your clearnet URL: https://github.com/iv-org/documentation/edit/master/docs/instances.md'
].join('\n');
await github.rest.issues.createComment({
issue_number: context.issue.number,