Skip to content

Commit d1e45d5

Browse files
committed
Fastlane: better handle Sentry API issues
1 parent 798340a commit d1e45d5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55

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

8+
### Bug Fixes
9+
10+
* Fastlane: `sentry_auto_set_commits` better handles issues with Sentry API.
11+
812
## [1.4.5](https://github.com/appwise-labs/AppwiseCore/releases/tag/1.4.5)
913

1014
### Bug Fixes

Example

Fastlane Actions/sentry_auto_set_commits.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ def self.run(params)
2121
end
2222

2323
# clear then set commits
24-
params[:clear] = true
25-
Actions::SentrySetCommitsAction.run(params)
24+
begin
25+
params[:clear] = true
26+
Actions::SentrySetCommitsAction.run(params)
27+
rescue
28+
UI.message "Failed to clear commits"
29+
end
2630

2731
params[:clear] = false
2832
params[:commit] = "#{repo}@#{commits}"

0 commit comments

Comments
 (0)