From 0d4433159be2def1f5da9bbddf352197da062a60 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:44:34 +0100 Subject: [PATCH 1/4] Create dev-branch --- .github/workflows/dev-branch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/dev-branch diff --git a/.github/workflows/dev-branch b/.github/workflows/dev-branch new file mode 100644 index 00000000..9e5b36ed --- /dev/null +++ b/.github/workflows/dev-branch @@ -0,0 +1,23 @@ +name: Make sure new PRs are sent to development + +on: + pull_request_target: + types: [opened, edited] + +jobs: + check-branch: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + # Do not checkout the repository here. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for more information + - uses: Vankka/pr-target-branch-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + target: main + exclude: dev # Don't prevent going from development -> main + change-to: dev + comment: | + Your PR's base branch was set to `main`, PRs should be set to target `dev`. + The base branch of this PR has been automatically changed to `development`, please check that there are no merge conflicts From 639081cb3d088556b519f853ff490fa07f421b8b Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:45:51 +0100 Subject: [PATCH 2/4] Rename dev-branch to dev-branch.yaml --- .github/workflows/{dev-branch => dev-branch.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{dev-branch => dev-branch.yaml} (100%) diff --git a/.github/workflows/dev-branch b/.github/workflows/dev-branch.yaml similarity index 100% rename from .github/workflows/dev-branch rename to .github/workflows/dev-branch.yaml From 3b7e3dc243bfd7b91b10f4e1ac14912fbad342ff Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:11:47 +0100 Subject: [PATCH 3/4] Remove dummy variables --- .env.example | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 79c4d3c5..e26c1e56 100644 --- a/.env.example +++ b/.env.example @@ -10,15 +10,14 @@ FRONTEND_URL="http://localhost:4200" NEXT_PUBLIC_BACKEND_URL="http://localhost:3000" BACKEND_INTERNAL_URL="http://localhost:3000" -## These are dummy values, you must create your own from Cloudflare. ## Remember to set your public internet IP address in the allow-list for the API token. ## ## Cloudflare is currently required to save things like social media avatars for accounts. -CLOUDFLARE_ACCOUNT_ID="QhcMSXQyPuMCRpSQcSYdEuTYgHeCXHbu" -CLOUDFLARE_ACCESS_KEY="dcfCMSuFEeCNfvByUureMZEfxWJmDqZe" -CLOUDFLARE_SECRET_ACCESS_KEY="zTTMXBmtyLPwHEdpACGHgDgzRTNpTJewiNriLnUS" -CLOUDFLARE_BUCKETNAME="postiz" -CLOUDFLARE_BUCKET_URL="https://QhcMSXQyPuMCRpSQcSYdEuTYgHeCXHbu.r2.cloudflarestorage.com/" +CLOUDFLARE_ACCOUNT_ID="your-account-id" +CLOUDFLARE_ACCESS_KEY="your-access-key" +CLOUDFLARE_SECRET_ACCESS_KEY="your-secret-access-key" +CLOUDFLARE_BUCKETNAME="your-bucket-name" +CLOUDFLARE_BUCKET_URL="https://your-bucket-url.r2.cloudflarestorage.com/" CLOUDFLARE_REGION="auto" From 43b015ff1d717236e3c69d34f52cc2e0c4d93eee Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:21:15 +0100 Subject: [PATCH 4/4] Temporary disable --- .github/workflows/{dev-branch.yaml => dev-branch} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{dev-branch.yaml => dev-branch} (100%) diff --git a/.github/workflows/dev-branch.yaml b/.github/workflows/dev-branch similarity index 100% rename from .github/workflows/dev-branch.yaml rename to .github/workflows/dev-branch