This is an automated email from the ASF dual-hosted git repository.

mxsm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new e52084873 [ISSUE #4929] Auto approve when dependabot's branch is 
changed by committers (#4930)
e52084873 is described below

commit e52084873b6ba5a191ae60bd8a057ebe64d02496
Author: Pil0tXia <[email protected]>
AuthorDate: Mon Jun 3 22:52:23 2024 +0800

    [ISSUE #4929] Auto approve when dependabot's branch is changed by 
committers (#4930)
    
    * a more standard way to prevent creating dependabot PRs
    
    * approve if the PR author is dependabot
---
 .github/dependabot.yml                | 5 +++--
 .github/workflows/auto-dependabot.yml | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index b4b1d8e39..b6922937b 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -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:
diff --git a/.github/workflows/auto-dependabot.yml 
b/.github/workflows/auto-dependabot.yml
index 0d43a0586..512a43f6e 100644
--- a/.github/workflows/auto-dependabot.yml
+++ b/.github/workflows/auto-dependabot.yml
@@ -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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to