diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index e7eb65913..46ec6ab67 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,16 +1,21 @@ - + ## Requirements -Unless explicitly specified otherwise by a **maintainer** or in the requirement description, your domain must pass **ALL** the indicated requirements above. +Unless explicitly specified otherwise by a **maintainer** or in the requirement description, your domain **MUST** pass **ALL** the indicated requirements below. -Please note that we reserve the rights not to accept any domain at our own discretion. + +- [ ] I have **read** and **understood** the [Terms of Service](https://is-a.dev/terms). +- [ ] My domain is **not** for commercial use. +- [ ] My file is in the `domains` folder and is in the JSON format. +- [ ] My file's name is all lowercased and alphanumeric. +- [ ] The website is **reachable**. +- [ ] I have **completed** my website. +- [ ] My website is related to **software development**. +- [ ] I have provided contact information in the `owner` key. +- [ ] I have **followed** the [documentation](https://docs.is-a.dev). +- [ ] I understand my domain may be removed if I violate the [Terms of Service](https://is-a.dev/terms). -- [ ] The file is in the `domains` folder and is in the JSON format. -- [ ] The file's name is all lowercased and alphanumeric. -- [ ] You have completed your website. -- [ ] The website is reachable. -- [ ] The CNAME record doesn't contain `https://` or `/`. -- [ ] There is sufficient information at the `owner` field. - -## Website Link/Preview - +## Website Preview + diff --git a/domains/ahyalfan.json b/domains/ahyalfan.json new file mode 100644 index 000000000..8480313da --- /dev/null +++ b/domains/ahyalfan.json @@ -0,0 +1,10 @@ +{ + "description": "this is for my personal website made.", + "owner": { + "username": "ahyalfan", + "email": "alfandi0857@gmail.com" + }, + "record": { + "CNAME": "ahyalfan.my.id" + } +} diff --git a/domains/dmc.json b/domains/dmc.json new file mode 100644 index 000000000..5b82649b2 --- /dev/null +++ b/domains/dmc.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "morcu", + "email": "david.morcuende.c@gmail.com" + }, + "record": { + "CNAME": "davidmorcuende.com" + } +} diff --git a/domains/felipecampos.json b/domains/felipecampos.json new file mode 100644 index 000000000..088b17ca0 --- /dev/null +++ b/domains/felipecampos.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "camposdev", + "email": "felipecamposdev@gmail.com" + }, + "record": { + "CNAME": "felipecampos.vercel.app" + } +} diff --git a/domains/keshav.json b/domains/keshav.json new file mode 100644 index 000000000..a434464a2 --- /dev/null +++ b/domains/keshav.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "keshav-writes-code", + "email": "dhimankeshav201@gmail.com" + }, + "record": { + "CNAME": "keshav-writes-code.github.io" + } +} diff --git a/domains/manuel-garcia-nieto.json b/domains/manuel-garcia-nieto.json new file mode 100644 index 000000000..2b4661dbf --- /dev/null +++ b/domains/manuel-garcia-nieto.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "mGarciaNieto", + "email": "mgarcianieto@gmail.com" + }, + "record": { + "CNAME": "mGarciaNieto.github.io" + } +} diff --git a/domains/muhammadabdullah.json b/domains/muhammadabdullah.json new file mode 100644 index 000000000..407a77bdc --- /dev/null +++ b/domains/muhammadabdullah.json @@ -0,0 +1,10 @@ +{ + "owner": { + "username": "Abdullah9715", + "email": "muftimuhammadabdullah225@gmail.com" + }, + "record": { + "URL": "https://latest-porfolio-website.web.app" + } + } + diff --git a/domains/raw.json b/domains/raw.json new file mode 100644 index 000000000..cc2562542 --- /dev/null +++ b/domains/raw.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "is-a-dev", + "email": "admin@is-a.dev" + }, + "record": { + "URL": "https://raw-api.is-a.dev" + } +} diff --git a/domains/rufistofeles.json b/domains/rufistofeles.json new file mode 100644 index 000000000..297c8e569 --- /dev/null +++ b/domains/rufistofeles.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "rufistofeles", + "email": "rufistofeles@outlook.com" + }, + "record": { + "CNAME": "rufistofeles.github.io" + } +} diff --git a/domains/sevinda-herath._domainkey.sevinda-herath.json b/domains/sevinda-herath._domainkey.sevinda-herath.json new file mode 100644 index 000000000..b974a12ec --- /dev/null +++ b/domains/sevinda-herath._domainkey.sevinda-herath.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "Sevinda-Herath", + "email": "sevindaherath@gmail.com" + }, + "record": { + "TXT": "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAhBt3btz/Lvou5WOJo+eF4YYWNZHxX0h5vPCfcP0IVtxOcicEhpvuY8DZ86ooVAptJeXKeuXVOz0J3SkAeGu2OAPZdHwKmBXTxvIx040Qhb3plS3T1iQXj3gu8SjkZk2w6X/07iQB+KkUYD8wvAT6UUIyNugQPd74LRYpOV1pRQIDAQAB" + } +} diff --git a/domains/yisraeldov.json b/domains/yisraeldov.json new file mode 100644 index 000000000..f8d326cc0 --- /dev/null +++ b/domains/yisraeldov.json @@ -0,0 +1,10 @@ +{ + "description": "Yisrael Dov Lebow", + "owner": { + "username": "yisraeldov", + "email": "lebow@lebowtech.com" + }, + "record": { + "URL": "https://yisraeldov.gitlab.io" + } +} diff --git a/tests/records.test.js b/tests/records.test.js index 8a1bbabbc..223971308 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -267,7 +267,13 @@ t("All files should have valid record types", (t) => { ); } if (data.redirect_config) { - t.true(recordKeys.includes("URL"), `${file}: Redirect config must be combined with a URL record`); + 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);