From 5f33adfff1a80ceb01f7a7c9d1d659c6f7493b75 Mon Sep 17 00:00:00 2001 From: iostpa Date: Wed, 12 Aug 2026 22:08:19 +0300 Subject: [PATCH 1/5] feat: add workflow for prettifier --- .github/workflows/prettifier.yml | 51 ++++++++++++++++++++++++++++++++ .github/workflows/stale.yml | 2 +- .prettierignore | 10 +++++++ .prettierrc | 13 ++++++++ package-lock.json | 19 +++++++++++- package.json | 5 ++-- 6 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/prettifier.yml create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.github/workflows/prettifier.yml b/.github/workflows/prettifier.yml new file mode 100644 index 0000000000..170158c4ef --- /dev/null +++ b/.github/workflows/prettifier.yml @@ -0,0 +1,51 @@ +name: Prettifier + +on: + schedule: + - cron: "0 0 * * 0" # Runs every week on Sunday + + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + actions: write + +jobs: + prettify: + name: Prettify JSON files + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + + - run: npm ci + + - name: Run the prettifier and open a PR if it changed something + run: | + set -euo pipefail + + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + + BRANCH="prettify-json-files" + + git push origin --delete "$BRANCH" 2>/dev/null || true + + git checkout -b "$BRANCH" + npx prettier . --write + + if git diff --quiet && git diff --cached --quiet; then + echo "No formatting changes needed." + exit 0 + fi + + git add . + COUNT=$(git status -s -uno | wc -l) + git commit -m "chore(domains): prettify all json files" + git push --set-upstream origin "$BRANCH" + + gh pr create -l maintainer -t "chore(domains): prettify all json files" -b "$COUNT file(s) have been modified." + env: + GH_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 372b4980b6..e558dfe865 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,7 @@ name: Stale on: schedule: - - cron: "0 12 * * *" + - cron: "0 12 * * *" # Runs at 12:00 workflow_dispatch: diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..bfc9ce6e7f --- /dev/null +++ b/.prettierignore @@ -0,0 +1,10 @@ +*.md +.github +media +tests/* +util/* +*.js +package*.json +.prettier* +.gitignore +LICENSE \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..d05bd6ec02 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,13 @@ +{ + "trailingComma": "none", + "overrides": [ + { + "files": "*.json", + "options": { + "parser": "json", + "printWidth": 1, + "tabWidth": 4 + } + } + ] +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 44c885a232..463469836a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,8 @@ "": { "devDependencies": { "ava": "^8.0.1", - "fs-extra": "^11.4.0" + "fs-extra": "^11.4.0", + "prettier": "3.9.6" } }, "node_modules/@cto.af/wtf8": { @@ -1405,6 +1406,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/prettier": { + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz", + "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/pretty-ms": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.3.0.tgz", diff --git a/package.json b/package.json index d1d243fba6..18e2a8b0a2 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ }, "devDependencies": { "ava": "^8.0.1", - "fs-extra": "^11.4.0" + "fs-extra": "^11.4.0", + "prettier": "3.9.6" } -} \ No newline at end of file +} From 7b752e28bb5b41b83fd539de13da0a0e33e98f57 Mon Sep 17 00:00:00 2001 From: Sudhanshu Gautam Date: Sun, 16 Aug 2026 12:22:42 +0530 Subject: [PATCH 2/5] Register neta.is-a.dev --- domains/neta.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/neta.json diff --git a/domains/neta.json b/domains/neta.json new file mode 100644 index 0000000000..31df10b28b --- /dev/null +++ b/domains/neta.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "sudhanshug16", + "email": "sudhanshu@noscrubs.io" + }, + "records": { + "CNAME": "sudhanshug16.github.io" + } +} From 08417a7fcb88752d0438046e359b3edc4494ad27 Mon Sep 17 00:00:00 2001 From: Sudhanshu Gautam Date: Sun, 16 Aug 2026 12:28:09 +0530 Subject: [PATCH 3/5] Register neta.is-a.dev --- domains/neta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/neta.json b/domains/neta.json index 31df10b28b..2bafd00334 100644 --- a/domains/neta.json +++ b/domains/neta.json @@ -1,7 +1,7 @@ { "owner": { "username": "sudhanshug16", - "email": "sudhanshu@noscrubs.io" + "email": "me@sudhanshug.com" }, "records": { "CNAME": "sudhanshug16.github.io" From 76dd918e356d960afddd9a6a7a4db2acd09aa273 Mon Sep 17 00:00:00 2001 From: Sudhanshu Gautam Date: Sun, 16 Aug 2026 12:33:54 +0530 Subject: [PATCH 4/5] Add GitHub Pages verification TXT for neta.is-a.dev --- domains/_github-pages-challenge-sudhanshug16.neta.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 domains/_github-pages-challenge-sudhanshug16.neta.json diff --git a/domains/_github-pages-challenge-sudhanshug16.neta.json b/domains/_github-pages-challenge-sudhanshug16.neta.json new file mode 100644 index 0000000000..bf510457ab --- /dev/null +++ b/domains/_github-pages-challenge-sudhanshug16.neta.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "sudhanshug16", + "email": "me@sudhanshug.com" + }, + "records": { + "TXT": "3e46afa2dd0788bdb86707db3a59b2" + } +} From ab72f3edf83df0d499de778ba675c70efce18679 Mon Sep 17 00:00:00 2001 From: Hydrofluoric Acid <139669368+AcideFluorhydrique@users.noreply.github.com> Date: Mon, 17 Aug 2026 02:53:33 +0800 Subject: [PATCH 5/5] Add arielx --- domains/_git-pages-repository.arielx.json | 9 +++++++++ domains/arielx.json | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 domains/_git-pages-repository.arielx.json create mode 100644 domains/arielx.json diff --git a/domains/_git-pages-repository.arielx.json b/domains/_git-pages-repository.arielx.json new file mode 100644 index 0000000000..0ceca4f431 --- /dev/null +++ b/domains/_git-pages-repository.arielx.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "AcideFluorhydrique", + "email": "ariel@netc.fr" + }, + "records": { + "TXT": "https://codeberg.org/lanticy/pages.git" + } +} diff --git a/domains/arielx.json b/domains/arielx.json new file mode 100644 index 0000000000..6baf38e2c5 --- /dev/null +++ b/domains/arielx.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "AcideFluorhydrique", + "email": "ariel@netc.fr" + }, + "records": { + "CNAME": "codeberg.page" + } +}