diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..161659e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,48 @@ +# .github/labeler.yml + +# Label PRs that modify TypeScript files +typescript: + - "**/*.ts" + - "**/*.tsx" + +# Label PRs that modify JavaScript files +javascript: + - "**/*.js" + - "**/*.jsx" + +# Label PRs that modify SCSS or CSS files +styles: + - "**/*.css" + - "**/*.scss" + +# Label PRs that modify API routes +api: + - "pages/api/**/*" + +# Label PRs that modify public assets +assets: + - "public/**/*" + +# Label PRs that modify configuration files +config: + - "next.config.js" + - "tsconfig.json" + - ".eslintrc.js" + - ".prettierrc" + - ".env*" + +# Label PRs that modify documentation +documentation: + - "**/*.md" + - "**/*.mdx" + +# Label PRs that modify CI/CD workflows +ci: + - ".github/workflows/**/*" + +# Label PRs that modify test files +tests: + - "**/*.test.ts" + - "**/*.test.tsx" + - "**/*.spec.ts" + - "**/*.spec.tsx" diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 9ee18d9..ef0e9d4 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -44,9 +44,3 @@ jobs: --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v3 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 2661cee..0854308 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -20,3 +20,4 @@ jobs: - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GH_TOKEN}}" + configuration-path: labeler.yml