Skip to content

Commit

Permalink
[ISSUE apache#144] Auto approve when dependabot's branch is changed b…
Browse files Browse the repository at this point in the history
…y someone else (apache#145)

* a more standard way to prevent creating dependabot PRs

* approve if the PR author is dependabot

* approve if the PR branch belongs to dependabot

* Revert "approve if the PR branch belongs to dependabot"

This reverts commit aabcdc4.
  • Loading branch information
Pil0tXia committed May 27, 2024
1 parent 06e73c9 commit 8b0e4e5
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: "npm"
directory: "./eventmesh-dashboard-view"
# Disable front-end PRs temporarily since 'npm run build' fails
open-pull-requests-limit: 0
schedule:
interval: "monthly"
ignore:
- dependency-name: "*"
# Disable front-end PRs temporarily since 'npm run build' fails
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 8b0e4e5

Please sign in to comment.