fix: incomplete EF setup for authentication system #33
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: Label PR by Folder | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| label-pr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v45 | |
| - name: Add frontend label | |
| if: | | |
| contains(steps.changed-files.outputs.all_changed_files, 'wwwroot/') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Views/') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Areas/Identity/Pages/') | |
| run: | | |
| gh pr edit $PR_NUMBER --add-label "Frontend" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| - name: Add backend label | |
| if: | | |
| contains(steps.changed-files.outputs.all_changed_files, 'Controllers/') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Models/') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Data/') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Services/') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Program.cs') || | |
| contains(steps.changed-files.outputs.all_changed_files, '.cs') | |
| run: | | |
| gh pr edit $PR_NUMBER --add-label "Backend" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| - name: Add configuration label | |
| if: | | |
| contains(steps.changed-files.outputs.all_changed_files, 'appsettings.json') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'Properties/') || | |
| contains(steps.changed-files.outputs.all_changed_files, '.csproj') || | |
| contains(steps.changed-files.outputs.all_changed_files, '.sln') | |
| run: | | |
| gh pr edit $PR_NUMBER --add-label "Configuration" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| - name: Add documentation label | |
| if: | | |
| contains(steps.changed-files.outputs.all_changed_files, 'README.md') || | |
| contains(steps.changed-files.outputs.all_changed_files, '.md') || | |
| contains(steps.changed-files.outputs.all_changed_files, 'docs/') | |
| run: | | |
| gh pr edit $PR_NUMBER --add-label "Documentation" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| - name: Add CI/CD label | |
| if: | | |
| contains(steps.changed-files.outputs.all_changed_files, '.github/workflows/') || | |
| contains(steps.changed-files.outputs.all_changed_files, '.github/actions/') | |
| run: | | |
| gh pr edit $PR_NUMBER --add-label "CI/CD" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} |