mirror of
https://github.com/actions/labeler.git
synced 2025-12-15 06:27:13 +00:00
Move all changedFiles logic into it's own file
This commit is contained in:
@@ -10,11 +10,7 @@ beforeAll(() => {
|
||||
});
|
||||
});
|
||||
|
||||
// I have to double cast here as this is what the output from js-yaml looks like which then gets
|
||||
// transformed in toMatchConfig
|
||||
const matchConfig = [
|
||||
{'changed-files': [{any: ['*.txt']}]}
|
||||
] as unknown as MatchConfig[];
|
||||
const matchConfig: MatchConfig[] = [{changedFiles: {any: ['*.txt']}}];
|
||||
|
||||
describe('checkMatchConfigs', () => {
|
||||
it('returns true when our pattern does match changed files', () => {
|
||||
|
||||
Reference in New Issue
Block a user