GiteaBot-examples/src/close_all.php
2019-08-29 07:38:16 +01:00

12 lines
287 B
PHP
Executable File

#!/usr/bin/php
<?php
// load the config, create the connection and load the repo sepcified on the cmd line args
// we will then have $client and $repo available
require('setup.php');
//close all issues
$repo->forIssues(function($issue){
$issue->state='closed';
$issue->save();
});