From b1edce47b9b0b4738c53456e74587b24d0e9574d Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Thu, 3 Dec 2026 21:38:21 +0700 Subject: [PATCH] ci: auto-merge Dependabot PRs with the reusable workflow Dependabot pull requests here wait for a maintainer to merge them. Of the 4 opened since 2026-09-01, 3 were merged, all by hand, after a median wait of 4 days, and one is still open. Add a caller of the reusable dependabot-auto-merge workflow from projectdiscovery/workflows, the workflow that projectdiscovery/workflows#10 moved other repositories to. It runs on pull requests into main, runs the Go compatibility checks (go mod verify, go vet, and a go.mod sync check) on a Dependabot pull request's head commit, and merges only that commit through the GitHub API with GITHUB_TOKEN. Once #55 is merged, bump-version.yaml releases a merged Go module update at its next weekly run. Closes: #56 Refs: projectdiscovery/workflows#10 Signed-off-by: Dwi Siswanto --- .github/workflows/dependabot-auto-merge.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/dependabot-auto-merge.yaml diff --git a/.github/workflows/dependabot-auto-merge.yaml b/.github/workflows/dependabot-auto-merge.yaml new file mode 100644 index 0000000..27af7d2 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yaml @@ -0,0 +1,15 @@ +name: 🔀 Auto merge PR + +on: + pull_request: + branches: + - main + +jobs: + dependabot: + uses: projectdiscovery/workflows/.github/workflows/dependabot-auto-merge.yaml@v1 + permissions: + contents: write + pull-requests: write + with: + go-compat-checks: true