Browse Source

Updated the changelog

tags/v0.4.0
Cédric Belin 3 months ago
parent
commit
d0e3f662fe
3 changed files with 12 additions and 6 deletions
  1. +9
    -4
      CHANGELOG.md
  2. +2
    -2
      etc/mkdocs.yaml
  3. +1
    -0
      example/main.php

+ 9
- 4
CHANGELOG.md View File

@@ -1,21 +1,26 @@
# Changelog

## Version [0.3.0](https://github.com/cedx/yii2-gitea/compare/v0.2.0...v0.3.0)
## Version [0.4.0](https://git.belin.io/cedx/yii2-gitea/compare/v0.3.0...v0.4.0)
- Added the `UserHeatmapData` model.
- Updated the documentation.
- Updated the package dependencies.

## Version [0.3.0](https://git.belin.io/cedx/yii2-gitea/compare/v0.2.0...v0.3.0)
- Breaking change: raised the required [PHP](https://www.php.net) version.
- Breaking change: removed `__toString()` methods from the model classes.
- Breaking change: using camelcase instead of all caps for constants.
- Breaking change: using PHP 7.4 features, like arrow functions and typed properties.
- Updated the package dependencies.

## Version [0.2.0](https://github.com/cedx/yii2-gitea/compare/v0.1.1...v0.2.0)
## Version [0.2.0](https://git.belin.io/cedx/yii2-gitea/compare/v0.1.1...v0.2.0)
- Breaking change: changed the signature of the `fromJson()` methods.
- Added `__toString()` methods to the model classes.
- Added the `TrackedTime` model.
- Added a user guide based on [MkDocs](http://www.mkdocs.org).
- Updated the package dependencies.

## Version [0.1.1](https://github.com/cedx/yii2-gitea/compare/v0.1.0...v0.1.1)
- Fixed [issue #1](https://github.com/cedx/yii2-gitea/issues/1): the `Repository->sshUrl` property should be writable.
## Version [0.1.1](https://git.belin.io/cedx/yii2-gitea/compare/v0.1.0...v0.1.1)
- Fixed [issue #1](https://git.belin.io/cedx/yii2-gitea/issues/1): the `Repository->sshUrl` property should be writable.

## Version 0.1.0
- Initial release.

+ 2
- 2
etc/mkdocs.yaml View File

@@ -44,5 +44,5 @@ theme:
name: material
favicon: img/favicon.ico
palette:
accent: purple
primary: purple
accent: indigo
primary: indigo

+ 1
- 0
example/main.php View File

@@ -10,6 +10,7 @@ use yii\web\{BadRequestHttpException};
* @throws BadRequestHttpException The request headers or the request body are invalid.
*/
function main(): PushEvent {
/** @var \yii\web\Request $request */
$request = Yii::$app->getRequest();
$headers = $request->getHeaders();
if (!$headers->has('X-Gitea-Delivery') || !$headers->has('X-Gitea-Event')) throw new BadRequestHttpException('Invalid payload data.');


Loading…
Cancel
Save