vortechstudio / laravel-github-issues
Ce package dédié à laravel permet d'ouvrir un ticket sur github quand une Exception de type Erreur, Critique ou Urgence apparait dans le code, il peut être aider d'openAI pour créer le ticket.
Fund package maintenance!
Vortech Studio
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- illuminate/support: ^10.0
- knplabs/github-api: ^3.0
- openai-php/client: ^0.8
- spatie/laravel-package-tools: ^1.14.0
- symfony/http-client: ^7.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-11-08 21:41:48 UTC
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
composer require vortechstudio/laravel-github-issues
You can publish and run the migrations with:
php artisan vendor:publish --tag="laravel-github-issues-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="laravel-github-issues-config"
Ajouter les variables d'environnement suivantes dans le fichier .env
GITHUB_TOKEN= GITHUB_OWNER= GITHUB_REPOSITORY= OPENAI_STATE=true OPENAI_API_KEY=sk-... OPENAI_ORGANIZATION=org-...
OPENAI_STATE permet d'activer ou non l'api openAI pour la création du ticket
Si vous n'avez pas de compte openAI, vous pouvez en créer un gratuitement sur https://openai.com/
Créer votre compte et ajouter votre clé API dans la variable OPENAI_API_KEY
Ajouter le service Github dans le fichier config/services.php
'github' => [ "token" => env('GH_TOKEN', null), ],
Ajouter le système log dans le fichier config/logging.php
'github_issues' => [ "driver" => "monolog", 'level' => "error", "handler" => \Vortechstudio\LaravelGithubIssues\GithubIssuesHandler::class, "channels" => ["daily"] ]
Définir le LOG_CHANNEL du fichier .env sur github_issues
Usage
Le système détectera automatiquement une Erreur de type error ou supérieur et créera un ticket sur github.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.