Skip to content

Commit

Permalink
Update comments.php (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Feb 16, 2024
1 parent f7641af commit bf43bc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Src/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down

0 comments on commit bf43bc9

Please sign in to comment.