diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8df867c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/backend/requirements.txt" # Location of package manifests + schedule: + interval: "daily" diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..e56b95a --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,21 @@ +name: Auto approve and merge dependency bump PRs + +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + auto-approve: + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - run: gh pr review --approve "$PR_URL" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} + - run: gh pr merge --auto --squash "$PR_URL" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} \ No newline at end of file diff --git a/backend/main.py b/backend/main.py index add36dc..3c89dfe 100644 --- a/backend/main.py +++ b/backend/main.py @@ -621,7 +621,8 @@ def run(): f = open(os.devnull, "w") sys.stdout = f - run = uvicorn.run( + def run(): + uvicorn.run( app, host="0.0.0.0", port=PORT, diff --git a/frontend/package.json b/frontend/package.json index f2b925e..aac51cd 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "trilogy-studio", "private": true, - "version": "0.0.9", + "version": "0.0.10", "description": "A desktop IDE for querying, creating, and debugging PreQL models.", "author": { "name": "Trilogy/PreQL Team",