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

feat: Allow for ignoring missing commits in set-commit #963

Merged
merged 2 commits into from
May 26, 2021

Conversation

kamilogorek
Copy link
Contributor

We could go with the more complex route of fetching all N releases and use their previous commits one by one, until we find a working one, however:

  • it wouldn't cut it for fresh projects (a single release which has squashed commit)
  • it would require us to fetch all that data from the API, as get_previous_release_with_commits that we use currently, is a very specific /previous-with-commits endpoint that returns only a single release

This change will allow us to be more "generous" for malformed repositories and it will still work fine with initial-depth option. Tested it on production already and works as expected.

Fixes: #792
Fixes #945
Fixes: #956
Fixes: EmberExperts/ember-cli-deploy-sentry-cli#10

Copy link
Contributor

@NisanthanNanthakumar NisanthanNanthakumar left a comment

Choose a reason for hiding this comment

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

@kamilogorek Looks good to me! I think we should add docs for this flag. Since this is primarily an issue that affects the --local flow, I think https://docs.sentry.io/product/cli/releases/#alternatively-without-a-repository-integration is a good place.

@kamilogorek
Copy link
Contributor Author

Added getsentry/sentry-docs#3625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants