This repository has been archived on 2026-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
php-agentic/Actions/Forge/ReportToIssue.php
Snider 6ac515d80e feat: add AssignAgent, ManagePullRequest, ReportToIssue actions
AssignAgent activates a plan and starts an agent session.
ManagePullRequest evaluates PR state/CI checks and merges when ready.
ReportToIssue posts progress comments on Forgejo issues.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 14:40:44 +00:00

34 lines
764 B
PHP

<?php
/*
* Core PHP Framework
*
* Licensed under the European Union Public Licence (EUPL) v1.2.
* See LICENSE file for details.
*/
declare(strict_types=1);
namespace Core\Mod\Agentic\Actions\Forge;
use Core\Actions\Action;
use Core\Mod\Agentic\Services\ForgejoService;
/**
* Post a progress comment on a Forgejo issue.
*
* Wraps ForgejoService::createComment() for use as a
* standalone action within the orchestration pipeline.
*
* Usage:
* ReportToIssue::run('core', 'app', 5, 'Phase 1 complete.');
*/
class ReportToIssue
{
use Action;
public function handle(string $owner, string $repo, int $issueNumber, string $message): void
{
app(ForgejoService::class)->createComment($owner, $repo, $issueNumber, $message);
}
}