From 2852d9bd54db8808189ed9587e4e6132926e44f0 Mon Sep 17 00:00:00 2001 From: Jaisurya Nanduri Date: Wed, 10 Jul 2024 22:47:22 +0000 Subject: [PATCH] Remove relevance checks --- .github/workflows/pr_approval.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/pr_approval.yml b/.github/workflows/pr_approval.yml index abb456623ffa7..b97275a47ccb7 100644 --- a/.github/workflows/pr_approval.yml +++ b/.github/workflows/pr_approval.yml @@ -51,23 +51,6 @@ jobs: pull_number = context.issue.number; } - // Get PR files - const files = await github.rest.pulls.listFiles({ - owner, - repo, - pull_number - }); - - const relevantPaths = ['library/', 'doc/src/challenges/']; - const isRelevantPR = files.data.some(file => - relevantPaths.some(path => file.filename.startsWith(path)) - ); - - if (!isRelevantPR) { - console.log('PR does not touch relevant paths. Exiting workflow.'); - return; - } - // Get parsed data try { const tomlContent = fs.readFileSync('.github/pull_requests.toml', 'utf8');