Method: Gitlab::Client::Projects#star_project

Defined in:
lib/gitlab/client/projects.rb

#star_project(id) ⇒ Gitlab::ObjectifiedHash

Stars a project.

Examples:

Gitlab.star_project(42)
Gitlab.star_project('gitlab-org/gitlab-ce')

Parameters:

  • id (Integer, String)

    The ID or path of a project.

Returns:

See Also:

[View source]

524
525
526
# File 'lib/gitlab/client/projects.rb', line 524

def star_project(id)
  post("/projects/#{url_encode id}/star")
end