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

Conversation

mosharaf13
Copy link
Contributor

close #223

What happened 👀

  • Skip danger run if PR has [WIP] in it's title
  • Skip danger run if PR has wip in it's label
  • Skip danger run if PR is in draft

Insight 📝

  • Tested on a project created from rails template. Worked successfully.

Proof Of Work 📹

Screen Shot 2023-07-05 at 3 08 43 PM

Dangerfile Outdated Show resolved Hide resolved
Dangerfile Outdated Show resolved Hide resolved
Dangerfile Outdated Show resolved Hide resolved
Dangerfile Outdated Show resolved Hide resolved
@malparty malparty requested a review from tyrro July 10, 2023 03:49
@@ -2,6 +2,7 @@ name: Test

on:
pull_request:
types: [opened, edited, labeled, unlabeled, converted_to_draft, ready_for_review]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to be so specific? Can't this be triggered just with pull_request?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching the issue. Come to think of it, we don't really need an immediate workflow trigger after a PR state change, as no code has been changed.

And, just pull_request gets the job done where we make an existing open PR WIP and push commits in it; for each subsequent commit, it skips danger.

Fixed in d5fc88d

@malparty malparty added this pull request to the merge queue Jul 17, 2023
Merged via the queue into develop with commit 613e39b Jul 17, 2023
5 checks passed
@malparty malparty deleted the chore/gh223-skip-danger-run-on-wip-pr branch July 17, 2023 02:36
@malparty malparty added this to the 5.7.0 milestone Jul 26, 2023
@malparty malparty mentioned this pull request Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore Danger run on WIP pull request
5 participants