diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 36b61c4..a88c2dd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,22 @@ version: 2 updates: - - package-ecosystem: 'github-actions' - directory: '/' + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: 'daily' - - package-ecosystem: 'npm' - directory: '/' + interval: "daily" + open-pull-requests-limit: 10 + cooldown: + default-days: 7 + semver-major-days: 30 + semver-minor-days: 14 + semver-patch-days: 3 + - package-ecosystem: "npm" + directory: "/" schedule: - interval: 'daily' + interval: "daily" + open-pull-requests-limit: 10 + cooldown: + default-days: 7 + semver-major-days: 30 + semver-minor-days: 14 + semver-patch-days: 3 diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..26eb6df --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,19 @@ +name: Auto-merge + +on: [pull_request] + +jobs: + auto-merge: + runs-on: ubuntu-latest + + permissions: + pull-requests: write + contents: write + + steps: + - name: Squash and merge minor updates + uses: fastify/github-action-merge-dependabot@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + merge-method: squash + target: minor