Skip to content

Commit dd5eecc

Browse files
authored
Ability to set release name (#781)
User can create release with diferent name
1 parent a3e4186 commit dd5eecc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Api/Repositories.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,18 @@ public function createTag($project_id, string $name, string $ref, ?string $messa
146146
/**
147147
* @param int|string $project_id
148148
* @param string $tag_name
149-
* @param string $description
149+
* @param string $description
150+
* @param ?string $name
150151
*
151152
* @return mixed
152153
*/
153-
public function createRelease($project_id, string $tag_name, string $description)
154+
public function createRelease($project_id, string $tag_name, string $description, ?string $name = null)
154155
{
155156
return $this->post($this->getProjectPath($project_id, 'releases'), [
156157
'id' => $project_id,
157158
'tag_name' => $tag_name,
158159
'description' => $description,
160+
'name' => $name ?? $tag_name,
159161
]);
160162
}
161163

0 commit comments

Comments
 (0)