wp | lang #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Laravel Pint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| pint: | |
| runs-on: ubuntu-latest | |
| name: Run Laravel Pint | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| coverage: none | |
| tools: composer | |
| - name: Install dependencies | |
| run: | | |
| composer install --no-interaction --prefer-dist --no-progress | |
| # Eğer Pint yüklü değilse, dev bağımlılık olarak yükle | |
| if [ ! -f ./vendor/bin/pint ]; then | |
| composer require laravel/pint --dev | |
| fi | |
| - name: Run Laravel Pint (format check) | |
| id: pint | |
| continue-on-error: true | |
| run: ./vendor/bin/pint --test | |
| - name: Run Pint fix if style issues found | |
| if: steps.pint.outcome == 'failure' | |
| run: | | |
| echo "❌ Kod biçimi hataları bulundu. Düzeltmeler uygulanıyor..." | |
| ./vendor/bin/pint | |
| - name: Create Pull Request for Pint fixes | |
| if: steps.pint.outcome == 'failure' | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "chore: apply Pint code style fixes" | |
| title: "🔧 Laravel Pint - Code Style Fixes" | |
| body: | | |
| This pull request was automatically generated because Laravel Pint detected and fixed code style issues. | |
| **Action performed by:** GitHub Actions (Laravel Pint Workflow) | |
| branch: "pint/code-style-fixes" | |
| base: ${{ github.ref_name }} | |
| labels: "automation, code-style" | |
| delete-branch: true | |
| author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| add-paths: | | |
| . |