mirror of
https://github.com/actions/labeler.git
synced 2025-12-14 22:25:11 +00:00
Add the changedFiles key and update logic in labeler
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
touched-a-pdf-file:
|
||||
- any: ['*.pdf']
|
||||
- changed-files:
|
||||
- any: ['*.pdf']
|
||||
|
||||
@@ -10,7 +10,7 @@ beforeAll(() => {
|
||||
});
|
||||
});
|
||||
|
||||
const matchConfig = [{any: ['*.txt']}];
|
||||
const matchConfig = [{changedFiles: {any: ['*.txt']}}];
|
||||
|
||||
describe('checkGlobs', () => {
|
||||
it('returns true when our pattern does match changed files', () => {
|
||||
|
||||
Reference in New Issue
Block a user