-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ci(api): Create a list of valid api urls #100515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ryan953
merged 13 commits into
master
from
ryan953/ci-build-typescript-list-of-api-urls
Oct 15, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f1898bc
ci(api): Write a script to gen a list of valid api urls
ryan953 159c59b
adjust ci file detection rules
ryan953 09ee4d2
add script to precommit steps
ryan953 fb6450b
re-gen the file with proper command in comments
ryan953 b9d8075
tests in test folder
ryan953 82c5d6a
unique list of routes in the output
ryan953 7e9791a
re-gen with unique lines, and rm commented code
ryan953 2af2d44
fix file-filters
ryan953 77c3472
WIP - apiOptions still failing
ryan953 54d94c3
Merge branch 'master' into ryan953/ci-build-typescript-list-of-api-urls
ryan953 ae19a76
adjust tests to use real urls for TS
ryan953 09a451e
split sentry and getsentry types into two files
ryan953 54aa504
fix types and sort
ryan953 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,36 @@ | ||
| # This is used by the action https://github.com/dorny/paths-filter | ||
|
|
||
| sentry_specific_workflow: &sentry_specific_workflow | ||
| sentry_frontend_workflow_file: &sentry_frontend_workflow_file | ||
| - added|modified: '.github/workflows/frontend.yml' | ||
| sentry_specific_test_files: &sentry_specific_test_files | ||
| - added|modified: 'tests/js/**/*' | ||
| - added|deleted|modified: 'fixtures/search-syntax/**/*' | ||
|
Comment on lines
-5
to
-7
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. inlined into the one callsite. |
||
|
|
||
| # Provides list of changed files to test (jest) | ||
| # getsentry/sentry does not use this directly, instead we shard tests inside jest.config.js | ||
| # getsentry/sentry does not use the list directly, instead we shard tests inside jest.config.js | ||
| testable_modified: &testable_modified | ||
| - '!**/*.generated.ts' | ||
| - added|modified: 'package.json' | ||
| - added|modified: 'static/**/*.[tj]{s,sx}' | ||
| - *sentry_specific_test_files | ||
| - added|modified: 'static/**/*.{ts,tsx,js,jsx,mjs}' | ||
| - added|modified: 'tests/js/**/*' | ||
| - added|deleted|modified: 'fixtures/search-syntax/**/*' | ||
|
|
||
| # Trigger for when we must run full tests (jest) | ||
| testable_rules_changed: &testable_rules_changed | ||
| - *sentry_specific_workflow | ||
| - *sentry_frontend_workflow_file | ||
| - added|modified: '.github/file-filters.yml' | ||
| - added|modified: 'jest.config.ts' | ||
|
|
||
| # Trigger whether to run tsc or not | ||
| # There's no "rules_changed" for this, because we run it for all files always | ||
| # getsentry/sentry does not use this directly, instead frontend_all is a superset to trigger tsc | ||
| typecheckable_rules_changed: &typecheckable_rules_changed | ||
| - *sentry_specific_workflow | ||
| - *sentry_frontend_workflow_file | ||
| - added|modified: '.github/file-filters.yml' | ||
| - added|deleted|modified: '**/tsconfig*.json' | ||
| - added|deleted|modified: 'static/**/*.[tj]{s,sx}' | ||
| - added|deleted|modified: 'static/**/*.{ts,tsx,js,jsx,mjs}' | ||
|
|
||
| # Trigger to apply the 'Scope: Frontend' label to PRs | ||
| frontend_all: &frontend_all | ||
| - *sentry_frontend_workflow_file | ||
| - '!**/*.generated.ts' | ||
| - added|modified: '**/*.{ts,tsx,js,jsx,mjs}' | ||
| - added|modified: 'static/**/*.{less,json,yml,md,mdx}' | ||
| - added|modified: '{.volta,vercel,tsconfig,biome,package}.json' | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed, it's only used within the file