Fix GitHub status update for private flakes.

[?]
Apr 26, 2021, 12:38 AM
POHVCHMPWYFVPZWKQCJGND5QG74D3RDBIU4DXCHDOU66XKZOWTZQC

Dependencies

  • [2] 6XZA5RB6 Fix Github status plugin for flakes
  • [3] YH2ITHUE [DEVOPS-1126] throttle github status calls to remain under api ratelimits
  • [*] NSRWW6LC Add a plugin to interact with the github status API.

Change contents

  • replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 96
    [2.408][2.408:531]()
    $eval->flake =~ m!github:([^/]+)/([^/]+)/(.+)$!;
    $sendStatus->("src", $1, $2, $3);
    [2.408]
    [2.531]
    if ($eval->flake =~ m!github:([^/]+)/([^/]+)/([[:xdigit:]]{40})$! or $eval->flake =~ m!git\+ssh://git\@github.com/([^/]+)/([^/]+)\?.*rev=([[:xdigit:]]{40})$!) {
    $sendStatus->("src", $1, $2, $3);
    } else {
    print STDERR "Can't parse flake, skipping GitHub status update\n";
    }