From 11bf89c7587f0720c9e8467b3bbe928dadb21dbc Mon Sep 17 00:00:00 2001 From: asepharyana <48643666+asepharyana@users.noreply.github.com> Date: Tue, 25 Aug 2026 20:33:05 +0700 Subject: [PATCH] feat: add dependabot auto-merge workflow --- .github/dependabot-auto-merge.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/dependabot-auto-merge.yml diff --git a/.github/dependabot-auto-merge.yml b/.github/dependabot-auto-merge.yml new file mode 100644 index 0000000..fd8a4b3 --- /dev/null +++ b/.github/dependabot-auto-merge.yml @@ -0,0 +1,24 @@ +name: dependabot-auto-merge + +on: + pull_request: + branches: + - main + - master + +# Auto-merge Dependabot PRs with passing CI +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + # Only for Dependabot PRs + if: github.actor == 'dependabot[bot]' + steps: + - name: Auto-merge + run: gh pr merge --auto --merge "$PR_NUMBER" + env: + PR_NUMBER: ${{ github.event.number }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}