file-filters.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. - 'requirements-base.txt'
  30. # Currently used in `getsentry-dispatch.yml` to dispatch backend tests on getsentry
  31. backend_dependencies: &backend_dependencies
  32. - 'requirements-*.txt'
  33. backend_build_changes: &backend_build_changes
  34. - 'Makefile'
  35. - '.pre-commit-config.yaml'
  36. - '.python-version'
  37. - '.github/workflows/!(js-*)'
  38. backend: &backend
  39. - *backend_build_changes
  40. - *backend_dependencies
  41. - *backend_lintable
  42. - '**/*.sh'
  43. - '**/*.pysnap'
  44. - 'src/sentry/!(static)/**'
  45. - 'migrations_lockfile.txt'
  46. - 'config/**/*'
  47. plugins:
  48. - *backend
  49. - 'src/sentry_plugins/**/*.html'
  50. api_docs:
  51. - *backend
  52. - 'api-docs/**'
  53. - 'tests/apidocs/**'
  54. migrations_added:
  55. - added: 'src/sentry/migrations/*'
  56. migrations_modified:
  57. - modified: 'src/sentry/migrations/*'