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

Add GitHub workflow to check PRs' diff size with Danger #22

Draft
wants to merge 2 commits into
base: danger-all-in-one-workflow-ready-for-trunk
Choose a base branch
from

Conversation

mokagio
Copy link
Owner

@mokagio mokagio commented Feb 17, 2020

Note, I based this PR off danger-all-in-one-workflow-ready-for-trunk (wordpress-mobile#13535) to make it easier to review. I won't change the base branch or open a PR against trunk till the rest of the work has been merged.


Follows up on the wordpress-mobile#13366 work by migrating the diff size check to Danger + GitHub workflow (see diff-size.ts).

To test this, I made a commit with 500 new line, and verified Danger posted a warning comment:

Screen Shot 2020-02-17 at 11 30 13

Once the commit is reverted and the diff size goes to less than 500 lines, Danger removes the comment:

Screen Shot 2020-02-17 at 11 32 20

@mokagio mokagio changed the base branch from develop to danger-local-setup-label-and-consistency-checks February 17, 2020 00:28
@mokagio mokagio added the enhancement New feature or request label Feb 17, 2020
@mokagio mokagio force-pushed the danger-local-setup-label-and-consistency-checks branch from 7ba11c1 to 461638a Compare February 19, 2020 00:12
@mokagio mokagio force-pushed the danger-local-setup-diff-size branch 2 times, most recently from edea48f to fd0df8e Compare February 24, 2020 02:26
@mokagio mokagio changed the base branch from danger-local-setup-label-and-consistency-checks to danger-all-in-one-workflow-ready-for-trunk February 24, 2020 02:28
@github-actions
Copy link

github-actions bot commented Feb 24, 2020

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against ba105d4

@mokagio mokagio force-pushed the danger-all-in-one-workflow-ready-for-trunk branch from f886cc0 to 5863010 Compare February 24, 2020 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant