Class: Dependabot::PullRequestUpdater::Azure
- Inherits:
-
Object
- Object
- Dependabot::PullRequestUpdater::Azure
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/pull_request_updater/azure.rb
Defined Under Namespace
Classes: PullRequestUpdateFailed
Constant Summary collapse
- OBJECT_ID_FOR_BRANCH_DELETE =
"0000000000000000000000000000000000000000"
Instance Attribute Summary collapse
-
#author_details ⇒ Object
readonly
Returns the value of attribute author_details.
-
#base_commit ⇒ Object
readonly
Returns the value of attribute base_commit.
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#old_commit ⇒ Object
readonly
Returns the value of attribute old_commit.
-
#pull_request_number ⇒ Object
readonly
Returns the value of attribute pull_request_number.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source:, files:, base_commit:, old_commit:, credentials:, pull_request_number:, author_details: nil) ⇒ Azure
constructor
A new instance of Azure.
- #update ⇒ Object
Constructor Details
#initialize(source:, files:, base_commit:, old_commit:, credentials:, pull_request_number:, author_details: nil) ⇒ Azure
Returns a new instance of Azure.
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 51 def initialize(source:, files:, base_commit:, old_commit:, credentials:, pull_request_number:, author_details: nil) @source = source @files = files @base_commit = base_commit @old_commit = old_commit @credentials = credentials @pull_request_number = pull_request_number @author_details = end |
Instance Attribute Details
#author_details ⇒ Object (readonly)
Returns the value of attribute author_details.
37 38 39 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 37 def @author_details end |
#base_commit ⇒ Object (readonly)
Returns the value of attribute base_commit.
25 26 27 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 25 def base_commit @base_commit end |
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
31 32 33 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 31 def credentials @credentials end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
22 23 24 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 22 def files @files end |
#old_commit ⇒ Object (readonly)
Returns the value of attribute old_commit.
28 29 30 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 28 def old_commit @old_commit end |
#pull_request_number ⇒ Object (readonly)
Returns the value of attribute pull_request_number.
34 35 36 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 34 def pull_request_number @pull_request_number end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
19 20 21 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 19 def source @source end |
Instance Method Details
#update ⇒ Object
63 64 65 66 67 |
# File 'lib/dependabot/pull_request_updater/azure.rb', line 63 def update return unless pull_request_exists? && source_branch_exists? update_source_branch end |