Skip to content

Commit

Permalink
Fastlane: better handle Sentry API issues
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Jan 26, 2022
1 parent 6e36148 commit f80b99c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.

## [Master](https://github.com/appwise-labs/AppwiseCore)

### Bug Fixes

* Fastlane: `sentry_auto_set_commits` better handles issues with Sentry API.

### Internal

* Bump internal dependencies.
Expand Down
8 changes: 6 additions & 2 deletions Fastlane Actions/sentry_auto_set_commits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ def self.run(params)
end

# clear then set commits
params[:clear] = true
Actions::SentrySetCommitsAction.run(params)
begin
params[:clear] = true
Actions::SentrySetCommitsAction.run(params)
rescue
UI.message "Failed to clear commits"
end

params[:clear] = false
params[:commit] = "#{repo}@#{commits}"
Expand Down

0 comments on commit f80b99c

Please sign in to comment.