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

xiatian pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/eventmesh-dashboard.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ca4640  [ISSUE #130] Auto-approve Dependabot PR only and Disable PR 
up-to-date check (#131)
6ca4640 is described below

commit 6ca4640714afe36376b0b95431989620ef956b09
Author: Pil0tXia <[email protected]>
AuthorDate: Thu Apr 18 15:06:17 2024 +0800

    [ISSUE #130] Auto-approve Dependabot PR only and Disable PR up-to-date 
check (#131)
    
    * No need to force up-to-date
    
    * Auto-approve only
    
    * Remove the slash at the end of the homepage url in Repo GitHub desc
---
 .asf.yaml                             |  4 ++--
 .github/workflows/auto-dependabot.yml | 16 ++++------------
 2 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index e5a6ca5..f7e3951 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -22,7 +22,7 @@ github:
     issues: true
     # Enable wiki
     wiki: true
-  homepage: https://eventmesh.apache.org/
+  homepage: https://eventmesh.apache.org
   labels:
     - pubsub
     - event-mesh
@@ -40,7 +40,7 @@ github:
   protected_branches:
     main:
       required_status_checks:
-        strict: true
+        strict: false
         contexts:
           - dependency-review
           - Build (ubuntu-latest, 8, java)
diff --git a/.github/workflows/auto-dependabot.yml 
b/.github/workflows/auto-dependabot.yml
index e1a2913..0d43a05 100644
--- a/.github/workflows/auto-dependabot.yml
+++ b/.github/workflows/auto-dependabot.yml
@@ -15,8 +15,8 @@
 # limitations under the License.
 #
 
-name: Dependabot auto-merge
-on: pull_request
+name: Dependabot Auto-approve
+on: pull_request_target
 
 permissions:
   contents: write
@@ -38,13 +38,5 @@ jobs:
       - name: Approve PR
         run: gh pr review --approve "$PR_URL"
         env:
-          PR_URL: ${{github.event.pull_request.html_url}}
-          GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
-
-      # comment '@dependabot merge' to merge the PR
-      - name: Comment and Merge PR
-        if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
-        run: gh pr comment $PR_URL -b "@dependabot merge"
-        env:
-          PR_URL: ${{github.event.pull_request.html_url}}
-          GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
\ No newline at end of file
+          PR_URL: ${{ github.event.pull_request.html_url }}
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}


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

Reply via email to