mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-21 06:26:44 +00:00
remove noreply emails
This commit is contained in:
@@ -103,6 +103,11 @@ for (var subdomain in domains) {
|
||||
if (domainData.record.URL) {
|
||||
records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON));
|
||||
}
|
||||
|
||||
// Handle redirects
|
||||
if (domainData.redirect_config && !domainData.record.A && !domainData.record.AAAA && !domainData.record.CNAME) {
|
||||
records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON));
|
||||
}
|
||||
}
|
||||
|
||||
var options = {
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
"owner": {
|
||||
"username": "okineadev",
|
||||
"discord": "okineadev",
|
||||
"telegram": "okinea",
|
||||
"email": "81070564+okineadev@users.noreply.github.com"
|
||||
"telegram": "okinea"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "dh=72f6dea86d79bda34d2c61e1edb3037954caac82"
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"description": "GitHub Pages verification for devon.is-a.dev",
|
||||
"owner": {
|
||||
"username": "D-Pow",
|
||||
"email": "D-Pow@users.noreply.github.com"
|
||||
"username": "D-Pow"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "cec54b510828f770750c1b17cad7f2"
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
"description": "Okinea Dev website",
|
||||
"repo": "https://github.com/okineadev",
|
||||
"owner": {
|
||||
"username": "okineadev",
|
||||
"email": "81070564+okineadev@users.noreply.github.com"
|
||||
"username": "okineadev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "a4553ebffa6a3356fc37fb4f8e8a14"
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "AVVERSION",
|
||||
"email": "79741360+AVVERSION@users.noreply.github.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "avversion.github.io"
|
||||
}
|
||||
}
|
||||
"owner": {
|
||||
"username": "AVVERSION"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "avversion.github.io"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "bufferwise",
|
||||
"email": "126371417+bufferwise@users.noreply.github.com",
|
||||
"discord": "790846560229392444"
|
||||
},
|
||||
"record": {
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
"description": "Devon Powell is a full-stack software engineer",
|
||||
"repo": "https://github.com/D-Pow/d-pow.github.io",
|
||||
"owner": {
|
||||
"username": "D-Pow",
|
||||
"email": "D-Pow@users.noreply.github.com"
|
||||
"username": "D-Pow"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "d-pow.github.io"
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
"description": "For Duzo's website",
|
||||
"repo": "https://github.com/Duzos/duzos.github.io",
|
||||
"owner": {
|
||||
"username": "Duzos",
|
||||
"email": "73184526+Duzos@users.noreply.github.com"
|
||||
"username": "Duzos"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "duzos.github.io"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "gicorada",
|
||||
"email": "51818710+gicorada@users.noreply.github.com",
|
||||
"discord": "607903753831448626"
|
||||
},
|
||||
"record": {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "EducatedSuddenBucket",
|
||||
"email": "149485703+EducatedSuddenBucket@users.noreply.github.com",
|
||||
"discord": "1167825360151380032"
|
||||
},
|
||||
"record": {
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "HigherOrderLogic",
|
||||
"email": "73709188+HigherOrderLogic@users.noreply.github.com"
|
||||
"username": "HigherOrderLogic"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "higherorderlogic.github.io"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "kappucin",
|
||||
"email": "132572179+kappucin@users.noreply.github.com",
|
||||
"discord": "853170099392479253"
|
||||
},
|
||||
"record": {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "kokofixcomputers",
|
||||
"email": "113046561+kokofixcomputers@users.noreply.github.com",
|
||||
"discord": "1096839213313446019"
|
||||
},
|
||||
"record": {
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
"description": "Learning something new everyday",
|
||||
"repo": "https://github.com/DevLiQ",
|
||||
"owner": {
|
||||
"username": "DevLiQ",
|
||||
"email": "21136062+devliq@users.noreply.github.com"
|
||||
"username": "DevLiQ"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "devliq.github.io"
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
"description": "Personal Page",
|
||||
"repo": "https://github.com/mrkOS1210/mrkos1210.github.io",
|
||||
"owner": {
|
||||
"username": "mrkOS1210",
|
||||
"email": "72011329+mrkOS1210@users.noreply.github.com"
|
||||
"username": "mrkOS1210"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "mrkos1210.github.io"
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "r-b-l-x",
|
||||
"email": "178317246+r-b-l-x@users.noreply.github.com"
|
||||
"username": "r-b-l-x"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "r-b-l-x.github.io"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "scanash00",
|
||||
"email": "103391616+scanash00@users.noreply.github.com",
|
||||
"discord": "827389583342698536"
|
||||
},
|
||||
"record": {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "7op3",
|
||||
"email": "134126156+7op3@users.noreply.github.com",
|
||||
"discord": "882124409945587773"
|
||||
},
|
||||
"record": {
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "WaspZix",
|
||||
"email": "160319648+WaspZix@users.noreply.github.com"
|
||||
"username": "WaspZix"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "thefirst.glitch.me"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "xKotelek",
|
||||
"email": "98203141+xKotelek@users.noreply.github.com",
|
||||
"discord": "803159847641284640"
|
||||
},
|
||||
"record": {
|
||||
|
||||
+2
-3
@@ -165,11 +165,10 @@ t("All files should have valid required and optional fields", (t) => {
|
||||
// Validate email format
|
||||
if (data.owner.email) {
|
||||
t.regex(data.owner.email, emailRegex, `${file}: Owner email should be a valid email address`);
|
||||
t.true(!data.owner.email.endsWith("@users.noreply.github.com"), `${file}: Owner email should not be a GitHub no-reply email`);
|
||||
}
|
||||
|
||||
// Ensure 'record' field is not empty
|
||||
t.true(Object.keys(data.record).length > 0, `${file}: Missing DNS records`);
|
||||
// Ensure 'record' field is not empty unless using redirect_config
|
||||
t.true(Object.keys(data.record).length > 0 || data.redirect_config.custom_paths, `${file}: Missing DNS records`);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
+2
-11
@@ -215,8 +215,8 @@ function validateRecordValues(t, data, file) {
|
||||
`${urlMessage} must start with a slash, contain only alphanumeric characters, hyphens, underscores, periods, and slashes, and cannot end with a slash at index ${idx}`
|
||||
);
|
||||
t.true(
|
||||
customPath.length >= 2 && customPath.length <= 255,
|
||||
`${urlMessage} should be 2-255 characters long at index ${idx}`
|
||||
customPath.length >= 1 && customPath.length <= 255,
|
||||
`${urlMessage} should be 1-255 characters long at index ${idx}`
|
||||
);
|
||||
|
||||
// Validate the redirect URL
|
||||
@@ -266,15 +266,6 @@ t("All files should have valid record types", (t) => {
|
||||
`${file}: URL records cannot be combined with A, AAAA, or CNAME records`
|
||||
);
|
||||
}
|
||||
if (data.redirect_config) {
|
||||
t.true(
|
||||
recordKeys.includes("URL") || data.proxied,
|
||||
`${file}: Redirect config must be combined with a URL record or the domain must be proxied`
|
||||
);
|
||||
if (data.redirect_config.redirect_paths) {
|
||||
t.true(recordKeys.includes("URL"), `${file}: redirect_config.redirect_paths requires a URL record`);
|
||||
}
|
||||
}
|
||||
|
||||
validateRecordValues(t, data, file);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user