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 e934ca2 [ISSUE #122] Enable auto-merge workflow of Dependabot (#123)
e934ca2 is described below
commit e934ca2380f6746b26e6c2ac53ee78adfba4fa75
Author: Pil0tXia <[email protected]>
AuthorDate: Thu Apr 18 00:48:10 2024 +0800
[ISSUE #122] Enable auto-merge workflow of Dependabot (#123)
* test bash
* Set up Dependabot auto-merge & Must pass CI before merging
* Remove checkout action
---
.asf.yaml | 6 +++-
.github/dependabot.yml | 12 ++++++--
.github/workflows/auto-merge-dependabot.yml | 47 +++++++++++++++++++++++++++++
README.md | 2 +-
README.zh-CN.md | 2 +-
5 files changed, 64 insertions(+), 5 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index e656e56..e5a6ca5 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -16,7 +16,7 @@
#
github:
- description: EventMesh Dashboard
+ description: Apache EventMesh Dashboard
features:
# Enable issue management
issues: true
@@ -41,6 +41,10 @@ github:
main:
required_status_checks:
strict: true
+ contexts:
+ - dependency-review
+ - Build (ubuntu-latest, 8, java)
+ - Build (ubuntu-latest, 11, java)
required_pull_request_reviews:
dismiss_stale_reviews: true
required_approving_review_count: 0 # Temporary 0 to allow committers
to merge themselves PR
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 82b3b85..d59aae7 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -21,10 +21,18 @@ updates:
directory: "/"
open-pull-requests-limit: 10
schedule:
- interval: "weekly"
+ interval: "daily" # TODO Temporary daily for testing auto-merge
ignore:
- dependency-name: "*"
- update-types: ["version-update:semver-major"]
+ update-types: [ "version-update:semver-major" ]
+ - package-ecosystem: "npm"
+ directory: "./eventmesh-dashboard-view"
+ 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" ]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
diff --git a/.github/workflows/auto-merge-dependabot.yml
b/.github/workflows/auto-merge-dependabot.yml
new file mode 100644
index 0000000..f0d8fde
--- /dev/null
+++ b/.github/workflows/auto-merge-dependabot.yml
@@ -0,0 +1,47 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: Dependabot auto-merge
+on: pull_request
+
+permissions:
+ contents: write
+ pull-requests: write
+
+jobs:
+ dependabot:
+ runs-on: ubuntu-latest
+ if: github.actor == 'dependabot[bot]'
+ steps:
+ - name: Dependabot metadata
+ id: metadata
+ uses: dependabot/fetch-metadata@v2
+ 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}}
+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
+
+ - name: Enable auto-merge for Dependabot PRs
+ 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}}
+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
\ No newline at end of file
diff --git a/README.md b/README.md
index 7a0f77f..09e6c11 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# EventMesh Dashboard
+# Apache EventMesh Dashboard
[đ įŽäŊ䏿](README.zh-CN.md)
diff --git a/README.zh-CN.md b/README.zh-CN.md
index f978d9d..167f86e 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,4 +1,4 @@
-# EventMesh Dashboard
+# Apache EventMesh Dashboard
[đ English Version](README.md)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]