Browse Source

Don't trigger workflows in unnecessary events and always use jellyfin-bot

Fernando Fernández 4 years ago
parent
commit
d9bd162739

+ 1 - 1
.github/label-commenter-config.yml

@@ -1,5 +1,5 @@
 comment:
-  header: Hello @{{ issue.user.login }}
+  header: Hello!
   footer: "\
     ---\n\n
     > This is an automated comment created by the [peaceiris/actions-label-commenter]. \

+ 4 - 1
.github/workflows/check-backport.yml

@@ -1,7 +1,10 @@
 name: Stable Backport Check
 on:
   issue_comment:
-  pull_request:
+    types:
+      - created
+      - edited
+  pull_request_target:
     types:
       - labeled
       - synchronize

+ 2 - 0
.github/workflows/label-commenter.yml

@@ -20,3 +20,5 @@ jobs:
 
       - name: Label Commenter
         uses: peaceiris/actions-label-commenter@v1
+        with:
+          github_token: ${{ secrets.JF_BOT_TOKEN }}

+ 3 - 0
.github/workflows/rebase.yml

@@ -1,6 +1,9 @@
 name: Automatic Rebase
 on:
   issue_comment:
+    types:
+      - created
+      - edited
 
 jobs:
   rebase: