mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 04:27:34 +00:00
Update text in test descriptions and logging
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,7 @@ jest.mock('@actions/github');
|
|||||||
describe('checkAllChangedFiles', () => {
|
describe('checkAllChangedFiles', () => {
|
||||||
const changedFiles = ['foo.txt', 'bar.txt'];
|
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'];
|
const globs = ['*.txt'];
|
||||||
|
|
||||||
it('returns true', () => {
|
it('returns true', () => {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export function checkAllBranch(
|
|||||||
): boolean {
|
): boolean {
|
||||||
const branchName = getBranchName(branchBase);
|
const branchName = getBranchName(branchBase);
|
||||||
if (!branchName) {
|
if (!branchName) {
|
||||||
core.debug(` no branch name`);
|
core.debug(` cannot fetch branch name from the pull request`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export function getLabelConfigMapFromObject(
|
|||||||
!configOptions.every(opts => typeof opts === 'object')
|
!configOptions.every(opts => typeof opts === 'object')
|
||||||
) {
|
) {
|
||||||
throw Error(
|
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<MatchConfig[]>(
|
const matchConfigs = configOptions.reduce<MatchConfig[]>(
|
||||||
|
|||||||
Reference in New Issue
Block a user