From 51cc5e079c3f907a0f801925b0e23a3704691a4b Mon Sep 17 00:00:00 2001 From: Josh Dales <30500472+joshdales@users.noreply.github.com> Date: Thu, 11 May 2023 16:35:05 -0400 Subject: [PATCH] Update text in test descriptions and logging Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> --- __tests__/changedFiles.test.ts | 2 +- src/branch.ts | 2 +- src/labeler.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/changedFiles.test.ts b/__tests__/changedFiles.test.ts index df1b9359..0f611c5b 100644 --- a/__tests__/changedFiles.test.ts +++ b/__tests__/changedFiles.test.ts @@ -11,7 +11,7 @@ jest.mock('@actions/github'); describe('checkAllChangedFiles', () => { const changedFiles = ['foo.txt', 'bar.txt']; - describe('when the globs match every file that has changed', () => { + describe('when the globs match every file that has been changed', () => { const globs = ['*.txt']; it('returns true', () => { diff --git a/src/branch.ts b/src/branch.ts index 9c197741..92c78186 100644 --- a/src/branch.ts +++ b/src/branch.ts @@ -69,7 +69,7 @@ export function checkAllBranch( ): boolean { const branchName = getBranchName(branchBase); if (!branchName) { - core.debug(` no branch name`); + core.debug(` cannot fetch branch name from the pull request`); return false; } diff --git a/src/labeler.ts b/src/labeler.ts index 26db5ede..2ba31c75 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -126,7 +126,7 @@ export function getLabelConfigMapFromObject( !configOptions.every(opts => typeof opts === 'object') ) { throw Error( - `found unexpected type for label ${label} (should be array of config options)` + `found unexpected type for label '${label}' (should be array of config options)` ); } const matchConfigs = configOptions.reduce(