diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index c28e032..442b398 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -88,8 +88,10 @@ const periodMultiplier = { - **SonarCloud**: CI/CD quality gates (see badges in README) ## Key Files Reference -- `package.json`: Build/test scripts and dependencies -- `nuxt.config.ts`: Tailwind, SEO meta, static generation config +- `package.json`: Build/test/lint scripts and dependencies +- `nuxt.config.ts`: Tailwind, SEO meta, static generation and lint config +- `eslint.config.mjs`: ESLint flat config entry point (auto-generated) +- `.github/workflows/pr-title.yml`: PR title conventional commit validation - `vitest.config.ts`: Test runner configuration - `tsconfig.json`: TypeScript strict mode (recommended) - `app/assets/indicadores.json`: Runtime market data (do not commit hardcoded values) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000..8496624 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,29 @@ +name: 'Conventional PR Title' +on: + pull_request: + types: [opened, edited, synchronize, reopened] +concurrency: + group: pr-title-${{ github.event.pull_request.number }} + cancel-in-progress: true +jobs: + check-title: + permissions: + pull-requests: read + runs-on: ubuntu-latest + steps: + - name: Check pull request title for Conventional Commit + uses: amannn/action-semantic-pull-request@v6 + with: + types: | + feat + fix + docs + style + refactor + perf + test + build + ci + chore + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}