Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔨 chore: skip PR welcome comment for maintainer (#13519)

YuTengjing249483c3e1ed
diff --git a/.github/maintainers.txt b/.github/maintainers.txt
new file mode 100644
index 00000000000..b93496837ae
--- /dev/null
+++ b/.github/maintainers.txt
@@ -0,0 +1,13 @@
+AmAzing129
+arvinxx
+canisminor1990
+ilimei
+Innei
+lobehubbot
+nekomeowww
+ONLY-yours
+rdmclin2
+rivertwilight
+sudongyuer
+tcmonster
+tjx666
diff --git a/.github/workflows/issue-auto-comments.yml b/.github/workflows/issue-auto-comments.yml
index acb74c74f31..c6cac85dad3 100644
--- a/.github/workflows/issue-auto-comments.yml
+++ b/.github/workflows/issue-auto-comments.yml
@@ -28,9 +28,21 @@ jobs:
✅ @{{ author }}
This issue is closed, If you have any questions, you can comment and reply.
+ - name: Checkout repository
+ if: github.event_name == 'pull_request_target' && github.event.pull_request.merged == true
+ uses: actions/checkout@v4
+
+ - name: Check if PR author is maintainer
+ if: github.event.pull_request.merged == true
+ id: maintainer-check
+ run: |
+ if [ -f .github/maintainers.txt ] && grep -qx "${{ github.event.pull_request.user.login }}" .github/maintainers.txt; then
+ echo "skip=true" >> $GITHUB_OUTPUT
+ fi
+
- name: Auto Comment on Pull Request Merged
uses: actions-cool/pr-welcome@main
- if: github.event.pull_request.merged == true
+ if: github.event.pull_request.merged == true && steps.maintainer-check.outputs.skip != 'true'
with:
token: ${{ secrets.GH_TOKEN }}
comment: |