file-filters.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. yarn_lockfile: &yarn_lockfile
  11. - 'yarn.lock'
  12. eslint_config: &eslint_config
  13. - '.eslint*'
  14. frontend: &frontend
  15. - *yarn_lockfile
  16. - *frontend_lintable
  17. - *eslint_config
  18. - '**/*.less'
  19. - 'docs-ui/**'
  20. - 'static/**'
  21. - 'tests/js/**'
  22. - '.github/workflows/js-*.yml'
  23. frontend_modified_lintable:
  24. - added|modified: *frontend_lintable
  25. frontend_components_modified_lintable:
  26. - added|modified: *frontend_components_lintable
  27. backend_lintable: &backend_lintable
  28. - '**/*.py'
  29. # Currently used in `getsentry-dispatch.yml` to dispatch backend tests on getsentry
  30. backend_dependencies: &backend_dependencies
  31. - 'requirements-*.txt'
  32. backend_build_changes: &backend_build_changes
  33. - 'Makefile'
  34. - '.pre-commit-config.yaml'
  35. - '.python-version'
  36. - '.github/workflows/!(js-*)'
  37. backend: &backend
  38. - *backend_build_changes
  39. - *backend_dependencies
  40. - *backend_lintable
  41. - '**/*.sh'
  42. - '**/*.pysnap'
  43. - 'src/sentry/!(static)/**'
  44. - 'migrations_lockfile.txt'
  45. - 'config/**/*'
  46. plugins:
  47. - *backend
  48. - 'src/sentry_plugins/**/*.html'
  49. api_docs:
  50. - *backend
  51. - 'api-docs/**'
  52. - 'tests/apidocs/**'
  53. migrations_added:
  54. - added: 'src/sentry/migrations/*'
  55. migrations_modified:
  56. - modified: 'src/sentry/migrations/*'