Skip to content

Commit 7a02a91

Browse files
tanhongitgithub-actions[bot]
authored andcommitted
Update CHANGELOG for v2.0.0
1 parent 5da625c commit 7a02a91

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,59 @@
22

33
Here you can see the full list of changes between each GitHub Project PHP package release.
44

5+
## v2.0.0 - 2026-03-03
6+
7+
### 🚀 Major Release - PHP 8.4+ & Modern Architecture
8+
9+
### ✨ New Features
10+
11+
- **API Endpoint**: New `GenerateCommentAction` to generate comment messages via REST API
12+
- **Route Names**: All routes now have named routes for better maintainability
13+
14+
### 🔧 Improvements
15+
16+
- **PHP Version**: Upgraded to PHP ^8.4
17+
- **Strict Types**: Added `declare(strict_types=1)` to all PHP files
18+
- **Constructor Property Promotion**: All classes use modern PHP 8.4 syntax with `readonly`
19+
- **Strict Comparisons**: All loose `==`/`!=` replaced with strict `===`/`!==`
20+
- **Removed `empty()`**: Replaced with explicit null/empty-string checks
21+
- **Dependency Injection**: Improved DI in `ProcessAggregatedEvents` job
22+
- **Simplified ServiceProvider**: Using `mergeConfigFrom()` instead of manual scandir loop
23+
24+
### 🐛 Bug Fixes
25+
26+
- Fixed ServiceProvider namespace (`CSlant\GithubProject``CSlant\GitHubProject`)
27+
- Fixed double `validatePayloadForComment()` call in `WebhookService`
28+
- Fixed lang file copy-paste errors
29+
- Removed redundant `Cache::forget()` after `Cache::pull()`
30+
- Removed dead `array_map` identity function in `aggregateMessages()`
31+
32+
### 🔒 Security
33+
34+
- Removed stack trace/file/line leak in `GenerateCommentAction` error response
35+
36+
### 🧹 Code Cleanup
37+
38+
- Removed empty `registerCommands()` method
39+
- Removed empty `Constants/` and `Http/` directories
40+
- Fixed `provides()` return type annotation
41+
- Cleaned up PHPStan baseline (removed overly broad wildcards)
42+
- Net: -133 lines removed
43+
44+
### 💥 Breaking Changes
45+
46+
- PHP `^8.4` now required
47+
- Namespace corrected from `CSlant\GithubProject` to `CSlant\GitHubProject`
48+
49+
### 📦 Dependencies Updated
50+
51+
- `orchestra/testbench`: ^10.0
52+
- `pestphp/pest`: ^4.0
53+
- `nunomaduro/larastan`: ^3.9
54+
- `phpstan/phpstan`: ^2.0
55+
56+
**Full Changelog**: https://github.com/cslant/github-project-php/compare/v1.2.0...v2.0.0
57+
558
## v1.2.0 - 2025-07-06
659

760
### What's Changed

0 commit comments

Comments
 (0)