packagist icon indicating copy to clipboard operation
packagist copied to clipboard

Filter certain types of API receivePost actions

Open simensen opened this issue 9 years ago • 2 comments

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?

simensen avatar Apr 23 '15 20:04 simensen

We could ignore them in the GitHubDriver of composer directly I guess. Might as well not even fetch them if they're garbage.

Seldaek avatar May 05 '15 17:05 Seldaek

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.

stof avatar Jun 12 '15 23:06 stof