소스 검색

fix:隐藏modified文件处理

tanjingyu 4 달 전
부모
커밋
128433b2b7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/services/webhook_service.py

+ 2 - 1
app/services/webhook_service.py

@@ -155,7 +155,8 @@ class WebhookService:
         files = set()
         commits = payload.get("commits", [])
         for commit in commits:
-            for key in ["added", "modified", "removed"]:
+            # for key in ["added", "modified", "removed"]:
+            for key in ["added", "modified"]:
                 for f in (commit.get(key) or []):
                     files.add(normalize_path(f))
         return files