-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix(apis): Read from api schema repo #652
Conversation
|
||
const OWNERSHIP_FILE_PATH = | ||
'src/sentry/apidocs/api_ownership_stats_dont_modify.json'; | ||
const OWNERSHIP_FILE_PATH = 'api_ownership_stats_dont_modify.json'; |
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.
Codecov ReportAll modified lines are covered by tests ✅
📢 Thoughts on this report? Let us know!. |
src/brain/apis/getOwnershipData.ts
Outdated
const OWNERSHIP_FILE_PATH = | ||
'src/sentry/apidocs/api_ownership_stats_dont_modify.json'; | ||
const OWNERSHIP_FILE_PATH = 'api_ownership_stats_dont_modify.json'; | ||
const SENTRY_API_SCHEMA = 'sentry-api-schema' |
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.
const SENTRY_API_SCHEMA = 'sentry-api-schema' | |
const SENTRY_API_SCHEMA = 'sentry-api-schema'; |
Another option is to inline this. The only reason we have the SENTRY_REPO_SLUG constant is to make testing easier, but in this case, this is a constant and can be inlined in the getContent call.
We decided that this file is better to live in sentry-api-schema repo. The file content is the same so the bot will behave the same.
Context for repo change: getsentry/sentry#56698