From c35ba68119eeb8dbbc9c6a6248a2f06241a6bbc9 Mon Sep 17 00:00:00 2001 From: 0xSage Date: Fri, 1 Dec 2023 15:03:37 +0800 Subject: [PATCH] chore: fix pr auto labeling --- .github/workflows/auto-label-conventional-commits.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto-label-conventional-commits.yaml b/.github/workflows/auto-label-conventional-commits.yaml index 7e6e19a66..3a915dd83 100644 --- a/.github/workflows/auto-label-conventional-commits.yaml +++ b/.github/workflows/auto-label-conventional-commits.yaml @@ -1,23 +1,18 @@ name: "Auto Label Conventional Commits" on: - issues: - types: - - reopened - - opened pull_request: types: - reopened - opened jobs: - label_issues: + label_prs: runs-on: ubuntu-latest permissions: - issues: write pull-requests: write steps: - name: Checkout uses: actions/checkout@v4 - - name: Label issues + - name: Label PRs run: | ISSUE_TITLE=$(gh issue view ${{ github.event.number }} --json title -q ".title") case "$ISSUE_TITLE" in