Method: Github::Client::Orgs::Projects#create

Defined in:
lib/github_api/client/orgs/projects.rb

#create(*args) ⇒ Object

Create a new project for the specified repo

Examples:

github = Github.new
github.repos.create 'owner-name', 'repo-name', name: 'project-name'
github.repos.create name: 'project-name', body: 'project-body', owner: 'owner-name', repo: 'repo-name'

Parameters:



46
47
48
49
50
51
52
53
54
55
# File 'lib/github_api/client/orgs/projects.rb', line 46

def create(*args)
  arguments(args, required: [:org_name]) do
    assert_required %w[ name ]
  end
  params = arguments.params

  params["accept"] ||= PREVIEW_MEDIA

  post_request("/orgs/#{arguments.org_name}/projects", params)
end