actions / labeler

An action for automatically labelling pull requests
MIT License
1.94k stars 417 forks source link

docs: use more consistent and accurate glob for ignoring subfolders #783

Open Weetbix opened 4 months ago

Weetbix commented 4 months ago

Description: This PR updates the readme to cover this use case a bit more accurately.

Currently, in the example touching files in /src/docs/some/subfolder/file.txt would still add the source label. This is probably not the behaviour most people are interested in, and is a bit different from what the comment says:

Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder

By switching to **/* we can recursively match files inside the docs folder, not just files directly in docs.

Related issue:

Check list: