Skip to content

Commit

Permalink
Use Dangerfile repository (RevenueCat#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro authored Aug 25, 2022
1 parent 4b857e6 commit 8268f8a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
def fail_if_no_supported_label_found
supported_types = ["breaking", "build", "ci", "docs", "feat", "fix", "perf", "refactor", "style", "test", "next_release"]

supported_labels_in_pr = supported_types & github.pr_labels
no_supported_label = supported_labels_in_pr.empty?
if no_supported_label
fail("Label the PR using one of the change type labels: #{supported_types}")
end
end

fail_if_no_supported_label_found
danger.import_dangerfile(github: 'RevenueCat/Dangerfile')

0 comments on commit 8268f8a

Please sign in to comment.