Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rscohn2 committed Jun 13, 2024
1 parent b987d5e commit 4763ae9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/scripts/domain-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand All @@ -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',
Expand Down

0 comments on commit 4763ae9

Please sign in to comment.