Skip to content
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

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Conversation

sentaur-athena
Copy link
Member

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


const OWNERSHIP_FILE_PATH =
'src/sentry/apidocs/api_ownership_stats_dont_modify.json';
const OWNERSHIP_FILE_PATH = 'api_ownership_stats_dont_modify.json';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
src/brain/apis/getOwnershipData.ts 30.76% <100.00%> (+5.76%) ⬆️

📢 Thoughts on this report? Let us know!.

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@sentaur-athena sentaur-athena enabled auto-merge (squash) October 10, 2023 22:42
@sentaur-athena sentaur-athena merged commit d3a016d into main Oct 10, 2023
6 checks passed
@sentaur-athena sentaur-athena deleted the athena/sentry-api-schema branch October 10, 2023 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants