Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#223] Ignore Danger run on WIP pull request #432

Merged
merged 7 commits into from
Jul 17, 2023
6 changes: 6 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# frozen_string_literal: true

# Skip Danger run if the opened pull request has "wip" label, [WIP] in the title, or status is Draft
if github.pr_labels.include?('wip') || github.pr_title.include?('[WIP]') || github.pr_json['draft']
sanG-github marked this conversation as resolved.
Show resolved Hide resolved
message('Skipping Danger run: Pull request is marked as work-in-progress or draft.')
return
end

# Runs Rubocop and submit comments on modified and added files
rubocop.lint(inline_comment: true, force_exclusion: true)

Expand Down