Skip to content

Commit

Permalink
Merge pull request #86 from MozillaSecurity/pyoor-patch-1
Browse files Browse the repository at this point in the history
Add autoland to branch search regex
  • Loading branch information
pyoor authored Feb 24, 2021
2 parents 47a97a2 + d654d07 commit c9450f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fuzzfetch/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def __init__(self, target, branch, build, flags, platform=None, nearest=None):
# If branch wasn't set, try and retrieve it from the build string
if self._branch is None:
branch = re.search(
r"\.(try|mozilla-(?P<branch>[a-z]+[0-9]*))\.", build
r"\.(autoland|try|mozilla-(?P<branch>[a-z]+[0-9]*))\.", build
)
self._branch = branch.group("branch") if branch is not None else "?"
if self._branch is None:
Expand Down Expand Up @@ -888,8 +888,8 @@ def __init__(self, target, branch, build, flags, platform=None, nearest=None):
options = build.split(self.moz_info["platform_guess"], 1)[1]
else:
options = self._flags.build_string()
if self._branch == "try":
branch = "try"
if self._branch in {"autoland", "try"}:
branch = self._branch
else:
branch = "m-%s" % (self._branch[0],)
self._auto_name = "%s%s-%s%s" % (
Expand Down

0 comments on commit c9450f5

Please sign in to comment.