chore: set up commitlint, husky, and prettier (#1451)

* chore: add prettier configuration

Signed-off-by: Xe Iaso <me@xeiaso.net>

* format: run prettier tree-wide

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(prettier): ignore intentionally ungrammatical files

Signed-off-by: Xe Iaso <me@xeiaso.net>

* ci: add PR title lint rule

Signed-off-by: Xe Iaso <me@xeiaso.net>

* ci: add DCO check

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: add commitlint and husky

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: add CONTRIBUTING guidelines

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: set SKIP_INTEGRATION in precommit tests

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: update spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

* ci(dco): remove reopened trigger

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: remove dead file

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(prettier): don't format nginx includes

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2026-02-15 13:19:12 +00:00
committed by GitHub
parent 005750903d
commit bf5d66222c
165 changed files with 2854 additions and 1621 deletions

View File

@@ -2,11 +2,8 @@
"bots": [
{
"name": "everyones-invited",
"remote_addresses": [
"0.0.0.0/0",
"::/0"
],
"remote_addresses": ["0.0.0.0/0", "::/0"],
"action": "ALLOW"
}
]
}
}

View File

@@ -1,6 +1,6 @@
bots:
- name: everyones-invited
remote_addresses:
- "0.0.0.0/0"
- "::/0"
action: ALLOW
- name: everyones-invited
remote_addresses:
- "0.0.0.0/0"
- "::/0"
action: ALLOW

View File

@@ -9,4 +9,4 @@
}
],
"dnsbl": false
}
}

View File

@@ -2,4 +2,4 @@ bots:
- name: cloudflare-workers
headers_regex:
CF-Worker: .*
action: DENY
action: DENY

View File

@@ -6,4 +6,4 @@
"action": "CHALLENGE"
}
]
}
}

View File

@@ -1,4 +1,4 @@
bots:
- name: generic-browser
user_agent_regex: Mozilla
action: CHALLENGE
- name: generic-browser
user_agent_regex: Mozilla
action: CHALLENGE

View File

@@ -7,4 +7,4 @@
}
],
"dnsbl": false
}
}

View File

@@ -1,4 +1,4 @@
bots:
- name: everything
user_agent_regex: .*
action: DENY
- name: everything
user_agent_regex: .*
action: DENY

View File

@@ -11,4 +11,4 @@
}
}
]
}
}

View File

@@ -1,8 +1,8 @@
bots:
- name: allow-git-clients
action: ALLOW
expression:
all:
- userAgent.startsWith("git/") || userAgent.contains("libgit")
- >
"Git-Protocol" in headers && headers["Git-Protocol"] == "version=2"
- name: allow-git-clients
action: ALLOW
expression:
all:
- userAgent.startsWith("git/") || userAgent.contains("libgit")
- >
"Git-Protocol" in headers && headers["Git-Protocol"] == "version=2"

View File

@@ -4,4 +4,4 @@
"import": "./testdata/hack-test.json"
}
]
}
}

View File

@@ -1,2 +1,2 @@
bots:
- import: ./testdata/hack-test.yaml
- import: ./testdata/hack-test.yaml

View File

@@ -4,4 +4,4 @@
"import": "(data)/common/keep-internet-working.yaml"
}
]
}
}

View File

@@ -1,2 +1,2 @@
bots:
- import: (data)/common/keep-internet-working.yaml
- import: (data)/common/keep-internet-working.yaml

View File

@@ -76,4 +76,4 @@
"action": "CHALLENGE"
}
]
}
}

View File

@@ -1,8 +1,8 @@
bots:
- name: everything
user_agent_regex: .*
action: DENY
- name: everything
user_agent_regex: .*
action: DENY
status_codes:
CHALLENGE: 200
DENY: 200
DENY: 200

View File

@@ -1,8 +1,8 @@
bots:
- name: everything
user_agent_regex: .*
action: DENY
- name: everything
user_agent_regex: .*
action: DENY
status_codes:
CHALLENGE: 403
DENY: 403
DENY: 403