* [task#134798] add count issue metrics.

This commit is contained in:
liyang
2024-12-30 08:50:29 +08:00
committed by 曹延义
parent 2b52bb285b
commit ca2deb2774
@@ -18,3 +18,22 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class count_of_issue extends baseCalc
{
public $dataset = 'getRepoIssues';
public $fieldList = array();
public $result = 0;
public function calculate($row)
{
if(!empty($row)) $this->result += 1;
}
public function getResult($options = array())
{
$records = $this->getRecords(array('value'));
return $this->filterByOptions($records, $options);
}
}