Skip to content

Commit 04448e1

Browse files
committed
initial commit
0 parents  commit 04448e1

32 files changed

Lines changed: 2299 additions & 0 deletions

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* @pencilnav
2+
3+
/domains/ @devdotwales/maintainers
4+
*.md @devdotwales/maintainers

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: bug
3+
about: Use this template to report any bugs you've encountered related to the project
4+
title: "What bug did you encounter?"
5+
labels: bug
6+
---
7+
8+
### Your subdomain
9+
10+
### Expected outcome
11+
12+
### Observed outcome
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: question
3+
about: Use this template to ask any questions about the service
4+
title: "Whats your question"
5+
labels: question
6+
---
7+
8+
### Your question
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: report-abuse
3+
about: Use this template to report abusive domains
4+
title: "Report abuse"
5+
labels: report-abuse
6+
---
7+
8+
### Domain
9+
10+
### Reason
11+
<!-- Explain why you think this domain is being abused -->
12+
13+
### Proof
14+
<!-- Proof of the domain being abused -->
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: suggestion
3+
about: Use this template for feedbacks and suggestions
4+
title: "Feedback/suggestion"
5+
labels: suggestion
6+
---
7+
8+
### What do you want added?

.github/ISSUE_TEMPLATE/support.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: support
3+
about: Use this template if you need any support with your domain
4+
title: "Support"
5+
labels: support
6+
---
7+
8+
### Your subdomain
9+
10+
### The issue

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
YOU MUST FILL OUT THIS TEMPLATE FOR YOUR PR TO BE ACCEPTED!
3+
-->
4+
5+
# Requirements
6+
<!-- Your domain MUST pass ALL the requirements below, otherwise it WILL BE DENIED. -->
7+
<!-- Change each checkbox to [x] (all lowercase, with no spaces between the brackets) to mark it as completed. -->
8+
9+
- [ ] I **agree** to the [Terms of Service](https://github.com/devdotwales/dev.wales/blob/main/TERMS_OF_SERVICE.md). <!-- Your request MUST follow the TOS to be approved. -->
10+
- [ ] My file is following the [domain structure](https://docs.is-a.dev/domain-structure/). <!-- Your JSON file is in the domains directory, the name is valid, etc. -->
11+
- [ ] My website is **reachable** and **completed**. <!-- We do not permit simple "Hello, world!" or simply copied template websites with minimal changes. -->
12+
- [ ] My website is **software development** or **technology** related. <!-- Only your root subdomain needs to meet this requirement. -->
13+
- [ ] My website is **not for profit** and **non commercial**. <!-- Your website's purpose should not be to generate any form of revenue or profit. -->
14+
- [ ] I have provided contact information in the `owner` key. <!-- Provide your email in the `email` field or another platform (e.g. X/Twitter or Discord) for contact. -->
15+
- [ ] I have provided a preview of my website below. <!-- This step is required for your PR to be approved. -->
16+
17+
# Website Preview
18+
<!-- Provide a link AND screenshot of your website below. -->

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
push:
7+
branches: [main]
8+
paths:
9+
- "domains/*"
10+
- "tests/*"
11+
- "util/*"
12+
- ".github/workflows/ci.yml"
13+
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: ${{ github.ref }}-ci
18+
19+
jobs:
20+
tests:
21+
name: Tests
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- run: npm install
27+
28+
- name: Fetch PR information
29+
if: github.event_name == 'pull_request'
30+
run: |
31+
echo "PR_AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
32+
echo "PR_AUTHOR_ID=${{ github.event.pull_request.user.id }}" >> $GITHUB_ENV
33+
34+
LABELS=$(gh api --jq '[.labels[].name]' /repos/{owner}/{repo}/pulls/${{ github.event.number }})
35+
echo "PR_LABELS=$LABELS" >> $GITHUB_ENV
36+
37+
FILES=$(gh api --jq '[.[] | select(.status != "removed") | .filename]' /repos/{owner}/{repo}/pulls/${{ github.event.number }}/files)
38+
echo "CHANGED_FILES=$FILES" >> $GITHUB_ENV
39+
40+
REMOVED_FILE_DATA=$(gh api --jq '[.[] | select(.status == "removed") | {name: .filename, data: .patch}]' /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files)
41+
echo "DELETED_FILES=$REMOVED_FILE_DATA" >> $GITHUB_ENV
42+
env:
43+
GH_TOKEN: ${{ github.token }}
44+
45+
- name: Run DNSControl tests
46+
if: github.event_name == 'pull_request' && contains(fromJson(env.CHANGED_FILES), 'dnsconfig.js')
47+
uses: is-a-dev/dnscontrol-action@main
48+
with:
49+
args: check
50+
51+
- name: Run tests
52+
run: npx ava tests/*.test.js --timeout=1m

.github/workflows/dnscontrol.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
15+
jobs:
16+
tests:
17+
name: Tests
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: is-a-dev/dnscontrol-action@main
23+
with:
24+
args: check

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "domains/*"
8+
- ".github/workflows/publish.yml"
9+
- "util/reserved.json"
10+
- "dnsconfig.js"
11+
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.ref }}-publish
16+
17+
jobs:
18+
dns:
19+
name: DNS
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Generate creds.json
25+
run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"$CLOUDFLARE_API_TOKEN"}}' > ./creds.json
26+
27+
- name: Push DNS records
28+
uses: is-a-dev/dnscontrol-action@main
29+
env:
30+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
31+
with:
32+
args: push

0 commit comments

Comments
 (0)