From 9a1f42f2e84f2014591f6e987b6039e57c1b90d9 Mon Sep 17 00:00:00 2001 From: meil Date: Mon, 1 Mar 2021 04:10:51 +0900 Subject: [PATCH] Update check-pull-request-label-by-comment.yml --- .../check-pull-request-label-by-comment.yml | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/.github/workflows/check-pull-request-label-by-comment.yml b/.github/workflows/check-pull-request-label-by-comment.yml index ee93676..0e7de85 100644 --- a/.github/workflows/check-pull-request-label-by-comment.yml +++ b/.github/workflows/check-pull-request-label-by-comment.yml @@ -1,37 +1,13 @@ name: 'Check-Pull-Request-Label-By-Comment' on: - issues: - types: [labeled, unlabeled] pull_request: - types: [opened] + types: [opened, labeled, unlabeled] jobs: check: runs-on: ubuntu-latest steps: - uses: octokit/request-action@v2.x - if: github.event_name == 'issues' - name: Get Issue - id: get_issue - with: - route: GET /repos/:repository/issues/:issue_number - repository: ${{ github.repository }} - issue_number: ${{ github.event.issue.number }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: MeilCli/hidable-comment-action@v1 - if: github.event_name == 'issues' - with: - number: ${{ github.event.issue.number }} - show: ${{ contains(fromJson(steps.get_issue.outputs.data).labels.*.name, 'documentation') == false }} - id: 'label-lint' - body: | - label lint - - test1 - - test2 - - test3 - - uses: octokit/request-action@v2.x - if: github.event_name == 'pull_request' name: Get PullRequest id: get_pr with: @@ -41,7 +17,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: MeilCli/hidable-comment-action@v1 - if: github.event_name == 'pull_request' with: number: ${{ github.event.pull_request.number }} show: ${{ contains(fromJson(steps.get_pr.outputs.data).labels.*.name, 'documentation') == false }}