From a29ee991a4813357f19ce281c81a23de4b3f623d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Mon, 31 May 2021 00:35:35 +0200 Subject: [PATCH 1/2] Use pull_request_target instead of pull_request --- .github/workflows/automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index de1590c74..01998b852 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -1,7 +1,7 @@ name: Automation on: - pull_request: + pull_request_target: jobs: main: From d9bd162739ffd4110a27618939b2a89a9291ab96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Mon, 31 May 2021 00:40:02 +0200 Subject: [PATCH 2/2] Don't trigger workflows in unnecessary events and always use jellyfin-bot --- .github/label-commenter-config.yml | 2 +- .github/workflows/check-backport.yml | 5 ++++- .github/workflows/label-commenter.yml | 2 ++ .github/workflows/rebase.yml | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml index 78b75be43..0ff3a7f87 100644 --- a/.github/label-commenter-config.yml +++ b/.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]. \ diff --git a/.github/workflows/check-backport.yml b/.github/workflows/check-backport.yml index 4450bb001..9ec58a331 100644 --- a/.github/workflows/check-backport.yml +++ b/.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 diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml index be9216cc1..1d4eaaecd 100644 --- a/.github/workflows/label-commenter.yml +++ b/.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 }} diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 3eec9fa03..8471f458e 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -1,6 +1,9 @@ name: Automatic Rebase on: issue_comment: + types: + - created + - edited jobs: rebase: