lib/abak-flow/pull_request.rb in abak-flow-0.3.1 vs lib/abak-flow/pull_request.rb in abak-flow-0.3.2
- old
+ new
@@ -35,11 +35,19 @@
@from_repo ||= begin
upstream_project = repository.remote_by_name('upstream').project
"#{upstream_project.owner}/#{upstream_project.name}"
end
end
+ alias_method :upstream_project, :from_repo
+ def origin_project
+ @origin_project ||= begin
+ origin_project = repository.remote_by_name('origin').project
+ "#{origin_project.owner}/#{origin_project.name}"
+ end
+ end
+
def origin_repo
@origin_repo ||= repository.main_project.remote.name
end
def base
@@ -205,7 +213,9 @@
class StrategyReadycheck < Strategy
def self.attributes
[:origin, :upstream, :api_user, :api_token]
end
end
+
+ class StrategyStatus < StrategyReadycheck; end
end
end
\ No newline at end of file