Prechádzať zdrojové kódy

fix:隐藏modified文件处理

tanjingyu 4 mesiacov pred
rodič
commit
128433b2b7
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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