From 63df3b4e94b2964894c086de348577daf1418099 Mon Sep 17 00:00:00 2001 From: xaoxuu <16400144+xaoxuu@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:45:10 +0800 Subject: [PATCH] Update label-commenter.yml --- .github/workflows/label-commenter.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml index b0025f680..634c51f60 100644 --- a/.github/workflows/label-commenter.yml +++ b/.github/workflows/label-commenter.yml @@ -2,17 +2,22 @@ name: Label Commenter on: issues: - types: - - labeled - - unlabeled - + types: [labeled, unlabeled] + pull_request_target: + types: [labeled, unlabeled] + +permissions: + contents: read + issues: write + pull-requests: write + jobs: comment: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Label Commenter uses: peaceiris/actions-label-commenter@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} - config_file: .github/configs/label-commenter-config.yml + config_file: .github/config/label-commenter-config.yml