Skip to content

Commit 9eb5283

Browse files
Merge branch '11.5' into 11.6
2 parents ce98014 + d3364fd commit 9eb5283

File tree

9 files changed

+16
-11
lines changed

9 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
* TBC
1111

12-
[11.6.0]: https://github.com/GitLabPHP/Client/compare/11.5.0...11.6.0
12+
[11.6.0]: https://github.com/GitLabPHP/Client/compare/11.5.1...11.6.0
13+
14+
## [11.5.1] - 2022-01-23
15+
16+
* Fixed release API paths
17+
18+
[11.5.1]: https://github.com/GitLabPHP/Client/compare/11.5.0...11.5.1
1319

1420
## [11.5.0] - 2021-12-26
1521

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22

33
Copyright (c) 2012-2018 Matt Humphrey <[email protected]>
4-
Copyright (c) 2018-2021 Graham Campbell <[email protected]>
4+
Copyright (c) 2018-2022 Graham Campbell <[email protected]>
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

src/Api/Issues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Issues extends AbstractApi
3737
* @var string $labels comma-separated list of label names, issues must have all labels to be returned
3838
* @var bool $with_labels_details if true, response will return more details for each label
3939
* @var string $milestone the milestone title
40-
* @var string scope return issues for the given scope: created-by-me, assigned-to-me or all (default is created-by-me)
40+
* @var string $scope return issues for the given scope: created-by-me, assigned-to-me or all (default is created-by-me)
4141
* @var int[] $iids return only the issues having the given iid
4242
* @var string $order_by return requests ordered by created_at or updated_at fields (default is created_at)
4343
* @var string $sort return requests sorted in asc or desc order (default is desc)

src/Api/Repositories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function createTag($project_id, string $name, string $ref, ?string $messa
152152
*/
153153
public function createRelease($project_id, string $tag_name, string $description)
154154
{
155-
return $this->post($this->getProjectPath($project_id, 'repository/tags/'.self::encodePath($tag_name).'/release'), [
155+
return $this->post($this->getProjectPath($project_id, 'releases'), [
156156
'id' => $project_id,
157157
'tag_name' => $tag_name,
158158
'description' => $description,
@@ -168,7 +168,7 @@ public function createRelease($project_id, string $tag_name, string $description
168168
*/
169169
public function updateRelease($project_id, string $tag_name, string $description)
170170
{
171-
return $this->put($this->getProjectPath($project_id, 'repository/tags/'.self::encodePath($tag_name).'/release'), [
171+
return $this->put($this->getProjectPath($project_id, 'releases/'.self::encodePath($tag_name)), [
172172
'id' => $project_id,
173173
'tag_name' => $tag_name,
174174
'description' => $description,

tests/Api/RepositoriesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function shouldCreateRelease(): void
195195
$api = $this->getApiMock();
196196
$api->expects($this->once())
197197
->method('post')
198-
->with('projects/'.$project_id.'/repository/tags/'.$tagName.'/release', [
198+
->with('projects/'.$project_id.'/releases', [
199199
'id' => $project_id,
200200
'tag_name' => $tagName,
201201
'description' => $description,
@@ -220,7 +220,7 @@ public function shouldUpdateRelease(): void
220220
$api = $this->getApiMock();
221221
$api->expects($this->once())
222222
->method('put')
223-
->with('projects/'.$project_id.'/repository/tags/'.$tagName.'/release', [
223+
->with('projects/'.$project_id.'/releases/'.$tagName, [
224224
'id' => $project_id,
225225
'tag_name' => $tagName,
226226
'description' => $description,

vendor-bin/phpstan/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^8.0.2",
4-
"phpstan/phpstan": "1.2.0",
4+
"phpstan/phpstan": "1.4.2",
55
"phpstan/phpstan-deprecation-rules": "1.0.0",
66
"phpstan/phpstan-strict-rules": "1.1.0",
77
"thecodingmachine/phpstan-strict-rules": "1.0.0",

vendor-bin/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.2.5 || ^8.0.2",
4-
"phpunit/phpunit": "^8.5.22 || ^9.5.11"
4+
"phpunit/phpunit": "^8.5.23 || ^9.5.12"
55
},
66
"config": {
77
"preferred-install": "dist"

vendor-bin/psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^8.0.2",
4-
"psalm/phar": "4.16.1"
4+
"psalm/phar": "4.18.1"
55
},
66
"config": {
77
"preferred-install": "dist"

vendor-bin/update/composer.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)