file-filters.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. - '.github/workflows/!(js-*)'
  37. - '.github/actions/setup-sentry/action.yml'
  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/*'
  58. # These files will trigger our wokrflow to check if lockfile
  59. # updates are needed
  60. migration_lockfile:
  61. - *backend_dependencies
  62. - *backend_lintable
  63. - .github/workflows/check-if-migration-is-required.yml
  64. - .github/workflows/scripts/migration-check.sh