You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: review_accepted.rb
    path of file: ./repos/open-build-service/src/api/app/models/history_element
    
    the code of the file until where you have to start completion: module HistoryElemen
    
    def user_action
      # We check if the accepted review was created when the request was staged in a staging workflow. In this case, the review
      # will also be for the managers group of that staging workflow.
      return 'staged request' if review.for_group? && request.staged_request? && review.by_group == request.staging_project.staging_workflow.managers_group.title

      'accepted review'
    end