Changeset 36443 in osm


Ignore:
Timestamp:
2025-05-07T16:08:13+02:00 (7 days ago)
Author:
taylor.smock
Message:

Add script function to find repos with failing or no CI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/github

    r36380 r36443  
    6060
    6161}
     62elsif(($ARGV[0]||'') eq 'broken')
     63{
     64  my $dir = cwd();
     65  my $branch = 'master';
     66  for my $plugin (<$file>)
     67  {
     68    chomp($plugin);
     69    chdir($plugin);
     70    my $workflow = `gh run list --limit 1 --workflow 'Java CI' --branch $branch --json databaseId --jq '.[].databaseId'`;
     71    chomp($workflow);
     72    my $conclusion = 'not implemented';
     73    if($workflow ne '')
     74    {
     75        $conclusion = `gh run view $workflow --json conclusion --jq .conclusion`;
     76        chomp($conclusion);
     77    }
     78    if($conclusion ne 'success')
     79    {
     80      print($plugin . "\n");
     81    }
     82    chdir($dir);
     83  }
     84}
    6285else
    6386{
Note: See TracChangeset for help on using the changeset viewer.