Skip to content

Commit

Permalink
Merge pull request #87 from 9renpoto/feature
Browse files Browse the repository at this point in the history
feat: add auto-merge
  • Loading branch information
9renpoto authored Dec 3, 2023
2 parents 450d937 + 7357324 commit 313aed7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ updates:
directory: "/"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: docker
directory: "/"
schedule:
interval: "daily"
labels:
- "dependencies"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "daily"
labels:
- "dependencies"
7 changes: 6 additions & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ jobs:
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit 313aed7

Please sign in to comment.