You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, not a bug report, I just couldn't find another place to post this.
I'm hoping to issue 3 labels to pull requests for my repo, one for 'Submission', 'Dev' and 'Invalid'. Having a little trouble understanding how to create globs, I've asked ChatGPT several times but I seem to be getting back code with syntax errors and nothing like what's in the README.
Submission
The Submission label should be applied if there are changes to the /projects directory but NOT if there are changes in other top-level directories and or in their subfolders, other than /projects of course.
Dev
This should almost be the reverse of 'Submission', which should apply when there are changes to any root directories and their subfolders but NOT when there are changes to the folder or any subfolders in the /projects directory.
Invalid
This should apply if there are changes in /projects AND in any other top-level directories (other than /projects) and their subdirectories.
Here's my current labeler.yml
Invalid:
- all:
- changed-files:
- any-glob-to-any-file: '*'
- all-globs-to-any-file: 'projects/**'# Add 'Submission' label to any changes within '/projects' folder or any subfoldersSubmission:
- changed-files:
- any-glob-to-any-file: 'projects/**'Dev:
- all:
- changed-files:
- any-glob-to-any-file: '*'
- all-globs-to-any-file: '!projects/**'
Currently, when there are changed files in the top level directory and in the /projects folder the Dev and Invalid label apply when the Invalid label should only be applied. The Dev and Invalid label should never be applied at the same time.
The text was updated successfully, but these errors were encountered:
Sorry, not a bug report, I just couldn't find another place to post this.
I'm hoping to issue 3 labels to pull requests for my repo, one for 'Submission', 'Dev' and 'Invalid'. Having a little trouble understanding how to create globs, I've asked ChatGPT several times but I seem to be getting back code with syntax errors and nothing like what's in the README.
Submission
The Submission label should be applied if there are changes to the
/projects
directory but NOT if there are changes in other top-level directories and or in their subfolders, other than/projects
of course.Dev
This should almost be the reverse of 'Submission', which should apply when there are changes to any root directories and their subfolders but NOT when there are changes to the folder or any subfolders in the
/projects
directory.Invalid
This should apply if there are changes in
/projects
AND in any other top-level directories (other than /projects) and their subdirectories.Here's my current
labeler.yml
Currently, when there are changed files in the top level directory and in the
/projects
folder theDev
andInvalid
label apply when theInvalid
label should only be applied. TheDev
andInvalid
label should never be applied at the same time.The text was updated successfully, but these errors were encountered: