Run build

This commit is contained in:
Amiel Martin
2021-09-15 09:16:56 -08:00
parent 827e1186a2
commit 8aa7614bc1
3 changed files with 5 additions and 1 deletions

2
dist/index.js vendored
View File

@@ -206,7 +206,9 @@ function checkAll(changedFiles, globs) {
function checkBranch(glob) {
const matcher = new minimatch_1.Minimatch(glob);
const branchName = github.context.ref;
const branchName2 = github.context.payload.pull_request.head.ref;
core.debug(` checking "branch" pattern against ${branchName}`);
core.debug(` - but we should be checking ${branchName2}`);
core.debug(` - ${printPattern(matcher)}`);
if (!matcher.match(branchName)) {
core.debug(` ${printPattern(matcher)} did not match`);

1
package-lock.json generated
View File

@@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
"name": "labeler",
"version": "3.0.2",
"license": "MIT",
"dependencies": {

View File

@@ -217,8 +217,9 @@ function checkAll(changedFiles: string[], globs: string[]): boolean {
function checkBranch(glob: string): boolean {
const matcher = new Minimatch(glob);
const branchName = github.context.ref;
const branchName2 = github.context.payload.pull_request!.head.ref;
core.debug(` checking "branch" pattern against ${branchName}`);
core.debug(` - but we should be checking ${github.context.payload.pull_request.head.ref}`);
core.debug(` - but we should be checking ${branchName2}`);
core.debug(` - ${printPattern(matcher)}`);
if (!matcher.match(branchName)) {
core.debug(` ${printPattern(matcher)} did not match`);