Skip to content

[AlgoCollector] Testing mode #1461

@ledongthuc

Description

@ledongthuc

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions