Method: Github::Client::Projects::Cards#create

Defined in:
lib/github_api2/client/projects/cards.rb

#create(*args) ⇒ Object

Create a project card for a column

Examples:

github = Github.new
github.projects.cards.create :column_id, note: 'Card Note'
github = Github.new
github.projects.cards.create :column_id, content_id: <content-id>, content_type: 'content-type'

Parameters:

See Also:



75
76
77
78
79
80
81
82
# File 'lib/github_api2/client/projects/cards.rb', line 75

def create(*args)
  arguments(args, required: [:column_id])
  params = arguments.params

  params["accept"] ||= ::Github::Client::Projects::PREVIEW_MEDIA

  post_request("/projects/columns/#{arguments.column_id}/cards", params)
end