json_pr_issue_base.rb
# creates a hash of the issue or pr data
creates a hash of the issue or pr data
creates a hash of the issue or pr data
def create_obj(item, type)
    {
      'opened' => item[:createdAt],
      'closed' => item[:closedAt],
      'state'  => item[:state],
      'type'   => type,
      'title'  => item[:title].gsub(/\s*\[[a-z ]+\]\s*/, ''),
      'author' => item.dig(:author, :name),
      'user_name' => "@#{item.dig :author, :login}"
    }
  end
def create_obj ( item , type ) { 'opened' => item [ :createdAt ] , 'closed' => item [ :closedAt ] , 'state' => item [ :state ] , 'type' => type , 'title' => item [ :title ] . gsub ( / \s * \[ [a-z ]+ \] \s * / , '' ) , 'author' => item . dig ( :author , :name ) , 'user_name' => "@#{item.dig :author, :login}" } end
creates a hash of the issue or pr data
creates a hash of the issue or pr data
# remove [ci skip] type strings
item
<not_specific>
type
<not_specific>