file-filters.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # This is used by the action https://github.com/dorny/paths-filter (which we have forked to https://github.com/getsentry/paths-filter)
  2. # TODO: There are some meta files that we potentially could ignore for both front/backend,
  3. # as well as some configuration files that should trigger both
  4. frontend_components_lintable: &frontend_components_lintable
  5. - '**/*.[tj]{s,sx}'
  6. frontend_lintable: &frontend_lintable
  7. - *frontend_components_lintable
  8. - '**/tsconfig*.json'
  9. - '{package,now,vercel}.json'
  10. frontend: &frontend
  11. - *frontend_lintable
  12. - '**/*.less'
  13. - 'yarn.lock'
  14. - '.eslint*'
  15. - 'docs-ui/**'
  16. - 'src/sentry/static/sentry/**'
  17. - 'tests/js/**'
  18. - '.github/workflows/js-*.yml'
  19. frontend_modified_lintable:
  20. - added|modified: *frontend_lintable
  21. frontend_components_modified_lintable:
  22. - added|modified: *frontend_components_lintable
  23. backend_lintable: &backend_lintable
  24. - '**/*.py'
  25. # Currently used in `getsentry-dispatch.yml` to dispatch backend tests on getsentry
  26. backend_dependencies: &backend_dependencies
  27. - 'requirements-*.txt'
  28. backend_build_changes: &backend_build_changes
  29. - 'Makefile'
  30. - '.pre-commit-config.yaml'
  31. - '.python-version'
  32. - '.github/workflows/!(js-*)'
  33. backend: &backend
  34. - *backend_build_changes
  35. - *backend_dependencies
  36. - *backend_lintable
  37. - '**/*.sh'
  38. - '**/*.pysnap'
  39. - 'src/sentry/!(static)/**'
  40. - 'migrations_lockfile.txt'
  41. - 'config/**/*'
  42. plugins:
  43. - *backend
  44. - 'src/sentry_plugins/**/*.html'
  45. api_docs:
  46. - *backend
  47. - 'api-docs/**'
  48. - 'tests/apidocs/**'
  49. migrations_added:
  50. - added: 'src/sentry/migrations/*'
  51. migrations_modified:
  52. - modified: 'src/sentry/migrations/*'