-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Optional] Add Danger to our development workflow #75
base: develop
Are you sure you want to change the base?
Conversation
… there is no test
Hi @navarroc @sandeep-ps @ylyangtw , this is an old PR that will add danger to the GitHub workflow to automate some PR review points and is ready for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Approve
CHANGELOG.md
Outdated
@@ -272,6 +273,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |||
### Added | |||
- Popup alert for unfinished programs [#58](https://github.com/policy-design-lab/pdl-frontend/issues/58) | |||
- Navigation from PDL title and PDL logo [#51](https://github.com/policy-design-lab/pdl-frontend/issues/51) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in lines 276-278 could be removed as they are not part of this PR. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, should be resolved in my last commit
push: | ||
branches: | ||
- main | ||
- develop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not run on PR since it'll be easier to catch any missing entries before the PR is merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean. Looking back, I think it makes more sense to use:
on:
pull_request:
branches:
- develop
This way, it will help to enhance PR creation practices without interrupting current release practices. Do you think will work better?
Remove math.js and math.test.js in utils folder
…-frontend into improve/add-danger
Danger library [#70]
This is an optional step targeting to enhance our coding environment, we can discuss if we want to add this extra check or not
Danger (https://github.com/danger/danger) is a tool to automate some team conventions on code review, such as setting up reminders to update the CHANGELOG, adding more PR descriptions, adding tests for newly implemented methods, etc. It targets to give suggestions, so we can approve PRs even Danger test is not passed. It is totally based on our needs.
My previous team used it to prevent programmers from forgetting some contribution rules, such as changelog updates. I borrowed the rules but we are totally open to changing whatever the best for us. The code to define the rules is in
dangerfile.js
.So far, the rules of danger suggestions are:
#trival
to PR to eliminate this danger check[WIP]
somewhere so that code reviewers don't need to check.eslintrc
file, GitHub will show a warning in PR to remind the submitter to double-check the necessity of modifying this file.If we proceed with this PR, we will have a new Github action that runs whenever there's a push operation. We could get something like: