Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb

Overview

Pull request info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaPullRequest

Returns a new instance of GoogleChecksRepoScanV1alphaPullRequest.



477
478
479
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 477

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#base_branchString

Required. For PR analysis, we compare against the most recent scan of the base branch to highlight new issues. Corresponds to the JSON property baseBranch

Returns:

  • (String)


469
470
471
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 469

def base_branch
  @base_branch
end

#pr_numberString

Required. This can be supplied by the user or parsed automatically from predefined CI environment variables. Corresponds to the JSON property prNumber

Returns:

  • (String)


475
476
477
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 475

def pr_number
  @pr_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



482
483
484
485
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 482

def update!(**args)
  @base_branch = args[:base_branch] if args.key?(:base_branch)
  @pr_number = args[:pr_number] if args.key?(:pr_number)
end