Closed favmd closed 2 years ago
Amazing! I'll try it today.
What do you think about changing the files_to_ignore
value to be comma-separated instead of whitespace so we can support filenames with whitespaces?
About the other limitations:
files_to_ignore
: I would merge this as-is, and open an issue to support glob patternsWhat do you think? 🙂
Amazing! I'll try it today.
Nice! That was fast! 👍
What do you think about changing the
files_to_ignore
value to be comma-separated instead of whitespace so we can support filenames with whitespaces?About the other limitations:
Global
files_to_ignore
: I would merge this as-is, and open an issue to support glob patternsOnly the first 100 files are taken into account: I would add this limitation to the readme and open an Issue
What do you think? 🙂
@rgomezcasas You're totally right: The limitation that only the first 100 files are taken into account - when files_to_ignore
is set - should definitely be mentioned prominently in the README.
Regarding the other limitations: I would like to suggest to merge this PR as-is and move all ideas into new ✨ feature issues, so that there is
files_to_ignore_ifs: ' '
)All of those changes could be implemented to be backward compatible.
Regarding the split character (will probably be implemented by setting the IFS in bash!?): Let's just make it configurable! Some people seem to prefer whitespaces (me), others want comma-separated (you), I can easily imagine that there's more out there, so I suggest a new issue with a new argument:
files_to_ignore_ifs: ' '
(default is whitespace to be backward compatible)I would not try to quickfix this PR (too often those quickfixes add subtle bugs).
Let's go for new issues instead.
Sounds good?
Agree! Doing some tests in here before merging to main
😊
The code basically does what has been described / discussed in issue #9:
files_to_ignore
)files_to_ignore
is empty, the old code will be used (see below for the rationale behind this!)files_to_ignore
is given, it will loop through the list of files and count thechanges
Plus: Minor modifications:
message_if_xl
parameter description to README.mdNote however that my code does have its LIMITATIONS and should be tested by someone else too:
files_to_ignore
is global, i.e., filenames will be ignored in every part of the repositoryI can live with that limitation due to the fact that we don't open PRs with hundreds of changed files, but this is the reason why my code will fall back to the old code if
files_to_ignore
is empty: to ensure that someone not using the new parameter does not have this limitation at all and falls back to the API endpoint without/files
at the end.