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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/brain/apis/getOwnershipData.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { GETSENTRY_ORG, SENTRY_REPO_SLUG } from '@/config';
import { GETSENTRY_ORG } from '@/config';

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
Member Author

Choose a reason for hiding this comment

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


export default async function getOwnershipData() {
const resp = await GETSENTRY_ORG.api.rest.repos.getContent({
owner: GETSENTRY_ORG.slug,
repo: SENTRY_REPO_SLUG,
repo: SENTRY_API_SCHEMA,
path: OWNERSHIP_FILE_PATH,
});

Expand Down
Loading