[Beta] Implement the new structure of the match object for the changed-files section (#680)

* Implement the new structure of the match object for changed files section

* Replace inner loops with the find method
This commit is contained in:
MaksimZhukov
2023-09-20 13:43:39 +02:00
committed by GitHub
parent 4f052778de
commit f4eefdc659
8 changed files with 642 additions and 145 deletions

View File

@@ -1,14 +1,17 @@
label1:
- any:
- changed-files: ['glob']
- changed-files:
- AnyGlobToAnyFile: ['glob']
- head-branch: ['regexp']
- base-branch: ['regexp']
- all:
- changed-files: ['glob']
- changed-files:
- AllGlobsToAllFiles: ['glob']
- head-branch: ['regexp']
- base-branch: ['regexp']
label2:
- changed-files: ['glob']
- changed-files:
- AnyGlobToAnyFile: ['glob']
- head-branch: ['regexp']
- base-branch: ['regexp']

View File

@@ -1,6 +1,8 @@
tests:
- any:
- head-branch: ['^tests/', '^test/']
- changed-files: ['tests/**/*']
- changed-files:
- AnyGlobToAnyFile: ['tests/**/*']
- all:
- changed-files: ['!tests/requirements.txt']
- changed-files:
- AllGlobsToAllFiles: ['!tests/requirements.txt']

View File

@@ -1,2 +1,3 @@
touched-a-pdf-file:
- changed-files: ['*.pdf']
- changed-files:
- AnyGlobToAnyFile: ['*.pdf']