diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d0a9746f..3d751aee 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,10 @@ +# Documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + version: 2 updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: daily + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 10 diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 00000000..62566904 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,22 @@ +name: Auto-merge + +on: [pull_request] + +jobs: + auto-merge: + runs-on: ubuntu-latest + + permissions: + pull-requests: write + contents: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Squash and merge minor updates + uses: fastify/github-action-merge-dependabot@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + merge-method: squash + target: minor