-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update TypeScript workflow to run only if TS-related samples change #24691
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,24 @@ | ||
| name: TypeScript clients type checks | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - samples/client/petstore/typescript*/** | ||
|
Contributor
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. P3: The 7-path filter list is duplicated verbatim between the Prompt for AI agents |
||
| - samples/client/others/typescript*/** | ||
| - samples/client/echo_api/typescript*/** | ||
| - samples/openapi3/client/petstore*/typescript/** | ||
| - samples/server/petstore/typescript-nestjs-server/** | ||
| - bin/ts-typecheck-all.sh | ||
| - .github/workflows/samples-typescript-typecheck.yaml | ||
| pull_request: | ||
| paths: | ||
| - samples/** | ||
| - samples/client/petstore/typescript*/** | ||
| - samples/client/others/typescript*/** | ||
| - samples/client/echo_api/typescript*/** | ||
| - samples/openapi3/client/petstore*/typescript/** | ||
| - samples/server/petstore/typescript-nestjs-server/** | ||
| - bin/ts-typecheck-all.sh | ||
| - .github/workflows/samples-typescript-typecheck.yaml | ||
| jobs: | ||
|
|
||
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.
P3: Adding a push trigger alongside pull_request runs this workflow twice for the same commit on any in-repo feature branch that has an open PR. For fork-based PRs only pull_request fires, but for same-repo branches the duplication partially undercuts the PR's stated goal of reducing CI noise. Consider dropping the push trigger or restricting it to master.
Prompt for AI agents