diff --git a/Src/comments.php b/Src/comments.php index fd71c5c..b4283de 100644 --- a/Src/comments.php +++ b/Src/comments.php @@ -193,6 +193,13 @@ function execute_track($config, $metadata, $comment) callWorkflow($config, $metadata, $comment, "track.yml"); } +function execute_updateSnapshot($config, $metadata, $comment) +{ + requestGitHub($metadata["token"], $metadata["reactionUrl"], array("content" => "eyes")); + requestGitHub($metadata["token"], $metadata["commentUrl"], array("body" => "Update tests snapshots")); + callWorkflow($config, $metadata, $comment, "update-tests-snapshot.yml"); +} + function callWorkflow($config, $metadata, $comment, $workflow) { $pullRequestResponse = requestGitHub($metadata["token"], $metadata["pullRequestUrl"]);