Skip to content

Conversation

@lforst
Copy link

@lforst lforst commented Aug 24, 2022

No description provided.

@lforst lforst requested review from Lms24 and vladanpaunovic August 24, 2022 08:53
}
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
const USER_AGENT = `sentry-unplugin/${unpluginVersion}`;
const sentryApiAxiosInstance = axios.create();
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for this!

Copy link
Contributor

@vladanpaunovic vladanpaunovic left a comment

Choose a reason for hiding this comment

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

Ignoring TODOs, all good

authToken: string;
sentryUrl: string;
}): Promise<void> {
const requestUrl = `${sentryUrl}${API_PATH}/projects/${org}/${project}/releases/`;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const requestUrl = `${sentryUrl}${API_PATH}/projects/${org}/${project}/releases/`;
// using the legacy endpoint here because the sentry webpack plugin only associates one project
// with the release. If we ever wanna support multiple projects in the unplugin,
// take a look at how sentry/cli calls the new endpoint:
// https://github.com/getsentry/sentry-cli/blob/4fa813549cd249e77ae6ba974d76e606a19f48de/src/api.rs#L769-L773
const requestUrl = `${sentryUrl}${API_PATH}/projects/${org}/${project}/releases/`;

Comment on lines 45 to 48
// using the legacy endpoint here because the sentry webpack plugin only associates one project
// with the release. If we ever wanna support multiple projects in the unplugin,
// take a look at how sentry/cli calls the new endpoint:
// https://github.com/getsentry/sentry-cli/blob/4fa813549cd249e77ae6ba974d76e606a19f48de/src/api.rs#L769-L773
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// using the legacy endpoint here because the sentry webpack plugin only associates one project
// with the release. If we ever wanna support multiple projects in the unplugin,
// take a look at how sentry/cli calls the new endpoint:
// https://github.com/getsentry/sentry-cli/blob/4fa813549cd249e77ae6ba974d76e606a19f48de/src/api.rs#L769-L773

@lforst lforst merged commit bde4f70 into main Aug 24, 2022
@lforst lforst deleted the lforst-clean-artifacts branch August 24, 2022 09:03
@lforst lforst mentioned this pull request Aug 24, 2022
29 tasks
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.

4 participants