mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-22 12:25:40 +00:00
Merge branch 'main' into patch-2
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
name: Helper
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
instructions:
|
||||
name: instructions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: curl https://notify-api.is-a.dev/pr/merged/${{ github.event.pull_request.number }}
|
||||
if: github.event.action == 'closed' && github.event.pull_request.merged == true
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Comment
|
||||
# if: github.event.action == 'closed' && github.event.pull_request.merged == true
|
||||
# uses: actions/github-script@v3
|
||||
# with:
|
||||
# github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
# script: |
|
||||
# const { hasLabel } = require(`${process.env.GITHUB_WORKSPACE}/scripts/action-utils.js`);
|
||||
# const { instructions } = require(`${process.env.GITHUB_WORKSPACE}/scripts/reply.js`);
|
||||
# if (hasLabel(context, 'domain'))
|
||||
# console.log('Domain');
|
||||
# await instructions(context, github);
|
||||
+1
-3
@@ -6,8 +6,6 @@
|
||||
"email": "phenax5@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"URL": "http://www.is-a.dev",
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": ["v=spf1 ip4:51.161.54.164 include:mail.is-a.dev ~all"]
|
||||
"URL": "http://www.is-a.dev"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "alijafari-gd",
|
||||
"email": "ali.jafari.sn@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"URL": "https://alijafari.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "xAbdoAT",
|
||||
"email": "ABDO199877@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": ["217.174.245.249", "51.161.54.161"],
|
||||
"MX": ["hosts.is-a.dev"],
|
||||
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "BachNgoH",
|
||||
"email": "nlmbao2015@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "Akshay's portfolio website and blog",
|
||||
"repo": "https://github.com/phenax/ediblemonad.dev",
|
||||
"owner": {
|
||||
"username": "phenax",
|
||||
"email": "phenax5@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"URL": "https://ediblemonad.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "alijafari-gd",
|
||||
"email": "ali.jafari.sn@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Anubhav-Pathak",
|
||||
"email": "anubhavpathak99@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Bbalduzz",
|
||||
"email": "edoardoba2004@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "dinuhifi",
|
||||
"email": "dinesh23110077@snuchennai.edu.in"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "xiaozhu2007",
|
||||
"email": "lz19986912007@163.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "hashnode.network"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Nikhil",
|
||||
"username": "nikxso",
|
||||
"email": "nikhilsoniya123@gmail.com",
|
||||
"discord": "nikxso#0000"
|
||||
},
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "phenax5@gmail.com"
|
||||
},
|
||||
|
||||
"record": {
|
||||
"CNAME": "dns.beadman-network.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "saptarshihalder",
|
||||
"email": "saptarshihalder69@gmail.com",
|
||||
"discord": "747718545307336797"
|
||||
},
|
||||
|
||||
"record": {
|
||||
"CNAME": "saptarshihalder.github.io"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
"email": "pandeysiddhant21@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"URL": "https://siddhantt.netlify.app"
|
||||
"URL": "https://siddhantt.vercel.app/"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"email": "vuthanhtrungsuper@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": ["69.30.249.53"]
|
||||
"CNAME": "manage.uptime.trung.is-a.dev"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "cmdwm",
|
||||
"email": "will@willm.xyz"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "xAbdoAT",
|
||||
"email": "ABDO199877@gmail.com",
|
||||
"discord": "943662778433032242"
|
||||
},
|
||||
|
||||
"record": {
|
||||
"CNAME": "xabdoat.github.io"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "ZeaZolf",
|
||||
"email": "ZeaZolfPc@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"A": [
|
||||
"217.174.245.249",
|
||||
"51.161.54.161"
|
||||
],
|
||||
"MX": ["mail.is-a.dev"],
|
||||
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
|
||||
}
|
||||
}
|
||||
@@ -59,6 +59,9 @@ const recordToEmailMx = ({ name, address, priority }) => ({
|
||||
const getHostKey = host =>
|
||||
`${host.name.toLowerCase()}##${host.type.toLowerCase()}##${host.address.toLowerCase()}`;
|
||||
|
||||
const isReserved = (domain) =>
|
||||
domain.name.startsWith('*') || !VALID_RECORD_TYPES.includes(domain.type)
|
||||
|
||||
const diffRecords = (oldRecords, newRecords) => {
|
||||
const isMatchingRecord = (a, b) => getHostKey(a) === getHostKey(b);
|
||||
|
||||
@@ -84,13 +87,9 @@ const executeBatch = (batches) => batches.reduce((promise, batch, index) => {
|
||||
});
|
||||
}, Promise.resolve());
|
||||
|
||||
const isReserved = (domain) =>
|
||||
domain.name.startsWith('*') ||
|
||||
!VALID_RECORD_TYPES.includes(domain.type)
|
||||
|
||||
const getDomainService = ({ cpanel }) => {
|
||||
const fetchZoneRecords = R.compose(
|
||||
then(R.filter(R.complement(isReserved))),
|
||||
then(R.reject(isReserved)),
|
||||
then(R.map(zoneToRecord)),
|
||||
cpanel.zone.fetch
|
||||
);
|
||||
@@ -134,7 +133,6 @@ const getDomainService = ({ cpanel }) => {
|
||||
batchLazyTasks(BATCH_SIZE),
|
||||
R.filter(Boolean),
|
||||
R.map(R.cond([
|
||||
// [R.propEq('name', 'www'), R.always(null)], // Ignore www
|
||||
[R.propEq('type', 'URL'), addRedirection],
|
||||
[R.T, addZoneRecord],
|
||||
])),
|
||||
|
||||
Reference in New Issue
Block a user