common/archive: Add branch names filtering support in lookup_snapshot
Enable to filter returned branches according to their name in lookup_snapshot
.
Using the optional branch_name_includes
parameter will only return branches
whose names contain a substring in the provided list.
Using the optional branch_name_excludes
parameter will not return branches
whose names contain a substring in the provided list.
This will enable to filter out bogus pull requests branches but also to implement a search feature in branches/releases list view.
Build will fail as it depends on newly added filtering feature in swh-storage
.
Related to #2782 (closed)
Depends on swh-storage!654 (closed)
Migrated from D4616 (view on Phabricator)