From 765934f2743a93a5580c0ebb767fa133f3d31afa Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Sat, 7 Aug 2021 15:26:22 -0400 Subject: [PATCH] Run build --- dist/index.js | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/dist/index.js b/dist/index.js index a4b5fdf0..8f51264c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -203,6 +203,18 @@ function checkAll(changedFiles, globs) { core.debug(` "all" patterns matched all files`); return true; } +function checkBranch(glob) { + const matcher = new minimatch_1.Minimatch(glob); + const branchName = github.context.ref; + core.debug(` checking "branch" pattern against ${branchName}`); + core.debug(` - ${printPattern(matcher)}`); + if (!matcher.match(branchName)) { + core.debug(` ${printPattern(matcher)} did not match`); + return false; + } + core.debug(` "branch" pattern matched`); + return true; +} function checkMatch(changedFiles, matchConfig) { if (matchConfig.all !== undefined) { if (!checkAll(changedFiles, matchConfig.all)) { @@ -214,6 +226,11 @@ function checkMatch(changedFiles, matchConfig) { return false; } } + if (matchConfig.branch !== undefined) { + if (!checkBranch(matchConfig.branch)) { + return false; + } + } return true; } function addLabels(client, prNumber, labels) { @@ -11709,7 +11726,7 @@ module.exports = eval("require")("encoding"); /***/ ((module) => { "use strict"; -module.exports = require("assert");; +module.exports = require("assert"); /***/ }), @@ -11717,7 +11734,7 @@ module.exports = require("assert");; /***/ ((module) => { "use strict"; -module.exports = require("events");; +module.exports = require("events"); /***/ }), @@ -11725,7 +11742,7 @@ module.exports = require("events");; /***/ ((module) => { "use strict"; -module.exports = require("fs");; +module.exports = require("fs"); /***/ }), @@ -11733,7 +11750,7 @@ module.exports = require("fs");; /***/ ((module) => { "use strict"; -module.exports = require("http");; +module.exports = require("http"); /***/ }), @@ -11741,7 +11758,7 @@ module.exports = require("http");; /***/ ((module) => { "use strict"; -module.exports = require("https");; +module.exports = require("https"); /***/ }), @@ -11749,7 +11766,7 @@ module.exports = require("https");; /***/ ((module) => { "use strict"; -module.exports = require("net");; +module.exports = require("net"); /***/ }), @@ -11757,7 +11774,7 @@ module.exports = require("net");; /***/ ((module) => { "use strict"; -module.exports = require("os");; +module.exports = require("os"); /***/ }), @@ -11765,7 +11782,7 @@ module.exports = require("os");; /***/ ((module) => { "use strict"; -module.exports = require("path");; +module.exports = require("path"); /***/ }), @@ -11773,7 +11790,7 @@ module.exports = require("path");; /***/ ((module) => { "use strict"; -module.exports = require("stream");; +module.exports = require("stream"); /***/ }), @@ -11781,7 +11798,7 @@ module.exports = require("stream");; /***/ ((module) => { "use strict"; -module.exports = require("tls");; +module.exports = require("tls"); /***/ }), @@ -11789,7 +11806,7 @@ module.exports = require("tls");; /***/ ((module) => { "use strict"; -module.exports = require("url");; +module.exports = require("url"); /***/ }), @@ -11797,7 +11814,7 @@ module.exports = require("url");; /***/ ((module) => { "use strict"; -module.exports = require("util");; +module.exports = require("util"); /***/ }), @@ -11805,7 +11822,7 @@ module.exports = require("util");; /***/ ((module) => { "use strict"; -module.exports = require("zlib");; +module.exports = require("zlib"); /***/ }) @@ -11844,7 +11861,9 @@ module.exports = require("zlib");; /************************************************************************/ /******/ /* webpack/runtime/compat */ /******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; +/******/ +/************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => {