While the filter branch functionality is working and checked by an integration test, it fails to integrate a branch called bf_5.3.0-SNAPSHOT. This is a deficiency in the regexp logic when identifying candidate branches.
To fix this issue, this PR extends the _parse_filters() logic to actively parse tracking branches using regular expressions. Unit tests are also added covering the range of tracking branch names.
Support is also added for branch tracking using the full Github URL similarly to what is done for Pull Request inclusion.
To test this PR:
check the unit tests are all passing on Travis including the newly added ones
for the keen ones, fork an upstream organization repository e.g. https://github.com/openmicroscopy/snoopys-sandbox, create a local branch with 1 commit ahead of the base branch, name it with a string composed of [a-Z0-9_-.], push this branch to your fork but do not create a Pull Request. Then locally reset to the HEAD to the base branch and try to merge your remote branch using one of the 2 forms:
While the filter branch functionality is working and checked by an integration test, it fails to integrate a branch called
bf_5.3.0-SNAPSHOT
. This is a deficiency in the regexp logic when identifying candidate branches.To fix this issue, this PR extends the _parse_filters() logic to actively parse tracking branches using regular expressions. Unit tests are also added covering the range of tracking branch names.
Support is also added for branch tracking using the full Github URL similarly to what is done for Pull Request inclusion.
To test this PR:
for the keen ones, fork an upstream organization repository e.g. https://github.com/openmicroscopy/snoopys-sandbox, create a local branch with 1 commit ahead of the base branch, name it with a string composed of [a-Z0-9_-.], push this branch to your fork but do not create a Pull Request. Then locally reset to the HEAD to the base branch and try to merge your remote branch using one of the 2 forms:
In both cases the command should merge the remote branch locally.