Class: Git::Lint::Commits::Hosts::NetlifyCI
- Inherits:
-
Object
- Object
- Git::Lint::Commits::Hosts::NetlifyCI
- Defined in:
- lib/git/lint/commits/hosts/netlify_ci.rb
Overview
Provides Netlify CI feature branch information.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 14 15 |
# File 'lib/git/lint/commits/hosts/netlify_ci.rb', line 11 def call git.call("remote", "add", "-f", "origin", environment["REPOSITORY_URL"]) .bind { git.call "fetch", "origin", "#{branch_name}:#{branch_name}" } .bind { git.commits "origin/#{branch_default}..origin/#{branch_name}" } end |