From 7570a546498c079b8d01e7bd541a09ac09fc94e1 Mon Sep 17 00:00:00 2001 From: Vibhakar Solanki Date: Sun, 19 Mar 2023 20:55:54 +0530 Subject: [PATCH 1/3] feat: add github sponsors info --- .github/funding.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/funding.yaml b/.github/funding.yaml index 498559d..f9b1ada 100644 --- a/.github/funding.yaml +++ b/.github/funding.yaml @@ -1 +1,2 @@ +github: [battlefield-portal-community] patreon: battlefield_portal_community From bd0393dd625191d392d85fe3cb8d1437da47c620 Mon Sep 17 00:00:00 2001 From: p0lygun Date: Sat, 25 Mar 2023 17:18:02 +0530 Subject: [PATCH 2/3] fix: add CSRF_TRUSTED_ORIGINS to settings --- bfportal/bfportal/settings/production.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bfportal/bfportal/settings/production.py b/bfportal/bfportal/settings/production.py index ec4a833..737375e 100644 --- a/bfportal/bfportal/settings/production.py +++ b/bfportal/bfportal/settings/production.py @@ -8,6 +8,7 @@ SECRET_KEY = os.environ.get("PRODUCTION_KEY") ALLOWED_HOSTS = os.environ.get("PRODUCTION_HOST").split(",") ALLOWED_HOSTS.append("localhost") +CSRF_TRUSTED_ORIGINS = ["https://*.bfportal.gg/"] logger.debug(f"Allowed Hosts {ALLOWED_HOSTS}") try: From 2a0c43587f457a85db0816f86e16bfd75f664c8b Mon Sep 17 00:00:00 2001 From: Vibhakar Solanki Date: Sat, 25 Mar 2023 17:22:53 +0530 Subject: [PATCH 3/3] feat: add WIP action to manage PRs --- .github/workflows/wip.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/wip.yml diff --git a/.github/workflows/wip.yml b/.github/workflows/wip.yml new file mode 100644 index 0000000..6e71c2e --- /dev/null +++ b/.github/workflows/wip.yml @@ -0,0 +1,12 @@ +name: WIP +on: + pull_request: + types: [opened, synchronize, reopened, edited] + +jobs: + wip: + runs-on: ubuntu-latest + steps: + - uses: wip/action@v1.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}