Skip to content

Commit c95a7ca

Browse files
Merge branch 'main' into main
2 parents bd2ac8f + 53e98f9 commit c95a7ca

File tree

7,956 files changed

+19038
-13511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,956 files changed

+19038
-13511
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- "tests/*"
1111
- "util/*"
1212
- ".github/workflows/ci.yml"
13-
- "dnsconfig.js"
1413

1514
workflow_dispatch:
1615

@@ -27,25 +26,28 @@ jobs:
2726

2827
- run: npm install
2928

30-
- name: Get PR author
31-
if: github.event_name == 'pull_request'
32-
run: echo "PR_AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
33-
34-
- name: Get PR labels
29+
- name: Fetch PR information
3530
if: github.event_name == 'pull_request'
3631
run: |
32+
echo "PR_AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
33+
echo "PR_AUTHOR_ID=${{ github.event.pull_request.user.id }}" >> $GITHUB_ENV
34+
3735
LABELS=$(gh api --jq '[.labels[].name]' /repos/{owner}/{repo}/pulls/${{ github.event.number }})
3836
echo "PR_LABELS=$LABELS" >> $GITHUB_ENV
39-
env:
40-
GH_TOKEN: ${{ github.token }}
4137
42-
- name: Get changed files
43-
if: github.event_name == 'pull_request'
44-
run: |
45-
FILES=$(gh api --jq '[.[] | .filename]' /repos/{owner}/{repo}/pulls/${{ github.event.number }}/files)
38+
FILES=$(gh api --jq '[.[] | select(.status != "removed") | .filename]' /repos/{owner}/{repo}/pulls/${{ github.event.number }}/files)
4639
echo "CHANGED_FILES=$FILES" >> $GITHUB_ENV
40+
41+
REMOVED_FILE_DATA=$(gh api --jq '[.[] | select(.status == "removed") | {name: .filename, data: .patch}]' /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files)
42+
echo "DELETED_FILES=$REMOVED_FILE_DATA" >> $GITHUB_ENV
4743
env:
4844
GH_TOKEN: ${{ github.token }}
4945

46+
- name: Run DNSControl tests
47+
if: github.event_name == 'pull_request' && contains(fromJson(env.CHANGED_FILES), 'dnsconfig.js')
48+
uses: is-a-dev/dnscontrol-action@main
49+
with:
50+
args: check
51+
5052
- name: Run tests
5153
run: npx ava tests/*.test.js --timeout=1m

.github/workflows/dnscontrol.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: DNSControl
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- ".github/workflows/dnscontrol.yml"
8+
- "dnsconfig.js"
9+
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.ref }}-dnscontrol
14+
cancel-in-progress: true
15+
16+
jobs:
17+
tests:
18+
name: Tests
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: is-a-dev/dnscontrol-action@main
24+
with:
25+
args: check

.github/workflows/label.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
name: Pull Request Labeler
1+
name: Label
2+
23
on:
34
schedule:
45
- cron: "*/10 * * * *"
6+
57
jobs:
6-
labeler:
8+
pull-requests:
9+
name: Pull Requests
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: docker://docker.io/ilyam8/periodic-pr-labeler:v0.1.1
12+
- uses: ilyam8/periodic-pr-labeler@v0.3.0
1013
env:
1114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1215
GITHUB_REPOSITORY: ${{ github.repository }}

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- "domains/*"
88
- ".github/workflows/publish.yml"
9+
- "util/reserved.json"
910
- "dnsconfig.js"
1011

1112
workflow_dispatch:
@@ -21,11 +22,6 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v4
2324

24-
- name: Run tests
25-
run: |
26-
npm install
27-
npx ava tests/*.test.js
28-
2925
- name: Generate creds.json
3026
run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json
3127

.github/workflows/raw-api.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
paths:
77
- "domains/*"
88
- ".github/workflows/raw-api.yml"
9+
- "util/raw-api.js"
10+
- "util/reserved.json"
911

1012
workflow_dispatch:
1113

@@ -21,18 +23,15 @@ jobs:
2123
steps:
2224
- uses: actions/checkout@v4
2325

24-
- uses: actions/checkout@v4
25-
with:
26-
repository: is-a-dev/raw-api
27-
path: raw-api
28-
token: ${{ secrets.BOT }}
29-
3026
- uses: actions/setup-node@v4
3127
with:
3228
node-version: 20.x
3329

3430
- name: Update Data
35-
run: node raw-api/scripts/update.js
31+
run: node util/raw-api.js
32+
33+
- name: Create CNAME
34+
run: echo "raw.is-a.dev" > raw-api/CNAME
3635

3736
- name: Commit
3837
uses: cpina/github-action-push-to-another-repository@main

.github/workflows/stale.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
name: StaleBOT
1+
name: Stale
22

33
on:
4-
workflow_dispatch:
54
schedule:
6-
- cron: "30 14 * * *"
5+
- cron: "0 12 * * *"
6+
7+
workflow_dispatch:
78

89
jobs:
9-
stale:
10+
label:
11+
name: Label
1012
runs-on: ubuntu-latest
1113
steps:
1214
- uses: actions/stale@v3

DISCORD_RULES.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Discord Server Rules
2+
3+
## Introduction
4+
This document is intended for staff and community members. It covers what is and isn’t allowed in the server, along with punishment lengths and more.
5+
6+
## Server Rules
7+
8+
1. Follow Discord's [ToS](https://discord.com/terms) and [Community Guidelines](https://discord.com/guidelines).
9+
1. Modified clients are allowed, however abusing them may result in a ban.
10+
2. Show human decency and use common sense above all else. Keep our server clean and be respectful of others.
11+
1. No NSFW. This includes, images, discussions of anything on the topic or "funny" jokes, gore, role playing etc.
12+
2. Do not discuss mutes, bans, warnings, or any related topics in public chats. They do not serve as a topic of discussion.
13+
3. Refrain from mini modding. You aren't a moderator; use */report* or ping one staff member.
14+
4. No slurs, excessive swearing, abuse, bait, harassment, etc.
15+
3. Do not post malicious links and/or files.
16+
4. No attempting to bypass, intentionally misinterpret, or find loopholes in the rules.
17+
1. A moderator's word is final. When told to cease, cease.
18+
5. Refrain from asking for support in non-support channels; you will not receive help there. If you need help, then open a ticket in \#⁠get-help only after you have read the is-a.dev documentation and weren't answered there.
19+
6. Do not beg for your pull request to be merged or for anything else. Send a link to your pull request *once* in \#pull-requests and patiently wait for a maintainer to get to it. Do *not* ping maintainers to merge pull requests.
20+
7. Your account is your responsibility.
21+
1. If someone else is using your account and breaks these rules, you are responsible.
22+
2. If your account gets compromised and gets banned from this server, you may request an unban once you recover it.
23+
8. Do not attempt to bypass our auto moderation system.
24+
9. Do not advertise your website, bot or anything else outside of \#showcase.
25+
1. Bot invite links are not allowed in \#showcase.
26+
10. Do not attempt to bypass a punishment on your account.
27+
1. This will result in an immediate ban on your account.
28+
11. Do not use bot commands outside of \#commands.
29+
12. English only.
30+
13. Where applicable, this server is governed by our [Terms of Service](https://is-a.dev/terms).
31+
32+
## Moderation Ethic
33+
34+
1. Don't allow yourself to show bias or prejudice. For example, don't “let something slide” solely because the member in question is a respected person within the community. It is not harsh or wrong to call someone out and request somebody to cease something that isn't allowed on the server.
35+
2. Don't be rude. A problem that is fairly common in the server is that some maintainers are rude to new members. It's ridiculous and sets a horrible example.
36+
3. Don't abuse your privileges. You were granted them for a reason \- because we trusted you. Please don't abuse that trust and use them for things they aren't meant for, *even as a joke*. Simply put, it's fair to nobody.
37+
4. Follow the rules. Especially regarding NSFW language and content.
38+
5. Staff are not immune to punishment. If you are caught breaking the rules, you will be punished, just like any other regular member.
39+
40+
## Staff Team Respect
41+
42+
**Being respectful to each other**:
43+
We are working together, this is not a competition, so act like it. Everyone here should be mature enough to be able to at least respect each other, regardless of any differences or issues we have between us. If you have an issue with another staff member, take it to DMs, do not share your problems with the rest of the server.
44+
45+
**Regarding roles and permissions**:
46+
If someone receives a certain role or position that is higher than you, do not go complaining about it. We are old enough to talk it out properly and not have to argue. What matters is that the service and server runs peacefully, all this does is create drama. If you disagree with someone receiving a specific role or permission, you can talk about it in **private** channels, do not talk about these topics outside of staff channels, and try not to argue.
47+
48+
## Enforcing the Rules
49+
50+
* ***Miscellaneous offences***:
51+
* Extremely flashy or earrape media and memes: 3 hour mute
52+
* Hoisting: Change nickname to *Moderated Nickname*
53+
* Begging for roles/PR merging: 1-3 hour mute
54+
* Asking for support in a non-support channel *after* being told it is the wrong channel: 30 minute mute
55+
* Impersonation of a staff member: Ban
56+
* Mention spam, chat flooding, text walls, command spam: 1-3 hour mute
57+
* Arguing after being asked to stop: 1 hour mute, if continued, 1 day mute
58+
* Breaking Discord's [ToS](https://discord.com/terms)/[Guidelines](https://discord.com/guidelines): Ban
59+
* Modified clients are allowed, assuming they are not using them for abusive purposes. This is because they are extremely hard to moderate.
60+
* Doxxing/raiding (including threats): Ban \+ report to Discord
61+
* Posting malicious links, files: Ban
62+
* Harassment of a user: 3 hour mute
63+
* Bypassing mutes/bans: Ban
64+
* ***Death threats***:
65+
* kill yourself/kill myself jokes (including GIFs): 12 hour mute
66+
* Severe offence (above, but not a joke) Ban
67+
* ***Slurs***:
68+
* Racial slurs: Ban
69+
* LGBT slurs: 1 day mute
70+
* *“retard”* is allowed, however it cannot be targeted towards a user
71+
* Permitted uses: “that's retarded”
72+
* Disallowed uses: “@user is retarded”
73+
* 1 day mute
74+
* ***Trolling***:
75+
* Non-severe offence (e.g. just being stupid, asking dumb questions)
76+
* 3 hour mute
77+
* Severe offence (e.g. abusing moderator permissions)
78+
* Ban
79+
* ***Advertising***:
80+
* DM advertising: Ban
81+
* Malicious advertising: Ban
82+
* Advertising in server: 1 hour mute, if continued, ban
83+
* *Advertising is allowed in \#showcase, but mainly only websites and bots.*
84+
* ***NSFW***:
85+
* NSFW jokes/humour: 1-3 hour mute
86+
* NSFW content/media: Ban
87+
* CP: Ban \+ report to Discord
88+
* CP jokes: Ban \+ report messages

README.md

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,43 @@
33
</p>
44

55
<p align="center">
6-
<img alt="Domains" src="https://img.shields.io/github/directory-file-count/is-a-dev/register/domains?color=5c46eb&label=domains&style=for-the-badge">
7-
<img alt="Open Pull Requests" src="https://img.shields.io/github/issues-raw/is-a-dev/register?color=5c46eb&label=issues&style=for-the-badge">
8-
<img alt="Open Issues" src="https://img.shields.io/github/issues-pr-raw/is-a-dev/register?color=5c46eb&label=pull%20requests&style=for-the-badge">
6+
<img alt="Domains" src="https://shields.wdh.app/github/directory-file-count/is-a-dev/register/domains?color=5c46eb&label=domains&style=for-the-badge">
7+
<img alt="Open Pull Requests" src="https://shields.wdh.app/github/issues-raw/is-a-dev/register?color=5c46eb&label=issues&style=for-the-badge">
8+
<img alt="Open Issues" src="https://shields.wdh.app/github/issues-pr-raw/is-a-dev/register?color=5c46eb&label=pull%20requests&style=for-the-badge">
99
<br>
10-
<img alt="Publish" src="https://github.com/is-a-dev/register/actions/workflows/publish.yml/badge.svg">
1110
</p>
1211

1312
<h1 align="center">is-a.dev</h1>
1413

15-
<p align="center"><strong>is-a.dev</strong> is a service that allows developers to get a sweet-looking <code>.is-a.dev</code> domain for their personal websites.</p>
14+
<p align="center"><strong>is-a.dev</strong> is a service that allows developers to get a sweet-looking <code>.is-a.dev</code> subdomain for their personal websites.</p>
1615

1716
## Announcements & Status Updates
18-
Please join our [Discord server](https://discord.gg/is-a-dev-830872854677422150) for announcements, updates & upgrades, and downtimes regarding the service.
19-
Not all of these will be posted on GitHub, however they will always be posted in our Discord server.
17+
Please join our [Discord server](https://discord.gg/is-a-dev-830872854677422150) for announcements, updates & upgrades, and downtime notifications regarding the service.
18+
Not all of these will be posted on GitHub[^1], however they will always be posted in our Discord server.
19+
20+
[^1]: We usually only post announcements on GitHub in the case of a serious incident. In that case, you'll likely see it at the top of this README file.
2021

2122
<a href="https://discord.gg/is-a-dev-830872854677422150"><img alt="Discord Server" src="https://invidget.wdh.app/is-a-dev-830872854677422150"></a>
2223

2324
# Register
24-
## How to Register
2525
> If you want a more visual guide, check out [this blog post](https://wdh.gg/tX3ghge).
2626
27-
- [Fork](https://github.com/is-a-dev/register/fork) this repository
28-
- Add a new file called `your-domain-name.json` in the `domains` folder to register `your-domain-name.is-a.dev`
29-
- [Read the documentation](https://docs.is-a.dev)
27+
- [Fork](https://github.com/is-a-dev/register/fork) this repository.
28+
- Add a new file called `your-domain-name.json` in the `domains` folder to register `your-domain-name.is-a.dev`.
29+
- [Read the documentation](https://docs.is-a.dev).
3030
- If you are applying for NS records please read [this](#ns-records).
31-
- Your pull request will be reviewed and merged. *Make sure to keep an eye on it incase we need you to make any changes!*
32-
- After the pull request is merged, please allow up to 24 hours for the changes to propagate
33-
- Enjoy your new `.is-a.dev` domain! Please consider leaving us a star ⭐️ to help support us!
31+
- Your pull request will be reviewed and merged. *Make sure to keep an eye on it in case we need you to make any changes!*
32+
- After the pull request is merged, please allow up to 24 hours for the changes to propagate.
33+
- Enjoy your new `.is-a.dev` subdomain! Please consider leaving us a star ⭐️ to help support us!
3434

3535
### NS Records
36-
When applying for NS records, please be aware we already support a [wide range of DNS records](https://docs.is-a.dev/faq/#which-records-are-supported), so you may not need them.
36+
When applying for NS records, please be aware we already support a [wide range of DNS records](https://docs.is-a.dev/faq/#which-records-are-supported), so likely do not not need them.
3737

38-
In your PR, please explain why you need NS records, including examples, to help mitigate potential abuse. Refer to the [FAQ](https://docs.is-a.dev/faq/#who-can-use-ns-records) for guidelines on allowed usage. Good examples of NS record requests are [#17592](https://github.com/is-a-dev/register/pull/17592) and [#18026](https://github.com/is-a-dev/register/pull/18026).
38+
In your PR, please explain why you need NS records, including examples, to help mitigate potential abuse. Refer to the [FAQ](https://docs.is-a.dev/faq/#who-can-use-ns-records) for guidelines on allowed usage.
3939

4040
***Pull requests adding NS records without sufficient reasoning will be closed.***
4141

42-
> Also see: [Why are you so strict with NS records?](https://docs.is-a.dev/faq/#why-are-you-so-strict-with-ns-records)
43-
44-
> [!NOTE]
45-
> You can bypass these requirements[^1] by donating just $2 [here](https://wdh.gg/pvNCdvs), or via [GitHub Sponsors](https://wdh.gg/sponsor). As a thank-you, you'll also receive a special role in our [Discord server](https://discord.gg/is-a-dev-830872854677422150)!
46-
>
47-
> If you donate, email william@is-a.dev or DM `@williamharrison` on Discord with your receipt and PR link.
48-
49-
[^1]: Requests deemed to be made with malicious intent may be denied, with a refund provided.
42+
> Also see: [Why are you so strict with NS records](https://docs.is-a.dev/faq/#why-are-you-so-strict-with-ns-records)?
5043
5144
## Report Abuse
5245
If you find any subdomains being used for abusive purposes, please report them by [creating an issue](https://github.com/is-a-dev/register/issues/new?assignees=&labels=report-abuse&projects=&template=report-abuse.md&title=Report+abuse) with the relevant evidence.

0 commit comments

Comments
 (0)