From 4763ae9e4d94de00979f0b2c7ef33b194bbf15f7 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Thu, 13 Jun 2024 08:58:01 -0500 Subject: [PATCH] update --- .github/scripts/domain-check.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/scripts/domain-check.js b/.github/scripts/domain-check.js index b03b317ae..c3a658dd0 100644 --- a/.github/scripts/domain-check.js +++ b/.github/scripts/domain-check.js @@ -10,7 +10,7 @@ function matchesPattern(domain, filePaths) { return match; } -function prFiles(context, github) { +function prFiles(github, context) { const pr = context.payload.pull_request if (!pr) { return [] @@ -23,14 +23,17 @@ function prFiles(context, github) { console.log("PR files: ", prFiles) return prFiles } - +module.exports = ({github, context}) => { + return context.payload.client_payload.value + } +/* module.exports = ({github, context}) => { const domain = "blas"; - const match = matchesPattern(domain, prFiles(context, github)); + const match = matchesPattern(domain, prFiles(github, context)); console.log("domain: ", domain, " Match: ", match) return match; } - +*/ test_patterns = [ { domain: 'blas',