packagist
packagist copied to clipboard
Filter certain types of API receivePost actions
I've been testing out tools like Scrutinizer that offer a limited amount of automated fixing. It is nice but one side effect is that these tools may end up creating temporary branches on the main GitHub repository. This results in a webhook request to Packagist that adds a version for the newly added temporary branch.
I'd consider writing some code that would allow us to filter certain branch naming patterns (like "scrutinizer-patch-*") to avoid littering our packages with temporary branch names.
Any interest in this? If so, are there any suggestions for implementations?
We could ignore them in the GitHubDriver of composer directly I guess. Might as well not even fetch them if they're garbage.
If you implement such filtering, excluding patch-*
might be a good idea too. These branches are created by github when creating PRs through the web editor.