Method: ShopifyCLI::Changelog#update!

Defined in:
lib/shopify_cli/changelog.rb

#update!Object



21
22
23
24
25
26
# File 'lib/shopify_cli/changelog.rb', line 21

def update!
  pr = pr_for_current_branch
  category = CLI::UI::Prompt.ask("What type of change?", options: CHANGE_CATEGORIES)
  add_change(category, { pr_id: pr.number, desc: pr.title })
  save!
end