Skip to content

Commit

Permalink
fix shit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsiaw committed May 26, 2024
1 parent 9d431f7 commit d8ce658
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ jobs:
steps:
- checkout
- run:
name: install rubocop
name: install danger
command: |
gem install danger
bundle install
danger --version
- run: danger --verbose

Expand Down
16 changes: 9 additions & 7 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ end
# ------------------------------------------------------------------------------

begin
# Pay extra attention if they modify stuff
important_files = %w[Gemfile Dangerfile]
modified_important_files = git.modified_files & important_files
unless modified_important_files.empty?
warn <<~WARNING
External contributor has edited these files: #{modified_important_files.to_a.join(', ')}
WARNING
unless github.api.organization_member?('bunnylabs', github.pr_author)
# Pay extra attention if they modify stuff
important_files = %w[Gemfile Dangerfile]
modified_important_files = git.modified_files & important_files
unless modified_important_files.empty?
warn <<~WARNING
External contributor has edited these files: #{modified_important_files.to_a.join(', ')}
WARNING
end
end
rescue URI::InvalidURIError => e
warn <<~WARNING
Expand Down
2 changes: 1 addition & 1 deletion app/models/paper_trail/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module PaperTrail
# Extension to allow papertrail versions to use ULID
class Version < ApplicationRecord
class Version < ActiveRecord::Base
include PaperTrail::VersionConcern
include ULID::Rails
ulid :id
Expand Down

0 comments on commit d8ce658

Please sign in to comment.