From e2d43fc837d4bd85f41b51528cfeef7b44c25f12 Mon Sep 17 00:00:00 2001 From: Devin Ford Date: Mon, 21 Oct 2024 16:55:37 -0400 Subject: [PATCH] chore: update triggers ro only run on review --- .github/workflows/codeowner_review_status.yml | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/workflows/codeowner_review_status.yml b/.github/workflows/codeowner_review_status.yml index 150c8a1cc498a..6892b3397deb3 100644 --- a/.github/workflows/codeowner_review_status.yml +++ b/.github/workflows/codeowner_review_status.yml @@ -1,10 +1,6 @@ name: Code Owners Approval Check on: - pull_request: - branches: - - master - types: [opened, synchronize, reopened, ready_for_review] pull_request_review: types: [submitted, dismissed] @@ -163,22 +159,4 @@ jobs: core.setFailed(`Missing approvals from code owners: ${missingApprovals.map(status => status.owner).join(', ')}`); } else { console.log('All relevant code owners have approved the pull request.'); - } - - - name: Update check run status - if: steps.check_approvals.outcome == 'success' - uses: actions/github-script@v7 - with: - github-token: ${{secrets.CODEOWNER_WORKFLOW_TOKEN}} - script: | - const checkRunId = context.runId; - await github.rest.checks.update({ - owner: context.repo.owner, - repo: context.repo.repo, - check_run_id: checkRunId, - conclusion: 'success', - output: { - title: 'Code Owners Approval Check', - summary: 'The pull request has been approved by code owners.', - }, - }); \ No newline at end of file + } \ No newline at end of file