Gusto/buildkite-builder

Github repo regex should support resolving without .git suffix

drwl opened this issue · 1 comments

drwl commented

REPO_REGEX = /github\.com(?::|\/)(.*)\.git\z/.freeze

This regex should be made to support https://github.com/Gusto/buildkite-builder and https://github.com/Gusto/buildkite-builder.git.

Potential fix: REPO = ENV['BUILDKITE_REPO'][/github\.com:(.+)/, 1].freeze

Looks like this was fixed in #33