Skip to content

Commit 3a33e95

Browse files
authored
Merge pull request #48 from Extra-Chill/feat/workflow-json-migration
feat: migrate GitHubIssueTask + WorktreeCleanupTask to executeTask() contract
2 parents bf8c8d6 + d1b6760 commit 3a33e95

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inc/Tasks/GitHubIssueTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class GitHubIssueTask extends SystemTask {
2727
* @param int $jobId Job ID from DM Jobs table.
2828
* @param array $params Task parameters from engine_data.
2929
*/
30-
public function execute( int $jobId, array $params ): void {
30+
public function executeTask( int $jobId, array $params ): void {
3131
$result = GitHubAbilities::createIssue( $params );
3232

3333
if ( is_wp_error( $result ) ) {

inc/Tasks/WorktreeCleanupTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static function getTaskMeta(): array {
117117
* @param int $jobId Job ID from DM Jobs table.
118118
* @param array $params Task parameters from engine_data.
119119
*/
120-
public function execute( int $jobId, array $params ): void {
120+
public function executeTask( int $jobId, array $params ): void {
121121
// Gate on the same PluginSetting the React UI toggles and the
122122
// recurring schedule reads. Defensive — scheduled runs already
123123
// wouldn't fire when the setting is off, but manual runs via

0 commit comments

Comments
 (0)