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

[AlgoCollector] Testing mode #1461

Open
ledongthuc opened this issue Aug 8, 2021 · 0 comments
Open

[AlgoCollector] Testing mode #1461

ledongthuc opened this issue Aug 8, 2021 · 0 comments

Comments

@ledongthuc
Copy link
Collaborator

ledongthuc commented Aug 8, 2021

Source code: https://github.com/ruby-vietnam/hardcore-rule/tree/master/algorithms/collector

Background

  • When starting the algorithm collector, it merges pull requests and add a comment to the weekly report page

Problems

  • Sometimes, we need to test or verify features that we only want to check pull request scores and review final comments without merging or add any real comments.

Proposal

  • Add a variable environment to declare testing mode, suggestion: DEBUG_MODE
  • When DEBUG_MODE=true, the algorithm collector won't merge and delete any pull requests and add comments to the weekly report page
  • Other functions to calculate scores, printing debug console work normally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant