mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 20:51:42 +00:00
Run build
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -206,7 +206,9 @@ function checkAll(changedFiles, globs) {
|
|||||||
function checkBranch(glob) {
|
function checkBranch(glob) {
|
||||||
const matcher = new minimatch_1.Minimatch(glob);
|
const matcher = new minimatch_1.Minimatch(glob);
|
||||||
const branchName = github.context.ref;
|
const branchName = github.context.ref;
|
||||||
|
const branchName2 = github.context.payload.pull_request.head.ref;
|
||||||
core.debug(` checking "branch" pattern against ${branchName}`);
|
core.debug(` checking "branch" pattern against ${branchName}`);
|
||||||
|
core.debug(` - but we should be checking ${branchName2}`);
|
||||||
core.debug(` - ${printPattern(matcher)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (!matcher.match(branchName)) {
|
if (!matcher.match(branchName)) {
|
||||||
core.debug(` ${printPattern(matcher)} did not match`);
|
core.debug(` ${printPattern(matcher)} did not match`);
|
||||||
|
|||||||
1
package-lock.json
generated
1
package-lock.json
generated
@@ -5,6 +5,7 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
|
"name": "labeler",
|
||||||
"version": "3.0.2",
|
"version": "3.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -217,8 +217,9 @@ function checkAll(changedFiles: string[], globs: string[]): boolean {
|
|||||||
function checkBranch(glob: string): boolean {
|
function checkBranch(glob: string): boolean {
|
||||||
const matcher = new Minimatch(glob);
|
const matcher = new Minimatch(glob);
|
||||||
const branchName = github.context.ref;
|
const branchName = github.context.ref;
|
||||||
|
const branchName2 = github.context.payload.pull_request!.head.ref;
|
||||||
core.debug(` checking "branch" pattern against ${branchName}`);
|
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)}`);
|
core.debug(` - ${printPattern(matcher)}`);
|
||||||
if (!matcher.match(branchName)) {
|
if (!matcher.match(branchName)) {
|
||||||
core.debug(` ${printPattern(matcher)} did not match`);
|
core.debug(` ${printPattern(matcher)} did not match`);
|
||||||
|
|||||||
Reference in New Issue
Block a user