Skip to content

Commit 8011ff6

Browse files
Merge remote-tracking branch 'upstream/11.14' into pkolmann-gitlab-integrations
2 parents 1f28f5f + 6b80588 commit 8011ff6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1255
-78
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
- name: Checkout code
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949

5050
- name: Setup PHP
5151
uses: shivammathur/setup-php@v2

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['7.4', '8.0', '8.1', '8.2']
14+
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
1515

1616
steps:
1717
- name: Checkout Code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ disabled:
1717
- native_constant_invocation_symfony
1818
- native_function_invocation_symfony
1919
- no_superfluous_phpdoc_tags_symfony
20+
- phpdoc_align
2021
- phpdoc_to_comment
2122
- phpdoc_var_without_name

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [11.14.0] - 2024-03-11
9+
10+
* Add support for `php-http/cache-plugin:^2.0`
11+
* Add support for `'approved'` `status` in `Project::events`
12+
* Add support for `name` in `createRelease` and `updateRelease`
13+
* Add support for date filtering to `GroupsMilestones::all()`
14+
* Update `MergeRequests::all` to use millisecond precision for date filters
15+
16+
## [11.13.0] - 2023-12-03
17+
18+
* Add support for `symfony/options-resolver:^7.0`
19+
* Add support for `status` and `environment` in `Deployments::all`
20+
* Add support for `Groups::search`, `Projects::search`, and `Search::all`
21+
22+
## [11.12.0] - 2023-10-08
23+
24+
* Add PHP 8.3 support
25+
* Add `Projects::updateProtectedBranch` and `Projects::updateApprovalsConfiguration`
26+
* Add support for `environment_scope` in `Projects::removeVariable`
27+
* Add support for `filter` in `Projects::variable`
28+
* Add support for `author` in `Repositories::commits`
29+
* Add support for additional parameters in `Projects::labels` and `Groups::labels`
30+
31+
## [11.11.1] - 2023-10-08
32+
33+
* Fixed double encoding of job name in artifacts download
34+
35+
## [11.11.0] - 2023-07-17
36+
37+
* Add support for `author_id` in `Issues::all`
38+
* Add support for `tier` in `Environments::create`
39+
* Add support for `expires_at` in `Groups::addMember`
40+
* Add support for `include_retried` in `Jobs::pipelineBridges`
41+
* Add support for additional parameters in `Projects::deployment`
42+
* Add support for additional parameters in `Projects::forks`
43+
* Add support for `Events::all`
44+
* Add support for `Users::removeUserIdentity`
45+
* Add support for `MergeRequests::showParticipants`
46+
847
## [11.10.0] - 2023-04-30
948

1049
* Add support for `Packages::addGenericFile`

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-2023 Graham Campbell <[email protected]>
4+
Copyright (c) 2018-2024 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

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,27 @@ Check out the [change log](CHANGELOG.md), [releases](https://github.com/GitLabPH
2323

2424
## Installation
2525

26-
This version supports [PHP](https://php.net) 7.4-8.2. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
26+
This version supports [PHP](https://php.net) 7.4-8.3. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
2727

2828
### Standard Installation
2929

3030
```bash
31-
$ composer require "m4tthumphrey/php-gitlab-api:^11.10" \
32-
"guzzlehttp/guzzle:^7.5.1" "http-interop/http-factory-guzzle:^1.2"
31+
$ composer require "m4tthumphrey/php-gitlab-api:^11.14" \
32+
"guzzlehttp/guzzle:^7.8" "http-interop/http-factory-guzzle:^1.2"
3333
```
3434

3535
### Framework Integration
3636

3737
#### Laravel:
3838

3939
```bash
40-
$ composer require "graham-campbell/gitlab:^7.2"
40+
$ composer require "graham-campbell/gitlab:^7.5"
4141
```
4242

4343
#### Symfony:
4444

4545
```bash
46-
$ composer require "zeichen32/gitlabapibundle:^6.0" \
47-
"symfony/http-client:^6.2" "nyholm/psr7:^1.7"
46+
$ composer require "zeichen32/gitlabapibundle:^6.1"
4847
```
4948

5049
We are decoupled from any HTTP messaging client by using [PSR-7](https://www.php-fig.org/psr/psr-7/), [PSR-17](https://www.php-fig.org/psr/psr-17/), [PSR-18](https://www.php-fig.org/psr/psr-18/), and [HTTPlug](https://httplug.io/). You can visit [HTTPlug for library users](https://docs.php-http.org/en/latest/httplug/users.html) to get more information about installing HTTPlug related packages. The framework integration [graham-campbell/gitlab](https://github.com/GrahamCampbell/Laravel-GitLab) is by [Graham Campbell](https://github.com/GrahamCampbell) and [zeichen32/gitlabapibundle](https://github.com/Zeichen32/GitLabApiBundle) is by [Jens Averkamp](https://github.com/Zeichen32).

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
"php": "^7.4.15 || ^8.0.2",
3030
"ext-json": "*",
3131
"ext-xml": "*",
32-
"php-http/cache-plugin": "^1.8",
33-
"php-http/client-common": "^2.6.1",
34-
"php-http/discovery": "^1.17",
32+
"php-http/cache-plugin": "^1.8.1 || ^2.0",
33+
"php-http/client-common": "^2.7.1",
34+
"php-http/discovery": "^1.19.2",
3535
"php-http/httplug": "^2.4",
3636
"php-http/multipart-stream-builder": "^1.3",
3737
"psr/cache": "^1.0 || ^2.0 || ^3.0",
3838
"psr/http-client-implementation": "^1.0",
3939
"psr/http-factory-implementation": "^1.0",
4040
"psr/http-message": "^1.1 || ^2.0",
41-
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
41+
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0 || ^7.0",
4242
"symfony/polyfill-php80": "^1.26"
4343
},
4444
"require-dev": {
4545
"bamarni/composer-bin-plugin": "^1.8.2",
46-
"guzzlehttp/guzzle": "^7.5.1",
47-
"http-interop/http-factory-guzzle": "^1.0"
46+
"guzzlehttp/guzzle": "^7.8",
47+
"http-interop/http-factory-guzzle": "^1.2"
4848
},
4949
"autoload": {
5050
"psr-4": {

phpstan-baseline.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ parameters:
2020
count: 1
2121
path: src/Api/AbstractApi.php
2222

23+
-
24+
message: "#^PHPDoc tag @return contains generic type Http\\\\Promise\\\\Promise\\<Psr\\\\Http\\\\Message\\\\ResponseInterface\\> but interface Http\\\\Promise\\\\Promise is not generic\\.$#"
25+
count: 1
26+
path: src/HttpClient/Plugin/Authentication.php
27+
28+
-
29+
message: "#^PHPDoc tag @return contains generic type Http\\\\Promise\\\\Promise\\<Psr\\\\Http\\\\Message\\\\ResponseInterface\\> but interface Http\\\\Promise\\\\Promise is not generic\\.$#"
30+
count: 1
31+
path: src/HttpClient/Plugin/ExceptionThrower.php
32+
2333
-
2434
message: "#^Cannot cast mixed to string\\.$#"
2535
count: 1

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ includes:
77
rules:
88
- Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule
99
- Ergebnis\PHPStan\Rules\Expressions\NoCompactRule
10-
- Ergebnis\PHPStan\Rules\Expressions\NoEmptyRule
1110
- Ergebnis\PHPStan\Rules\Expressions\NoEvalRule
1211
- Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule
1312
- Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
33
<testsuites>
44
<testsuite name="Test Suite">
55
<directory suffix="Test.php">./tests</directory>
66
</testsuite>
77
</testsuites>
8-
<coverage>
8+
<source>
99
<include>
1010
<directory suffix=".php">./src</directory>
1111
</include>
12-
</coverage>
12+
</source>
1313
</phpunit>

0 commit comments

Comments
 (0)