From d43b19a272cc68aed136fac7ebedc4e31f0e9e9a Mon Sep 17 00:00:00 2001 From: Pia B Date: Mon, 7 Sep 2026 10:38:47 +0200 Subject: [PATCH 1/5] add mastodon.social --- default_servers/mastodon.social.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 default_servers/mastodon.social.yaml diff --git a/default_servers/mastodon.social.yaml b/default_servers/mastodon.social.yaml new file mode 100644 index 0000000..cc591a3 --- /dev/null +++ b/default_servers/mastodon.social.yaml @@ -0,0 +1,2 @@ +--- +weight: 100 From 08d4f4cce96b269a9e449a6c8db91d680925ad64 Mon Sep 17 00:00:00 2001 From: "Pia B." Date: Thu, 10 Sep 2026 14:46:02 +0200 Subject: [PATCH 2/5] add github workflow with opt in check for added default servers (#18) * add optin check * on paths * change response code that was set to 301 for testing, to 200 for prod --- .../workflows/pull-request-opt-in-check.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/pull-request-opt-in-check.yml diff --git a/.github/workflows/pull-request-opt-in-check.yml b/.github/workflows/pull-request-opt-in-check.yml new file mode 100644 index 0000000..e0f678d --- /dev/null +++ b/.github/workflows/pull-request-opt-in-check.yml @@ -0,0 +1,40 @@ +--- +name: Opt-in check +on: + push: + paths: + - 'default_servers/*' + +jobs: + Schema-validation: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v7 + + - name: Get Changed Default Servers + id: getfile + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "files=$(gh pr diff ${{ github.event.pull_request.number }} --name-only | grep '^default_servers/' | xargs -I {} basename {} .yaml | xargs)" >> $GITHUB_OUTPUT + + - name: Request Opt-in file + if: ${{ steps.getfile.outputs.files != '' }} + run: | + FILES="${{ steps.getfile.outputs.files }}" + for domain in $FILES; do + RESPONSE_CODE=$(curl --silent --connect-timeout 5 --output /dev/null -I --write-out "%{http_code}" "http://${domain}/dsr_opt_in.txt" || echo "000") + + if [ "$RESPONSE_CODE" -ne 200 ]; then + echo "$domain is not reachable Statuscode: $RESPONSE_CODE" + FAILED=$((FAILED + 1)) + else + echo "$domain exists and is reachable Statuscode: $RESPONSE_CODE" + fi + done + + if [ "$FAILED" -gt 0 ]; then + echo "not all endpoint could be reached" + exit 1 + fi From df9fea7fefce0a57070da23b97f86c1351e2a61a Mon Sep 17 00:00:00 2001 From: Pia B Date: Thu, 10 Sep 2026 14:56:36 +0200 Subject: [PATCH 3/5] change file to trigger new workflow --- default_servers/mastodon.social.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_servers/mastodon.social.yaml b/default_servers/mastodon.social.yaml index cc591a3..394eea8 100644 --- a/default_servers/mastodon.social.yaml +++ b/default_servers/mastodon.social.yaml @@ -1,2 +1,2 @@ ---- + weight: 100 From f2403df41395441cbca4849d740c5de0b3ee02d5 Mon Sep 17 00:00:00 2001 From: Pia B Date: Thu, 10 Sep 2026 14:57:34 +0200 Subject: [PATCH 4/5] undo change --- default_servers/mastodon.social.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_servers/mastodon.social.yaml b/default_servers/mastodon.social.yaml index 394eea8..cc591a3 100644 --- a/default_servers/mastodon.social.yaml +++ b/default_servers/mastodon.social.yaml @@ -1,2 +1,2 @@ - +--- weight: 100 From f8d14a99a945582f74a085db5a45896a396f05b4 Mon Sep 17 00:00:00 2001 From: Pia B Date: Wed, 7 Oct 2026 15:54:44 +0200 Subject: [PATCH 5/5] change to trigger new workflow --- default_servers/mastodon.social.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/default_servers/mastodon.social.yaml b/default_servers/mastodon.social.yaml index a10939d..cc591a3 100644 --- a/default_servers/mastodon.social.yaml +++ b/default_servers/mastodon.social.yaml @@ -1 +1,2 @@ +--- weight: 100