Class: Claws::Rule::AutomaticMerge

Inherits:
BaseRule
  • Object
show all
Defined in:
lib/claws/rule/automatic_merge.rb

Instance Attribute Summary

Attributes inherited from BaseRule

#configuration, #on_job, #on_step, #on_workflow

Instance Method Summary collapse

Methods inherited from BaseRule

description, extract_value, #initialize, #inspect, #name, name, on_job, on_step, on_workflow, parse_rule, #to_s

Constructor Details

This class inherits a constructor from BaseRule

Instance Method Details

#dataObject



24
25
26
27
28
29
30
31
# File 'lib/claws/rule/automatic_merge.rb', line 24

def data
  {
    "automerge_actions":
      configuration.fetch("automerge_actions", default_automerge_actions),
    "pr_events":
      configuration.fetch("pr_events", default_pr_events)
  }
end