add debug echo
This commit is contained in:
parent
33f86a21a9
commit
51a9bcb8f4
1
src/cleanup.php
Normal file → Executable file
1
src/cleanup.php
Normal file → Executable file
@ -15,6 +15,7 @@ $words=['Today!!','Overdue!!','Error!!'];
|
|||||||
foreach($words as $word){
|
foreach($words as $word){
|
||||||
foreach($repo->getIssues(['q'=>$word]) as $issue){
|
foreach($repo->getIssues(['q'=>$word]) as $issue){
|
||||||
// loop through the current issues comments
|
// loop through the current issues comments
|
||||||
|
echo "{$issue->id}: {$issue->title}\n";
|
||||||
foreach($issue->getComments() as $comment){
|
foreach($issue->getComments() as $comment){
|
||||||
// if the comment body matches
|
// if the comment body matches
|
||||||
if(($comment->user->login=='Bot') && (strpos($comment->body,$word)!==false)){
|
if(($comment->user->login=='Bot') && (strpos($comment->body,$word)!==false)){
|
||||||
|
Loading…
Reference in New Issue
Block a user