From 7959165aec1f2901353f8008a87317a57a27425a Mon Sep 17 00:00:00 2001
From: skidoodle <contact@albert.lol>
Date: Fri, 15 Dec 2023 08:24:14 +0100
Subject: [PATCH 1/2] Create dependabot.yml

---
 .github/dependabot.yml | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 .github/dependabot.yml

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..ff9caa9
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+  - package-ecosystem: "npm"
+    directory: "/"
+    schedule:
+      interval: "monthly"

From 4370617f09eb9c4cde8cc5cdfc75286d924e632f Mon Sep 17 00:00:00 2001
From: skidoodle <contact@albert.lol>
Date: Fri, 15 Dec 2023 08:25:47 +0100
Subject: [PATCH 2/2] Create dependabot-autoapprove.yml

---
 .github/workflows/dependabot-autoapprove.yml | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 .github/workflows/dependabot-autoapprove.yml

diff --git a/.github/workflows/dependabot-autoapprove.yml b/.github/workflows/dependabot-autoapprove.yml
new file mode 100644
index 0000000..9fd7ecc
--- /dev/null
+++ b/.github/workflows/dependabot-autoapprove.yml
@@ -0,0 +1,21 @@
+name: Dependabot auto-approve
+on: pull_request
+
+permissions:
+  pull-requests: write
+
+jobs:
+  dependabot:
+    runs-on: ubuntu-latest
+    if: github.actor == 'dependabot[bot]'
+    steps:
+      - name: Dependabot metadata
+        id: metadata
+        uses: dependabot/fetch-metadata@v1
+        with:
+          github-token: "${{ secrets.GITHUB_TOKEN }}"
+      - name: Approve a PR
+        run: gh pr review --approve "$PR_URL"
+        env:
+          PR_URL: ${{github.event.pull_request.html_url}}
+          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}