module Gitlab::Client::ProjectBadges
def add_project_badge(project, options = {})
-
(Gitlab::ObjectifiedHash)
- Information about the added project badge.
Options Hash:
(**options)
-
:image_url(required)
(String
) -- URL of the badge image -
:link_url(required)
(String
) -- URL of the badge link
Parameters:
-
options
(Hash
) -- A customizable set of options. -
project
(Integer, String
) -- The ID or name of a project.
def add_project_badge(project, options = {}) post("/projects/#{url_encode project}/badges", body: options) end