Skip to content

Commit 56bb18d

Browse files
committed
fix rescue-logging lint in branches and contents runners
1 parent ca01c2e commit 56bb18d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/legion/extensions/github/runners/branches.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def create_branch(owner:, repo:, branch:, from_ref: 'main', **)
1818

1919
{ success: true, ref: create_response.body['ref'], sha: sha }
2020
rescue StandardError => e
21+
log.warn(e.message) if respond_to?(:log, true)
2122
{ success: false, error: e.message }
2223
end
2324

lib/legion/extensions/github/runners/contents.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def commit_files(owner:, repo:, branch:, files:, message:, **)
3333

3434
{ success: true, commit_sha: new_commit.body['sha'], tree_sha: new_tree.body['sha'] }
3535
rescue StandardError => e
36+
log.warn(e.message) if respond_to?(:log, true)
3637
{ success: false, error: e.message }
3738
end
3839

0 commit comments

Comments
 (0)