Skip to content

Commit

Permalink
[ISSUE #4929] Auto approve when dependabot's branch is changed by com…
Browse files Browse the repository at this point in the history
…mitters (#4930)

* a more standard way to prevent creating dependabot PRs

* approve if the PR author is dependabot
  • Loading branch information
Pil0tXia authored Jun 3, 2024
1 parent b64d1e0 commit e520848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ updates:
update-types: [ "version-update:semver-major" ]
- package-ecosystem: "gomod"
directory: "eventmesh-sdks/eventmesh-sdk-go"
# Disabled temporarily since the Go SDK is not integrated with CI
open-pull-requests-limit: 0
schedule:
interval: "monthly"
ignore:
- dependency-name: "*"
# Disabled temporarily since the Go SDK is not integrated with CI
update-types: [ "version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch" ]
update-types: [ "version-update:semver-major", "version-update:semver-patch" ]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Pull request Auto merge is not enabled for this repository
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
Expand Down

0 comments on commit e520848

Please sign in to comment.