File tree Expand file tree Collapse file tree
template/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Dependabot Auto-Merge
2+
3+ # Enables auto-merge on Dependabot PRs for minor and patch updates. The PR merges once
4+ # required status checks pass. Needs "Allow auto-merge" enabled in the repo settings.
5+
6+ on :
7+ pull_request :
8+ types : [ opened, reopened, synchronize ]
9+
10+ permissions : {}
11+
12+ jobs :
13+ auto-merge :
14+ if : github.event.pull_request.user.login == 'dependabot[bot]'
15+ runs-on : ubuntu-slim
16+ permissions :
17+ contents : write
18+ pull-requests : write
19+ steps :
20+ - name : Fetch Dependabot metadata
21+ id : metadata
22+ uses : dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
23+
24+ - name : Enable auto-merge
25+ if : steps.metadata.outputs.update-type != 'version-update:semver-major'
26+ env :
27+ GH_TOKEN : ${{ github.token }}
28+ PR_URL : ${{ github.event.pull_request.html_url }}
29+ run : |
30+ gh pr merge --auto --squash "$PR_URL"
Original file line number Diff line number Diff line change 1+ name : Dependabot Auto-Merge
2+
3+ # Enables auto-merge on Dependabot PRs for minor and patch updates. The PR merges once
4+ # required status checks pass. Needs "Allow auto-merge" enabled in the repo settings.
5+
6+ on :
7+ pull_request :
8+ types : [ opened, reopened, synchronize ]
9+
10+ permissions : {}
11+
12+ jobs :
13+ auto-merge :
14+ if : github.event.pull_request.user.login == 'dependabot[bot]'
15+ runs-on : ubuntu-slim
16+ permissions :
17+ contents : write
18+ pull-requests : write
19+ steps :
20+ - name : Fetch Dependabot metadata
21+ id : metadata
22+ uses : dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
23+
24+ - name : Enable auto-merge
25+ if : steps.metadata.outputs.update-type != 'version-update:semver-major'
26+ env :
27+ GH_TOKEN : ${{ github.token }}
28+ PR_URL : ${{ github.event.pull_request.html_url }}
29+ run : |
30+ gh pr merge --auto --squash "$PR_URL"
You can’t perform that action at this time.
0 commit comments